arch.mk 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. ################################################################################
  2. #
  3. # Architecture-specific definitions
  4. #
  5. ################################################################################
  6. # Allow GCC target configuration settings to be optionally
  7. # overwritten by architecture specific makefiles.
  8. # Makefiles must use the GCC_TARGET_* variables below instead
  9. # of the BR2_GCC_TARGET_* versions.
  10. GCC_TARGET_ARCH := $(call qstrip,$(BR2_GCC_TARGET_ARCH))
  11. GCC_TARGET_ABI := $(call qstrip,$(BR2_GCC_TARGET_ABI))
  12. GCC_TARGET_NAN := $(call qstrip,$(BR2_GCC_TARGET_NAN))
  13. GCC_TARGET_FP32_MODE := $(call qstrip,$(BR2_GCC_TARGET_FP32_MODE))
  14. GCC_TARGET_CPU := $(call qstrip,$(BR2_GCC_TARGET_CPU))
  15. GCC_TARGET_FPU := $(call qstrip,$(BR2_GCC_TARGET_FPU))
  16. GCC_TARGET_FLOAT_ABI := $(call qstrip,$(BR2_GCC_TARGET_FLOAT_ABI))
  17. GCC_TARGET_SIMD := $(call qstrip,$(BR2_GCC_TARGET_SIMD))
  18. GCC_TARGET_MODE := $(call qstrip,$(BR2_GCC_TARGET_MODE))
  19. # Explicitly set LD's "max-page-size" instead of relying on some defaults
  20. ifeq ($(BR2_ARC_PAGE_SIZE_4K)$(BR2_ARM64_PAGE_SIZE_4K),y)
  21. ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=4096 -Wl,-z,common-page-size=4096
  22. else ifeq ($(BR2_ARC_PAGE_SIZE_8K),y)
  23. ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=8192 -Wl,-z,common-page-size=8192
  24. else ifeq ($(BR2_ARC_PAGE_SIZE_16K)$(BR2_ARM64_PAGE_SIZE_16K),y)
  25. ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384
  26. else ifeq ($(BR2_ARM64_PAGE_SIZE_64K),y)
  27. ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=65536 -Wl,-z,common-page-size=65536
  28. endif
  29. # Include any architecture specific makefiles.
  30. -include $(sort $(wildcard arch/arch.mk.*))