[Buildroot] [git commit branch/2022.02.x] toolchain-external-custom: error if BR2_TOOLCHAIN_EXTERNAL_URL is not set

Peter Korsgaard peter at korsgaard.com
Sat Apr 9 10:26:57 UTC 2022


commit: https://git.buildroot.net/buildroot/commit/?id=ae4ec7cde64c77ecb27cd7e7d67d6052ae435509
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2022.02.x

Signed-off-by: James Hilliard <james.hilliard1 at gmail.com>
[Arnout: add BR_BUILDING condition]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
(cherry picked from commit d9a9d4df2b84350f7014b33b50af120c3915f4b5)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 .../toolchain-external-custom/toolchain-external-custom.mk           | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/toolchain/toolchain-external/toolchain-external-custom/toolchain-external-custom.mk b/toolchain/toolchain-external/toolchain-external-custom/toolchain-external-custom.mk
index c4ae6125ef..f2ec01f88c 100644
--- a/toolchain/toolchain-external/toolchain-external-custom/toolchain-external-custom.mk
+++ b/toolchain/toolchain-external/toolchain-external-custom/toolchain-external-custom.mk
@@ -10,6 +10,11 @@ TOOLCHAIN_EXTERNAL_CUSTOM_SOURCE = $(notdir $(call qstrip,$(BR2_TOOLCHAIN_EXTERN
 ifeq ($(BR2_TOOLCHAIN_EXTERNAL_CUSTOM),y)
 # We can't check hashes for custom downloaded toolchains
 BR_NO_CHECK_HASH_FOR += $(TOOLCHAIN_EXTERNAL_SOURCE)
+ifeq ($(BR_BUILDING)$(BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD),yy)
+ifeq ($(TOOLCHAIN_EXTERNAL_CUSTOM_SOURCE),)
+$(error No external toolchain url set, check your BR2_TOOLCHAIN_EXTERNAL_URL setting)
+endif
+endif
 endif
 
 $(eval $(toolchain-external-package))



More information about the buildroot mailing list