Distinguish KERNEL_ARCH_DIR from KERNEL_ARCH.
On x86_64, the KERNEL_ARCH should really be "x86_64", but it was "x86" as the architecture sources/headers directory is shared between 32 and 64 bit. Should not be a functional change on any platform outside x86_64.
This commit is contained in:
@@ -217,6 +217,7 @@ rule KernelArchitectureSetup architecture
|
||||
# packaging architecture (supplied for convenience).
|
||||
|
||||
HAIKU_KERNEL_ARCH = $(HAIKU_ARCH) ;
|
||||
HAIKU_KERNEL_ARCH_DIR = $(HAIKU_KERNEL_ARCH) ;
|
||||
|
||||
local cpu = $(HAIKU_CPU_$(architecture)) ;
|
||||
|
||||
@@ -295,7 +296,7 @@ rule KernelArchitectureSetup architecture
|
||||
HAIKU_BOOT_ARCHIVE_IMAGE_OFFSET = 320 ; # in kB
|
||||
|
||||
# x86_64 kernel source is under arch/x86.
|
||||
HAIKU_KERNEL_ARCH = x86 ;
|
||||
HAIKU_KERNEL_ARCH_DIR = x86 ;
|
||||
|
||||
# nasm is required for target arch x86_64
|
||||
if ! $(HAIKU_NASM) {
|
||||
@@ -333,7 +334,7 @@ rule KernelArchitectureSetup architecture
|
||||
HAIKU_PRIVATE_KERNEL_HEADERS =
|
||||
[ PrivateHeaders $(DOT) kernel libroot shared
|
||||
kernel/boot/platform/$(HAIKU_KERNEL_PLATFORM) ]
|
||||
[ ArchHeaders $(HAIKU_KERNEL_ARCH) ]
|
||||
[ ArchHeaders $(HAIKU_KERNEL_ARCH_DIR) ]
|
||||
[ FDirName $(HAIKU_COMMON_DEBUG_OBJECT_DIR_$(architecture)) system
|
||||
kernel ]
|
||||
$(HAIKU_PRIVATE_SYSTEM_HEADERS_$(architecture))
|
||||
|
||||
@@ -565,7 +565,7 @@ if $(HAIKU_HOST_BUILD_ONLY) = 1 {
|
||||
# for all architectures (e.g. TARGET_DEFINES).
|
||||
|
||||
local buildVars =
|
||||
ARCH ARCHS KERNEL_ARCH PACKAGING_ARCH PACKAGING_ARCHS
|
||||
ARCH ARCHS KERNEL_ARCH KERNEL_ARCH_DIR PACKAGING_ARCH PACKAGING_ARCHS
|
||||
|
||||
DEFINES
|
||||
KERNEL_DEFINES
|
||||
|
||||
Reference in New Issue
Block a user