summaryrefslogtreecommitdiffstats
path: root/common/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-13 15:22:23 +0200
committerSascha Hauer <sha@octopus.labnet.pengutronix.de>2007-09-13 15:22:23 +0200
commit6634cfe849b547b35e50e73b0a142a294cd39a80 (patch)
tree291c1fca6a32b35654c8358689e53d1458da7bdc /common/Makefile
parent46f6648adbbad796e459acf9f3cb8a53b7408584 (diff)
downloadbarebox-6634cfe849b547b35e50e73b0a142a294cd39a80.tar.gz
barebox-6634cfe849b547b35e50e73b0a142a294cd39a80.tar.xz
add default environment
Diffstat (limited to 'common/Makefile')
-rw-r--r--common/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/Makefile b/common/Makefile
index df1ccdd0f1..b83c437f03 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -13,3 +13,12 @@ obj-y += env.o
obj-y += startup.o
obj-y += misc.o
obj-y += memsize.o
+
+ifdef CONFIG_DEFAULT_ENVIRONMENT_PATH
+include/uboot_default_env.h: $(shell ls $(CONFIG_DEFAULT_ENVIRONMENT_PATH)/*)
+ $(Q)scripts/ubootenv -s $(CONFIG_DEFAULT_ENVIRONMENT_PATH) uboot_default_env
+ $(Q)cat uboot_default_env | scripts/bin2c default_environment > $@
+
+$(obj)/env.o: include/uboot_default_env.h
+endif
+