xref: /OK3568_Linux_fs/buildroot/arch/arch.mk.arc (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyunifeq ($(BR2_arc),y)
2*4882a593Smuzhiyun
3*4882a593Smuzhiyun# -matomic is always required when the ARC core has the atomic extensions
4*4882a593Smuzhiyunifeq ($(BR2_ARC_ATOMIC_EXT),y)
5*4882a593SmuzhiyunARCH_TOOLCHAIN_WRAPPER_OPTS = -matomic
6*4882a593Smuzhiyunendif
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun# Explicitly set LD's "max-page-size" instead of relying on some defaults
9*4882a593Smuzhiyunifeq ($(BR2_ARC_PAGE_SIZE_4K),y)
10*4882a593SmuzhiyunARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=4096
11*4882a593Smuzhiyunelse ifeq ($(BR2_ARC_PAGE_SIZE_8K),y)
12*4882a593SmuzhiyunARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=8192
13*4882a593Smuzhiyunelse ifeq ($(BR2_ARC_PAGE_SIZE_16K),y)
14*4882a593SmuzhiyunARCH_TOOLCHAIN_WRAPPER_OPTS += -Wl,-z,max-page-size=16384
15*4882a593Smuzhiyunendif
16*4882a593Smuzhiyun
17*4882a593Smuzhiyunendif
18