toolchain/toolchain-external: error if BR2_TOOLCHAIN_EXTERNAL_PATH is not set

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
[Arnout: add BR_BUILDING condition]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
James Hilliard 2022-04-01 20:07:56 -06:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent e67d335f0e
commit 8e91385a2c

View file

@ -69,7 +69,12 @@ ifeq ($(BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD),y)
TOOLCHAIN_EXTERNAL_INSTALL_DIR = $(TOOLCHAIN_EXTERNAL_DOWNLOAD_INSTALL_DIR)
else
TOOLCHAIN_EXTERNAL_INSTALL_DIR = $(abspath $(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PATH)))
ifeq ($(BR2_TOOLCHAIN_EXTERNAL)$(BR_BUILDING),yy)
ifeq ($(TOOLCHAIN_EXTERNAL_INSTALL_DIR),)
$(error No external toolchain path set, check your BR2_TOOLCHAIN_EXTERNAL_PATH setting)
endif
endif
endif # BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD
ifeq ($(TOOLCHAIN_EXTERNAL_INSTALL_DIR),)
ifneq ($(TOOLCHAIN_EXTERNAL_PREFIX),)