2013-10-08 20:17:03 +02:00
|
|
|
################################################################################
|
2009-07-17 00:20:33 +02:00
|
|
|
#
|
2013-10-08 20:17:03 +02:00
|
|
|
# toolchain-external
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2016-11-07 02:19:59 +01:00
|
|
|
TOOLCHAIN_EXTERNAL_ADD_TOOLCHAIN_DEPENDENCY = NO
|
|
|
|
|
|
|
|
# musl does not provide an implementation for sys/queue.h or sys/cdefs.h.
|
|
|
|
# So, add the musl-compat-headers package that will install those files,
|
|
|
|
# into the staging directory:
|
|
|
|
# sys/queue.h: header from NetBSD
|
|
|
|
# sys/cdefs.h: minimalist header bundled in Buildroot
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
|
|
|
|
TOOLCHAIN_EXTERNAL_DEPENDENCIES += musl-compat-headers
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(eval $(virtual-package))
|
|
|
|
|
|
|
|
# Ensure the external-toolchain package has a prefix defined.
|
|
|
|
# This comes after the virtual-package definition, which checks the provider.
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_EXTERNAL),y)
|
|
|
|
ifeq ($(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PREFIX)),)
|
|
|
|
$(error No prefix selected for external toolchain package $(BR2_PACKAGE_PROVIDES_TOOLCHAIN_EXTERNAL). Configuration error)
|
|
|
|
endif
|
|
|
|
endif
|
2016-11-07 02:20:00 +01:00
|
|
|
|
2017-11-21 20:13:30 +01:00
|
|
|
include $(sort $(wildcard toolchain/toolchain-external/*/*.mk))
|