diff options
| author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-04-26 11:51:15 +0200 |
|---|---|---|
| committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-04-26 21:43:25 +0200 |
| commit | fa6289bb1aad1a8b6721fbeb15d34520c84dcb39 (patch) | |
| tree | 3ca90cb1d78a38f1ffb920f7185657b84fa12212 /boot/barebox | |
| parent | 256f142bf662fd8fee712e38edd58bb6e8fd283d (diff) | |
| download | buildroot-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/barebox')
| -rw-r--r-- | boot/barebox/barebox.mk | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/boot/barebox/barebox.mk b/boot/barebox/barebox.mk index 98cb04ea05..54f52bb2a4 100644 --- a/boot/barebox/barebox.mk +++ b/boot/barebox/barebox.mk @@ -106,11 +106,8 @@ endif $(eval $(kconfig-package)) -ifeq ($(BR2_TARGET_BAREBOX),y) -# we NEED a board defconfig file unless we're at make source -ifeq ($(filter source,$(MAKECMDGOALS)),) +ifeq ($(BR2_TARGET_BAREBOX)$(BR_BUILDING),yy) ifeq ($(BAREBOX_SOURCE_CONFIG),) $(error No Barebox config file. Check your BR2_TARGET_BAREBOX_BOARD_DEFCONFIG or BR2_TARGET_BAREBOX_CUSTOM_CONFIG_FILE settings) endif endif -endif |

