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 <[email protected]> Reviewed-by: Alex von Gluck IV <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
69f4a74149
commit
1103466926
@@ -499,6 +499,27 @@ rule KernelArchitectureSetup architecture
|
|||||||
HAIKU_BOOT_$(bootTarget:U)_CCFLAGS += -maccumulate-outgoing-args ;
|
HAIKU_BOOT_$(bootTarget:U)_CCFLAGS += -maccumulate-outgoing-args ;
|
||||||
HAIKU_BOOT_$(bootTarget:U)_C++FLAGS += -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
|
HAIKU_BOOT_$(bootTarget:U)_LDFLAGS = -Bstatic -Bsymbolic
|
||||||
-nostdlib -znocombreloc -no-undefined ;
|
-nostdlib -znocombreloc -no-undefined ;
|
||||||
|
|||||||
Reference in New Issue
Block a user