boot/loader/x86: select between 32-bit and 64-bit ELF support based on arch and platform
Build both when building BIOS loader. Build only 32-bit ELF support for 32-bit EFI loader. Build only 64-bit ELF support for 64-bit EFI loader. Change-Id: I88bb287fbb9a4b6618b365b2d03f85f64021f499 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4818 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
parent
5fcc7f71b5
commit
182eaee962
@ -54,17 +54,23 @@ for platform in [ MultiBootSubDirSetup ] {
|
||||
{
|
||||
DEFINES +=
|
||||
ALTERNATE_BOOT_ARCH=\\\"x86_64\\\"
|
||||
BOOT_SUPPORT_ELF64
|
||||
|
||||
BOOT_SUPPORT_PARTITION_EFI
|
||||
|
||||
#BOOT_SUPPORT_FILE_SYSTEM_FAT
|
||||
;
|
||||
|
||||
if $(TARGET_BOOT_PLATFORM) != efi {
|
||||
DEFINES +=
|
||||
_BOOT_PLATFORM_BIOS
|
||||
BOOT_SUPPORT_ELF32
|
||||
BOOT_SUPPORT_ELF64
|
||||
;
|
||||
} else {
|
||||
if $(TARGET_ARCH) = x86_64 {
|
||||
DEFINES += BOOT_SUPPORT_ELF64 ;
|
||||
} else {
|
||||
DEFINES += BOOT_SUPPORT_ELF32 ;
|
||||
}
|
||||
}
|
||||
}
|
||||
case "sparc" :
|
||||
|
Loading…
x
Reference in New Issue
Block a user