diff options
author | Jonathan Bauer | 2019-12-11 14:40:13 +0100 |
---|---|---|
committer | Jonathan Bauer | 2019-12-11 14:40:13 +0100 |
commit | 3bbac077741762e85468d93de86c3f2dc2b895f1 (patch) | |
tree | e3a9a3539642eed30aaa2a46e6913c335f25175d /core/bin | |
parent | properly clean modules from subtargets (diff) | |
download | mltk-3bbac077741762e85468d93de86c3f2dc2b895f1.tar.gz mltk-3bbac077741762e85468d93de86c3f2dc2b895f1.tar.xz mltk-3bbac077741762e85468d93de86c3f2dc2b895f1.zip |
skip kernel module within cleanup fct
Diffstat (limited to 'core/bin')
-rwxr-xr-x | core/bin/setup_target | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/bin/setup_target b/core/bin/setup_target index fe21f1c3..2c05ee7e 100755 --- a/core/bin/setup_target +++ b/core/bin/setup_target @@ -534,7 +534,7 @@ clean_modules() { rm -rf -- "${TARGET_BUILD_DIR}" || perror "Could not delete target build dir for $TARGET" fi # exclude kernel on "all" - set -- $(ls "${TARGET_DIR}" | grep -vE "^kernel$") + set -- $(ls "${TARGET_DIR}" ) fi cd "$TARGET_DIR" @@ -560,6 +560,10 @@ clean_module() { local TARGET=${1%:*} local MODULE=${1#*:} + if [ "$MODULE" = "kernel" ]; then + pinfo "Skipping kernel module..." + return 0 + fi local MODULE_DIR="${CORE_DIR}/targets/${TARGET}/${MODULE}" local MODULE_WORK_DIR="${ROOT_DIR}/tmp/work/${MODULE}" |