Commit d362bb50 authored by Alessandro Rubini's avatar Alessandro Rubini

config: add an option to keep the filesystem image

Developers may want to preserve the filesystem image, to verify the
effect of configuration options, avoiding the need to untar
images/wrs-image.tar.gz every time.

I personally used it to verify the next commits, other people may
prefer to keep it disabled.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent f7dd8e44
......@@ -33,3 +33,16 @@ config PPSI
is already the default PTP run in the White Rabbit node.
endchoice
menu "Local configuration"
config KEEP_ROOTFS
bool "Keep generated filesystem and related script"
help
During development of build scripts, it may be useful
to keep the generated root filesystem as well as the
script used to create it. If selected, the build script
will report the actual file names at each build.
If unsusre, say N.
endmenu
......@@ -58,5 +58,10 @@ EOF
fakeroot bash $WRS_SH_OPTIONS $TMPSCRIPT
rm -rf $TMPFS
rm -rf $TMPSCRIPT
if [ -z "$CONFIG_KEEP_ROOTFS" ]; then
rm -rf $TMPFS
rm -rf $TMPSCRIPT
else
wrs_echo "Image FS is in $TMPFS/"
wrs_echo "Gerenated by $TMPSCRIPT"
fi
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment