summaryrefslogtreecommitdiff
path: root/boot/at91bootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'boot/at91bootstrap')
-rw-r--r--boot/at91bootstrap/at91bootstrap.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/boot/at91bootstrap/at91bootstrap.mk b/boot/at91bootstrap/at91bootstrap.mk
index bfffe1154..3d4308edf 100644
--- a/boot/at91bootstrap/at91bootstrap.mk
+++ b/boot/at91bootstrap/at91bootstrap.mk
@@ -56,8 +56,11 @@ at91bootstrap-dirclean:
ifeq ($(BR2_TARGET_AT91BOOTSTRAP),y)
TARGETS+=at91bootstrap
-# we NEED a board name
+# we NEED a board name unless we're at make source
+ifeq ($(filter source,$(MAKECMDGOALS)),)
ifeq ($(AT91BOOTSTRAP_BOARD),)
$(error No AT91Bootstrap board name set. Check your BR2_TARGET_AT91BOOTSTRAP_BOARD setting)
endif
endif
+
+endif