summaryrefslogtreecommitdiff
path: root/defaultenv
diff options
context:
space:
mode:
authorJan Luebbe <jlu@pengutronix.de>2015-01-28 11:02:36 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2015-02-04 12:47:13 +0100
commitc4c2317fe8a250b7582f7a3a15dccd7fc56d69f8 (patch)
tree467c1ced8c480d38b4da0047b8b9ce1a68dcf71e /defaultenv
parentf5cb522743a84b2527a95ac3345459d36d1fcbb7 (diff)
downloadbarebox-c4c2317fe8a250b7582f7a3a15dccd7fc56d69f8.tar.gz
defaultenv: generate force-built-in (zero) environment file
Signed-off-by: Jan Luebbe <jlu@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'defaultenv')
-rw-r--r--defaultenv/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/defaultenv/Makefile b/defaultenv/Makefile
index fc679ebc9c..33e0eceef9 100644
--- a/defaultenv/Makefile
+++ b/defaultenv/Makefile
@@ -3,7 +3,7 @@ bbenv-$(CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW_MENU) += defaultenv-2-menu
bbenv-$(CONFIG_DEFAULT_ENVIRONMENT_GENERIC_NEW_DFU) += defaultenv-2-dfu
bbenv-$(CONFIG_DEFAULT_ENVIRONMENT_GENERIC) += defaultenv-1
obj-$(CONFIG_DEFAULT_ENVIRONMENT) += defaultenv.o
-extra-y += barebox_default_env barebox_default_env.h barebox_default_env$(DEFAULT_COMPRESSION_SUFFIX)
+extra-y += barebox_default_env barebox_default_env.h barebox_default_env$(DEFAULT_COMPRESSION_SUFFIX) barebox_zero_env
$(obj)/defaultenv.o: $(obj)/barebox_default_env.h
@@ -22,3 +22,9 @@ cmd_env_h = cat $< | (cd $(obj) && $(objtree)/scripts/bin2c "__aligned(4) defaul
$(obj)/barebox_default_env.h: $(obj)/barebox_default_env$(DEFAULT_COMPRESSION_SUFFIX) FORCE
$(call if_changed,env_h)
+
+quiet_cmd_env_zero = ENVZ $@
+cmd_env_zero = ($(objtree)/scripts/bareboxenv -z $(CONFIG_DEFAULT_ENVIRONMENT_PATH) $@)
+
+$(obj)/barebox_zero_env: FORCE
+ $(call cmd,env_zero)