summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-09-27 10:29:48 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-09-28 16:21:44 +0200
commitc8c49c14aef009a86f238c4bdaf78b1d01b7bdcf (patch)
treeb582446b8139c8b1e94373e272443a0f5420f6cc /Makefile
parent1bc0a261885396671cb28ff01f2e56f0d0e4cbde (diff)
downloadbarebox-c8c49c14aef009a86f238c4bdaf78b1d01b7bdcf.tar.gz
barebox-c8c49c14aef009a86f238c4bdaf78b1d01b7bdcf.tar.xz
environment generation: Fix dependencies
The dependencies for generating the environment do not work properly: - If files are removed from the defaultenv, a subsequent make will not update the default environment. - If CONFIG_DEFAULT_ENVIRONMENT_PATH changes, the default environment also will not be regenerated. This patch fixes this by introducing a cmd_env which has the content of $(ENV_FILES) in the command so that the if_changed mechanism recognizes a change when $(ENV_FILE) changes. This also results in a nice " ENV " string in the build process. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c6264d3404..4e50c9f766 100644
--- a/Makefile
+++ b/Makefile
@@ -1007,7 +1007,7 @@ endif # CONFIG_MODULES
CLEAN_DIRS += $(MODVERDIR)
CLEAN_FILES += barebox System.map include/generated/barebox_default_env.h \
.tmp_version .tmp_barebox* barebox.bin barebox.map barebox.S \
- .tmp_kallsyms* barebox_default_env* barebox.ldr \
+ .tmp_kallsyms* common/barebox_default_env* barebox.ldr \
scripts/bareboxenv-target barebox-flash-image \
Doxyfile.version barebox.srec barebox.s5p