Files
SDK_SG200x_V2/buildroot-2021.05/arch/arch.mk.arc
carbon 390654aa5c add buildroot-2021.05
commit 69f79f2a2ee1417e19c1ead2c9226e11753c06cb
Author: Peter Korsgaard <peter@korsgaard.com>
Date:   Sun Jun 6 23:21:08 2021 +0200

    Update for 2021.05

    Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2024-05-31 19:11:52 +08:00

18 lines
541 B
Plaintext

ifeq ($(BR2_arc),y)
# -matomic is always required when the ARC core has the atomic extensions
ifeq ($(BR2_ARC_ATOMIC_EXT),y)
ARCH_TOOLCHAIN_WRAPPER_OPTS = -matomic
endif
# Explicitly set LD's "max-page-size" instead of relying on some defaults
ifeq ($(BR2_ARC_PAGE_SIZE_4K),y)
ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=4096
else ifeq ($(BR2_ARC_PAGE_SIZE_8K),y)
ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=8192
else ifeq ($(BR2_ARC_PAGE_SIZE_16K),y)
ARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=16384
endif
endif