From 1ccfdb2bd5f9e9a93c0dea564b1ff855affe7c07 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Sun, 10 Jan 2021 09:53:14 -0600 Subject: [PATCH] system/boot: Fix u-boot build under arm Change-Id: Ie10acfd10e8feab71660f99938cbb5bbab565772 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3618 Reviewed-by: Alex von Gluck IV Reviewed-by: Adrien Destugues --- src/system/boot/arch/riscv64/Jamfile | 5 ----- src/system/boot/platform/u-boot/arch/arm/Jamfile | 11 +++++++++++ 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/system/boot/arch/riscv64/Jamfile b/src/system/boot/arch/riscv64/Jamfile index 3b546c9f52..9c52e023d9 100644 --- a/src/system/boot/arch/riscv64/Jamfile +++ b/src/system/boot/arch/riscv64/Jamfile @@ -22,11 +22,6 @@ local kernelDebugSources = local kernelArchDriverSources = arch_elf.cpp - - # Serial UART Drivers - #arch_uart_8250.cpp - #arch_uart_8250_omap.cpp - #arch_uart_pl011.cpp ; local kernelGenericDriverSources = diff --git a/src/system/boot/platform/u-boot/arch/arm/Jamfile b/src/system/boot/platform/u-boot/arch/arm/Jamfile index 99eaf47687..cd25834de6 100644 --- a/src/system/boot/platform/u-boot/arch/arm/Jamfile +++ b/src/system/boot/platform/u-boot/arch/arm/Jamfile @@ -13,6 +13,13 @@ UsePrivateHeaders kernel [ FDirName kernel arch $(TARGET_KERNEL_ARCH) ] SubDirC++Flags -fno-rtti ; +# Things we borrow from the kernel due to lack of bios services +local kernelArchDriverSources = + #arch_uart_8250.cpp + arch_uart_8250_omap.cpp + arch_uart_pl011.cpp +; + BootMergeObject boot_platform_u-boot_arm.o : # must come first to have _start_* at correct locations shell.S @@ -26,6 +33,8 @@ BootMergeObject boot_platform_u-boot_arm.o : arch_framebuffer_omap3.cpp arch_framebuffer_pxa.cpp + $(kernelArchDriverSources) + # Mailbox drivers arch_mailbox_bcm2835.cpp @@ -33,5 +42,7 @@ BootMergeObject boot_platform_u-boot_arm.o : arch_mmu.cpp ; +SEARCH on [ FGristFiles $(kernelArchDriverSources) ] + = [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH) ] ; #SEARCH on [ FGristFiles arch_cpu_asm.S ] # = [ FDirName $(HAIKU_TOP) src system kernel arch $(TARGET_KERNEL_ARCH) ] ;