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