summaryrefslogtreecommitdiffstats
path: root/rules/barebox.make
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-02-26 15:13:18 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-03-06 09:19:09 +0100
commite5acf7ea43fa10a901edbb8eb44d950c22698970 (patch)
tree2fb8c93565904319ec51db3429ccd78f58bb307f /rules/barebox.make
parentcc21f5c62ebba617191ea971a992230a178b9205 (diff)
downloadptxdist-e5acf7ea43fa10a901edbb8eb44d950c22698970.tar.gz
ptxdist-e5acf7ea43fa10a901edbb8eb44d950c22698970.tar.xz
barebox: Only install defaultenv file if it exists
Not all builds have a barebox_default_env. Only install it if it exists. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/barebox.make')
-rw-r--r--rules/barebox.make2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/barebox.make b/rules/barebox.make
index 2dcc0ca83..d0f03bae9 100644
--- a/rules/barebox.make
+++ b/rules/barebox.make
@@ -150,7 +150,7 @@ endif
fi
@if [ -e $(BAREBOX_DIR)/common/barebox_default_env ]; then \
install -D -m644 $(BAREBOX_DIR)/common/barebox_default_env $(IMAGEDIR)/barebox-default-environment; \
- else \
+ elif [ -e $(BAREBOX_DIR)/barebox_default_env ]; then \
install -D -m644 $(BAREBOX_DIR)/barebox_default_env $(IMAGEDIR)/barebox-default-environment; \
fi
@$(call touch)