From 039d65f97ae66b0b34fd91dbde5b19a8da6b5373 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 2 May 2013 19:41:53 +0200 Subject: Fix rsyslog on suse, tune kernel building --- remote/setup_target | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'remote/setup_target') 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 -- cgit v1.2.3-55-g7522