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:
parent
24c1b1812c
commit
7f6f87d29d
@ -23,10 +23,6 @@ KernelAddon fdt :
|
||||
$(libFDTSources)
|
||||
;
|
||||
|
||||
BootStaticLibrary boot_fdt :
|
||||
$(libFDTSources)
|
||||
;
|
||||
|
||||
KernelStaticLibrary kernel_fdt :
|
||||
$(libFDTSources)
|
||||
;
|
||||
|
@ -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) ;
|
||||
}
|
||||
}
|
||||
|
@ -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
|
||||
;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user