build ARM EFI bootloader with soft-float

Change-Id: If7feffafea4fc6d295d04f696127c8f0fbd8fb9d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4704
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Alex von Gluck IV <kallisti5@unixzen.com>
This commit is contained in:
David Karoly 2021-11-04 17:33:55 +01:00 committed by Adrien Destugues
parent 69f4a74149
commit 1103466926

View File

@ -499,6 +499,27 @@ rule KernelArchitectureSetup architecture
HAIKU_BOOT_$(bootTarget:U)_CCFLAGS += -maccumulate-outgoing-args ;
HAIKU_BOOT_$(bootTarget:U)_C++FLAGS += -maccumulate-outgoing-args ;
}
case arm :
HAIKU_BOOT_$(bootTarget:U)_CCFLAGS += -mfloat-abi=soft ;
HAIKU_BOOT_$(bootTarget:U)_C++FLAGS += -mfloat-abi=soft ;
# Remove any previous -mfloat-abi=hard setting from compiler flags
local fixedBootCCFlags ;
local fixedBootC++Flags ;
for flag in $(HAIKU_BOOT_CCFLAGS) {
if $(flag) = "-mfloat-abi=hard" {
continue ;
}
fixedBootCCFlags += $(flag) ;
}
for flag in $(HAIKU_BOOT_C++FLAGS) {
if $(flag) = "-mfloat-abi=hard" {
continue ;
}
fixedBootC++Flags += $(flag) ;
}
HAIKU_BOOT_CCFLAGS = $(fixedBootCCFlags) ;
HAIKU_BOOT_C++FLAGS = $(fixedBootC++Flags) ;
}
HAIKU_BOOT_$(bootTarget:U)_LDFLAGS = -Bstatic -Bsymbolic
-nostdlib -znocombreloc -no-undefined ;