diff options
author | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-13 15:22:23 +0200 |
---|---|---|
committer | Sascha Hauer <sha@octopus.labnet.pengutronix.de> | 2007-09-13 15:22:23 +0200 |
commit | 6634cfe849b547b35e50e73b0a142a294cd39a80 (patch) | |
tree | 291c1fca6a32b35654c8358689e53d1458da7bdc /common/Makefile | |
parent | 46f6648adbbad796e459acf9f3cb8a53b7408584 (diff) | |
download | barebox-6634cfe849b547b35e50e73b0a142a294cd39a80.tar.gz barebox-6634cfe849b547b35e50e73b0a142a294cd39a80.tar.xz |
add default environment
Diffstat (limited to 'common/Makefile')
-rw-r--r-- | common/Makefile | 9 |
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 + |