summaryrefslogtreecommitdiffstats
path: root/boot/xloader
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-04-26 11:51:15 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-04-26 21:43:25 +0200
commitfa6289bb1aad1a8b6721fbeb15d34520c84dcb39 (patch)
tree3ca90cb1d78a38f1ffb920f7185657b84fa12212 /boot/xloader
parent256f142bf662fd8fee712e38edd58bb6e8fd283d (diff)
downloadbuildroot-fa6289bb1aad1a8b6721fbeb15d34520c84dcb39.tar.gz
buildroot-fa6289bb1aad1a8b6721fbeb15d34520c84dcb39.zip
packages: refactor checks using BR_BUILDING
Instead of manually testing MAKECMDGOALS, use the newly introduced BR_BUILDING variable to know if we're building or not. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Tested-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Diffstat (limited to 'boot/xloader')
-rw-r--r--boot/xloader/xloader.mk6
1 files changed, 1 insertions, 5 deletions
diff --git a/boot/xloader/xloader.mk b/boot/xloader/xloader.mk
index 90d5fa2fcf..c68dc81a52 100644
--- a/boot/xloader/xloader.mk
+++ b/boot/xloader/xloader.mk
@@ -25,12 +25,8 @@ endef
$(eval $(generic-package))
-ifeq ($(BR2_TARGET_XLOADER),y)
-# we NEED a board name unless we're at make source
-ifeq ($(filter source,$(MAKECMDGOALS)),)
+ifeq ($(BR2_TARGET_XLOADER)$(BR_BUILDING),yy)
ifeq ($(XLOADER_BOARD_NAME),)
$(error NO x-loader board name set. Check your BR2_BOOT_XLOADER_BOARDNAME setting)
endif
endif
-
-endif
OpenPOWER on IntegriCloud