boot/efi: build boot_fdt.a with boot compiler flags

Change-Id: I698019697d1c3bcf1e913316cfd6c0dcab65d4e3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4689
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
David Karoly 2021-11-05 16:05:18 +01:00 committed by waddlesplash
parent 24c1b1812c
commit 7f6f87d29d
3 changed files with 20 additions and 5 deletions

View File

@ -23,10 +23,6 @@ KernelAddon fdt :
$(libFDTSources)
;
BootStaticLibrary boot_fdt :
$(libFDTSources)
;
KernelStaticLibrary kernel_fdt :
$(libFDTSources)
;

View File

@ -29,6 +29,17 @@ local zstdDecSources =
huf_decompress.c zstd_ddict.c zstd_decompress.c zstd_decompress_block.c
;
local libFDTSourceDirectory = [ FDirName $(HAIKU_TOP) src libs libfdt ] ;
local libFDTSources =
fdt.c
fdt_ro.c
fdt_rw.c
fdt_strerror.c
fdt_sw.c
fdt_wip.c
;
local platform ;
for platform in [ MultiBootSubDirSetup ] {
on $(platform) {
@ -58,5 +69,13 @@ for platform in [ MultiBootSubDirSetup ] {
;
Depends [ FGristFiles $(zstdCommonSources) $(zstdDecSources) ]
: [ BuildFeatureAttribute zstd : sources ] ;
# fdt
UseLibraryHeaders [ FDirName libfdt ] ;
BootStaticLibrary [ MultiBootGristFiles boot_fdt ] :
$(libFDTSources) ;
LOCATE on [ FGristFiles $(libFDTSources) ] = $(libFDTSourceDirectory) ;
}
}

View File

@ -54,7 +54,7 @@ for platform in [ MultiBootSubDirSetup efi ] {
BootMergeObject boot_platform_efi_common.o :
$(platform_src)
: :
$(support_libs)
[ MultiBootGristFiles $(support_libs) ]
boot_platform_generic_efi.a
;