toolchain-external.mk 1.0 KB

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