summaryrefslogtreecommitdiffstats
path: root/remote/setup_target
diff options
context:
space:
mode:
authorSimon Rettberg2013-05-02 19:41:53 +0200
committerSimon Rettberg2013-05-02 19:41:53 +0200
commit039d65f97ae66b0b34fd91dbde5b19a8da6b5373 (patch)
tree74987823eab4525b97baa9723c430a5a177b6d14 /remote/setup_target
parentduh (diff)
downloadtm-scripts-039d65f97ae66b0b34fd91dbde5b19a8da6b5373.tar.gz
tm-scripts-039d65f97ae66b0b34fd91dbde5b19a8da6b5373.tar.xz
tm-scripts-039d65f97ae66b0b34fd91dbde5b19a8da6b5373.zip
Fix rsyslog on suse, tune kernel building
Diffstat (limited to 'remote/setup_target')
-rwxr-xr-xremote/setup_target10
1 files changed, 8 insertions, 2 deletions
diff --git a/remote/setup_target b/remote/setup_target
index 15938558..924450fd 100755
--- a/remote/setup_target
+++ b/remote/setup_target
@@ -213,8 +213,14 @@ process_module() {
install_dependencies
pinfo "## Fetching source"
[ -e "${MODULE_DIR}/.fetched_source" ] || { fetch_source && touch "${MODULE_DIR}/.fetched_source"; }
- pinfo "## Building"
- [ -e "${MODULE_DIR}/.built" ] || { build && touch "${MODULE_DIR}/.built"; }
+ if [ -e "${MODULE_DIR}/.built" -a -d "${MODULE_DIR}/build" ]; then
+ pinfo "# built-flag is set, skipping build..."
+ else
+ pinfo "## Building"
+ mkdir -p "${MODULE_DIR}/build" || perror "Could not create build dir"
+ build # calls perror if something fails, no need to do that here
+ touch "${MODULE_DIR}/.built" || pwarning "Error setting built-flag"
+ fi
# remove *.la files as they might confuse libtool/linker of other tool packages
[ -d "${MODULE_BUILD_DIR}" ] && find "${MODULE_BUILD_DIR}" -name '*.la' -exec rm -f {} \;
[ -d "${TARGET_BUILD_DIR}" ] && TARGET_BUILD_SIZE=$(du -bc "${TARGET_BUILD_DIR}" | awk 'END {print $1}') || TARGET_BUILD_SIZE=0