1################################################################################ 2# 3# toolchain-external 4# 5################################################################################ 6 7TOOLCHAIN_EXTERNAL_ADD_TOOLCHAIN_DEPENDENCY = NO 8 9# musl does not provide an implementation for sys/queue.h or sys/cdefs.h. 10# So, add the musl-compat-headers package that will install those files, 11# into the staging directory: 12# sys/queue.h: header from NetBSD 13# sys/cdefs.h: minimalist header bundled in Buildroot 14ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y) 15TOOLCHAIN_EXTERNAL_DEPENDENCIES += musl-compat-headers 16endif 17 18$(eval $(virtual-package)) 19 20# Ensure the external-toolchain package has a prefix defined. 21# This comes after the virtual-package definition, which checks the provider. 22ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y) 23ifeq ($(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PREFIX)),) 24$(error No prefix selected for external toolchain package $(BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL). Configuration error) 25endif 26endif 27 28include $(sort $(wildcard toolchain/toolchain-external/*/*.mk)) 29