mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 07:03:03 +02:00
sparc: Implement ARCH_HAS_CC_CAN_LINK
The generic CC_CAN_LINK detection does not work for all architectures. Make the logic easier to understand and allow the simplification of the generic CC_CAN_LINK by using a tailored implementation. Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de> Reviewed-by: Andreas Larsson <andreas@gaisler.com> Signed-off-by: Andreas Larsson <andreas@gaisler.com>
This commit is contained in:
parent
8f0b4cce44
commit
dc2f4d41a6
|
|
@ -13,6 +13,7 @@ config 64BIT
|
|||
config SPARC
|
||||
bool
|
||||
default y
|
||||
select ARCH_HAS_CC_CAN_LINK
|
||||
select ARCH_HAS_CPU_CACHE_ALIASING
|
||||
select ARCH_HAS_DMA_OPS
|
||||
select ARCH_MIGHT_HAVE_PC_PARPORT if SPARC64 && PCI
|
||||
|
|
@ -475,4 +476,14 @@ config COMPAT
|
|||
select ARCH_WANT_OLD_COMPAT_IPC
|
||||
select COMPAT_OLD_SIGACTION
|
||||
|
||||
config ARCH_CC_CAN_LINK
|
||||
bool
|
||||
default $(cc_can_link_user,-m64) if 64BIT
|
||||
default $(cc_can_link_user,-m32)
|
||||
|
||||
config ARCH_USERFLAGS
|
||||
string
|
||||
default "-m64" if 64BIT
|
||||
default "-m32"
|
||||
|
||||
source "drivers/sbus/char/Kconfig"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user