From da0084106fbd7a11fb0156bc673947a4f482b2d2 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Tue, 19 Mar 2013 15:02:52 +0100 Subject: copy_static_files function now called on each module --- remote/setup_target | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'remote/setup_target') diff --git a/remote/setup_target b/remote/setup_target index c1a45787..e3273f4d 100755 --- a/remote/setup_target +++ b/remote/setup_target @@ -51,7 +51,8 @@ read_build () { . "${BUILD_SCRIPT}" || perror "Sourcing '${BUILD_SCRIPT}' failed." } -copyfileswithdependencies () { + +copy_files_with_deps () { [ ! -d $MODULE_BUILD_DIR ] && pinfo "No build directory found, skipping dependency copying" && return 0 cd $MODULE_BUILD_DIR @@ -188,7 +189,6 @@ process_module() { if [ ! -z "$REQUIRED_MODULES" ]; then pinfo "$MODULE depends on ${REQUIRED_MODULES}...." for DEP in $REQUIRED_MODULES; do - #[[ "$DESIRED_MODULES" != *"!${DEP}!"* ]] && perror "$TOOL has dependency $DEP, but $DEP is not in current profile." process_module "$DEP" done # Read old config again, as it got overwritten by the deps @@ -207,7 +207,9 @@ process_module() { # remove *.la files as they might confuse libtool/linker of other tool packages find "${MODULE_DIR}/build" -name '*.la' -exec rm -f {} \; pinfo "## Copying files with dependencies" - copyfileswithdependencies + copy_files_with_deps + pinfo "## Copying static module files" + copy_static_data pinfo "## Post copy" post_copy -- cgit v1.2.3-55-g7522