summaryrefslogtreecommitdiffstats
path: root/rules/barebox.make
diff options
context:
space:
mode:
Diffstat (limited to 'rules/barebox.make')
-rw-r--r--rules/barebox.make6
1 files changed, 5 insertions, 1 deletions
diff --git a/rules/barebox.make b/rules/barebox.make
index ae005039b..ac10127e0 100644
--- a/rules/barebox.make
+++ b/rules/barebox.make
@@ -124,7 +124,11 @@ ifdef PTXCONF_BAREBOX_BAREBOXENV
@$(call install_finish, barebox)
endif
- @install -D -m644 $(BAREBOX_DIR)/barebox.bin $(IMAGEDIR)/barebox-image
+ @if [ -e $(BAREBOX_DIR)/barebox-flash-image ]; then \
+ install -D -m644 $(BAREBOX_DIR)/barebox-flash-image $(IMAGEDIR)/barebox-image; \
+ else \
+ install -D -m644 $(BAREBOX_DIR)/barebox.bin $(IMAGEDIR)/barebox-image; \
+ fi
@if [ -e $(BAREBOX_DIR)/common/barebox_default_env ]; then \
install -D -m644 $(BAREBOX_DIR)/common/barebox_default_env $(IMAGEDIR)/barebox-default-environment; \
else \