diff options
author | Michael Neves | 2013-02-27 21:11:03 +0100 |
---|---|---|
committer | Michael Neves | 2013-02-27 21:11:03 +0100 |
commit | 1d79a6b5e3a1826dd7b555be0e344ab3025be995 (patch) | |
tree | 8b39c357bce130e323c63fa600241f8e423993cb /mltk | |
parent | init and build_core merges (diff) | |
download | tm-scripts-1d79a6b5e3a1826dd7b555be0e344ab3025be995.tar.gz tm-scripts-1d79a6b5e3a1826dd7b555be0e344ab3025be995.tar.xz tm-scripts-1d79a6b5e3a1826dd7b555be0e344ab3025be995.zip |
Add '-n' option: 'don't generate squashfs for stage 3.2'
Diffstat (limited to 'mltk')
-rwxr-xr-x | mltk | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -46,7 +46,7 @@ banner () { print_usage() { echo "Toolkit for creating preboot mini-linux for OpenSLX NG (mltk)" echo "Usage: $(basename ${SELF}) tools [-d] [-c [module]*] [-b [module]*] [-p profile]" - echo " $(basename ${SELF}) core [-d] [-c] [-b]" + echo " $(basename ${SELF}) core [-d] [-c] [-b] [-n]" echo -e "" echo -e " Target:" echo -e " core \t minimal initramfs (stage 3.1) to mount the system-container (stage 3.2)." @@ -57,6 +57,7 @@ print_usage() { echo -e " -c clean target" echo -e " -d activates debug output for current target" echo -e " -p profile build all modules from given profile" + echo -e " -n don't generate squashfs for stage 3.2" echo -e "" echo -e " For target 'tools', you can pass names of specific modules to clean/build." echo -e " Otherwise, all modules will be built/cleaned." @@ -134,6 +135,11 @@ read_params() { shift continue ;; + -n) + [ "$MODE" != "CORE" ] && perror "-n can only be used for target core" + CORE_NO_SQUASHFS="1" + continue + ;; *) pwarning "Unknown flag to target: $PARAM" print_usage @@ -178,6 +184,7 @@ run() { CORE_DEBUG="0" CORE_BUILD="0" CORE_CLEAN="0" +CORE_NO_SQUASHFS="0" TOOLS_DEBUG="0" TOOLS_CLEAN="0" TOOLS_BUILD="0" |