Not all builds have a barebox_default_env. Only install it if it exists.

Signed-off-by: Sascha Hauer <[email protected]>
---
 rules/barebox.make | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/barebox.make b/rules/barebox.make
index 2dcc0ca..d0f03ba 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)
-- 
1.8.5.3


-- 
ptxdist mailing list
[email protected]

Reply via email to