mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-02 15:26:39 +07:00
d746d647f3
For x86 ARCH may say i386 or x86_64 and soon x86. Rely on CONFIG_X64_32 to select between 32/64 or just hardcode the value as appropriate. Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Ingo Molnar <mingo@redhat.com> Cc: "H. Peter Anvin" <hpa@zytor.com>
21 lines
410 B
Makefile
21 lines
410 B
Makefile
# Unified Makefile for i386 and x86_64
|
|
|
|
# select defconfig based on actual architecture
|
|
ifeq ($(ARCH),x86)
|
|
KBUILD_DEFCONFIG := i386_defconfig
|
|
else
|
|
KBUILD_DEFCONFIG := $(ARCH)_defconfig
|
|
endif
|
|
|
|
# No need to remake these files
|
|
$(srctree)/arch/x86/Makefile%: ;
|
|
|
|
ifeq ($(CONFIG_X86_32),y)
|
|
include $(srctree)/arch/x86/Makefile_32
|
|
else
|
|
include $(srctree)/arch/x86/Makefile_64
|
|
endif
|
|
|
|
|
|
|