diff --git a/.gitignore b/.gitignore index 85fd9c4..5b3536d 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ !/sysroot/.gitkeep /out +/bin # The following files are ignored because they need some cleanup REQUIRED_PACKAGES diff --git a/scripts/compile.sh b/scripts/compile.sh index 98d9be4..9cedf20 100755 --- a/scripts/compile.sh +++ b/scripts/compile.sh @@ -24,6 +24,7 @@ get_script_dir() compile_module() { + ( local MOD_DIR=$1 local MOD_NAME=$(basename "$MOD_DIR") @@ -64,6 +65,7 @@ compile_module() ./$MOD_INSTALL || exit 1 printf "\n\nDone!\n\n" + ) } ############################################################################### @@ -95,4 +97,11 @@ for SUB_DIR in $SRC_DIR/* ; do fi done +BIN_DIR=$(get_script_dir)/../bin +BUILD_DIR=$(get_script_dir)/../build + +if [ -d "$BIN_DIR" ]; then + cp -R $BIN_DIR/* $BUILD_DIR/ +fi +