arch.mk.arc 541 B

1234567891011121314151617
  1. ifeq ($(BR2_arc),y)
  2. # -matomic is always required when the ARC core has the atomic extensions
  3. ifeq ($(BR2_ARC_ATOMIC_EXT),y)
  4. ARCH_TOOLCHAIN_WRAPPER_OPTS = -matomic
  5. endif
  6. # Explicitly set LD's "max-page-size" instead of relying on some defaults
  7. ifeq ($(BR2_ARC_PAGE_SIZE_4K),y)
  8. ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=4096
  9. else ifeq ($(BR2_ARC_PAGE_SIZE_8K),y)
  10. ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=8192
  11. else ifeq ($(BR2_ARC_PAGE_SIZE_16K),y)
  12. ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=16384
  13. endif
  14. endif