File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ config PPC
127127 select ARCH_DMA_DEFAULT_COHERENT if !NOT_COHERENT_CACHE
128128 select ARCH_ENABLE_MEMORY_HOTPLUG
129129 select ARCH_ENABLE_MEMORY_HOTREMOVE
130+ select ARCH_HAS_CC_CAN_LINK
130131 select ARCH_HAS_COPY_MC if PPC64
131132 select ARCH_HAS_CURRENT_STACK_POINTER
132133 select ARCH_HAS_DEBUG_VIRTUAL
@@ -1342,6 +1343,20 @@ endif
13421343config PPC_LIB_RHEAP
13431344 bool
13441345
1346+ config ARCH_CC_CAN_LINK
1347+ bool
1348+ default $(cc_can_link_user,$(m64-flag) -mlittle-endian) if 64BIT && CPU_LITTLE_ENDIAN
1349+ default $(cc_can_link_user,$(m64-flag) -mbig-endian) if 64BIT && CPU_BIG_ENDIAN
1350+ default $(cc_can_link_user,$(m32-flag) -mlittle-endian) if CPU_LITTLE_ENDIAN
1351+ default $(cc_can_link_user,$(m32-flag) -mbig-endian) if CPU_BIG_ENDIAN
1352+
1353+ config ARCH_USERFLAGS
1354+ string
1355+ default "$(m64-flag) -mlittle-endian" if 64BIT && CPU_LITTLE_ENDIAN
1356+ default "$(m64-flag) -mbig-endian" if 64BIT && CPU_BIG_ENDIAN
1357+ default "$(m32-flag) -mlittle-endian" if CPU_LITTLE_ENDIAN
1358+ default "$(m32-flag) -mbig-endian" if CPU_BIG_ENDIAN
1359+
13451360source "arch/powerpc/kvm/Kconfig"
13461361
13471362source "kernel/livepatch/Kconfig"
You can’t perform that action at this time.
0 commit comments