arch.mk 1.4 KB

123456789101112131415161718192021222324252627282930313233
  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_MODE := $(call qstrip,$(BR2_GCC_TARGET_MODE))
  18. # Explicitly set LD's "max-page-size" instead of relying on some defaults
  19. ifeq ($(BR2_ARC_PAGE_SIZE_4K)$(BR2_ARM64_PAGE_SIZE_4K),y)
  20. ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=4096
  21. else ifeq ($(BR2_ARC_PAGE_SIZE_8K),y)
  22. ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=8192
  23. else ifeq ($(BR2_ARC_PAGE_SIZE_16K),y)
  24. ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=16384
  25. else ifeq ($(BR2_ARM64_PAGE_SIZE_64K),y)
  26. ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=65536
  27. endif
  28. # Include any architecture specific makefiles.
  29. -include $(sort $(wildcard arch/arch.mk.*))