summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-09-19 13:41:05 +0200
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-10-20 15:02:30 +0200
commit998f9ee2f373b17d67e50c6ff072ba3a8f5e53b2 (patch)
tree89d5333d6c6fa979e11218b083821a492ed57dd6 /common
parent420a3173f0f7d2bd35f32be437e4888a82047560 (diff)
downloadbarebox-998f9ee2f373b17d67e50c6ff072ba3a8f5e53b2.tar.gz
barebox-998f9ee2f373b17d67e50c6ff072ba3a8f5e53b2.tar.xz
uboot_default_env: fix out of tree build
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'common')
-rw-r--r--common/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/Makefile b/common/Makefile
index e6e2efb382..7f5bdb7ec8 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -23,9 +23,9 @@ ifdef CONFIG_DEFAULT_ENVIRONMENT
$(obj)/startup.o: include/uboot_default_env.h
$(obj)/env.o: include/uboot_default_env.h
-ENV_FILES := $(shell find $(CONFIG_DEFAULT_ENVIRONMENT_PATH))
+ENV_FILES := $(shell find $(srctree)/$(CONFIG_DEFAULT_ENVIRONMENT_PATH))
endif # ifdef CONFIG_DEFAULT_ENVIRONMENT
include/uboot_default_env.h: $(ENV_FILES)
- $(Q)scripts/ubootenv -s $(CONFIG_DEFAULT_ENVIRONMENT_PATH) uboot_default_env
+ $(Q)scripts/ubootenv -s $(srctree)/$(CONFIG_DEFAULT_ENVIRONMENT_PATH) uboot_default_env
$(Q)cat uboot_default_env | scripts/bin2c default_environment > $@