loader: Do not assume ELF32 for any non-EFI target.
sparc is 64bit even at the bootloader stage. Change-Id: Idbf39497503aac08e72c691cf655e97f95347784 Reviewed-on: https://review.haiku-os.org/c/1324 Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
This commit is contained in:
parent
f23db0edb5
commit
ddf7e72f86
@ -56,13 +56,36 @@ for platform in [ MultiBootSubDirSetup ] {
|
|||||||
DEFINES +=
|
DEFINES +=
|
||||||
_BOOT_PLATFORM_EFI
|
_BOOT_PLATFORM_EFI
|
||||||
;
|
;
|
||||||
}
|
} else {
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if $(TARGET_BOOT_PLATFORM) != efi {
|
|
||||||
DEFINES += BOOT_SUPPORT_ELF32 ;
|
DEFINES += BOOT_SUPPORT_ELF32 ;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
case "sparc" :
|
||||||
|
{
|
||||||
|
DEFINES +=
|
||||||
|
BOOT_SUPPORT_ELF64
|
||||||
|
;
|
||||||
|
}
|
||||||
|
case "risc-v" :
|
||||||
|
{
|
||||||
|
DEFINES +=
|
||||||
|
BOOT_SUPPORT_ELF64
|
||||||
|
;
|
||||||
|
}
|
||||||
|
case "m68k" :
|
||||||
|
{
|
||||||
|
DEFINES += BOOT_SUPPORT_ELF32 ;
|
||||||
|
}
|
||||||
|
case "arm" :
|
||||||
|
{
|
||||||
|
DEFINES += BOOT_SUPPORT_ELF32 ;
|
||||||
|
if $(TARGET_BOOT_PLATFORM) = efi {
|
||||||
|
DEFINES +=
|
||||||
|
_BOOT_PLATFORM_EFI
|
||||||
|
;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
local kernelC++Header = [ FDirName $(HAIKU_TOP) headers private kernel util
|
local kernelC++Header = [ FDirName $(HAIKU_TOP) headers private kernel util
|
||||||
kernel_cpp.h ] ;
|
kernel_cpp.h ] ;
|
||||||
|
Loading…
Reference in New Issue
Block a user