summaryrefslogtreecommitdiffstats
path: root/boot/at91bootstrap3
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/at91bootstrap3
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/at91bootstrap3')
-rw-r--r--boot/at91bootstrap3/at91bootstrap3.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/boot/at91bootstrap3/at91bootstrap3.mk b/boot/at91bootstrap3/at91bootstrap3.mk
index 3e3b78ef23..ff49e14605 100644
--- a/boot/at91bootstrap3/at91bootstrap3.mk
+++ b/boot/at91bootstrap3/at91bootstrap3.mk
@@ -43,7 +43,7 @@ AT91BOOTSTRAP3_KCONFIG_OPTS = $(AT91BOOTSTRAP3_MAKE_OPTS)
$(eval $(kconfig-package))
# Checks to give errors that the user can understand
-ifeq ($(filter source,$(MAKECMDGOALS)),)
+ifeq ($(BR_BUILDING),y)
ifeq ($(BR2_TARGET_AT91BOOTSTRAP3_USE_DEFCONFIG),y)
ifeq ($(call qstrip,$(BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG)),)
$(error No at91bootstrap3 defconfig name specified, check your BR2_TARGET_AT91BOOTSTRAP3_DEFCONFIG setting)
OpenPOWER on IntegriCloud