summaryrefslogtreecommitdiffstats
path: root/common/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2010-06-11 14:09:51 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2010-06-22 15:44:40 +0200
commit600c0e987e3a03c383dfb0c3ffe57c12d366cb1b (patch)
tree7b3fc0e57f99c2f2ff1e65f3dbdecc9f3a3228ed /common/Makefile
parent72861584e33759ca4b531a47702d04ddbf730548 (diff)
downloadbarebox-600c0e987e3a03c383dfb0c3ffe57c12d366cb1b.tar.gz
barebox-600c0e987e3a03c383dfb0c3ffe57c12d366cb1b.tar.xz
Allow to merge default environment from more than one directory
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Makefile')
-rw-r--r--common/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/Makefile b/common/Makefile
index 0c075a960f..8b8686db1c 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -22,9 +22,10 @@ ifdef CONFIG_DEFAULT_ENVIRONMENT
$(obj)/startup.o: include/barebox_default_env.h
$(obj)/env.o: include/barebox_default_env.h
-ENV_FILES := $(shell find $(srctree)/$(CONFIG_DEFAULT_ENVIRONMENT_PATH))
+ENV_FILES := $(shell cd $(srctree); for i in $(CONFIG_DEFAULT_ENVIRONMENT_PATH); do find $${i} -type f -exec readlink -f {} \;; done)
+
endif # ifdef CONFIG_DEFAULT_ENVIRONMENT
include/barebox_default_env.h: $(ENV_FILES)
- $(Q)scripts/bareboxenv -s $(srctree)/$(CONFIG_DEFAULT_ENVIRONMENT_PATH) barebox_default_env
+ $(Q)scripts/genenv $(srctree) $(CONFIG_DEFAULT_ENVIRONMENT_PATH)
$(Q)cat barebox_default_env | scripts/bin2c default_environment > $@