diff mbox series

[03/20] bcm27xx: fix device-tree support patch for split source/build dirs

Message ID 3f1a6b89e036b814ae6fae07bee89910404dce24.1700010290.git.ehem+openwrt@m5p.com
State Not Applicable
Delegated to: Petr Štetiar
Headers show
Series Kernel build fixups, split object directory off (partial WIP) | expand

Commit Message

Elliott Mitchell Nov. 13, 2023, 9:42 p.m. UTC
The kernel source directory needs to be in the include path for
compilation.  This fixes separated build snd source directory
functioning.

Signed-off-by: Elliott Mitchell <ehem+openwrt@m5p.com>
---
This is really meant as a PoC fix.  This works, but doesn't seem to
quite match the existing style.  I'm also unsure of where in the
arguments this addition should be.  Nonetheless, this is a bug.
---
 .../950-0061-BCM2708-Add-core-Device-Tree-support.patch         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/target/linux/bcm27xx/patches-6.1/950-0061-BCM2708-Add-core-Device-Tree-support.patch b/target/linux/bcm27xx/patches-6.1/950-0061-BCM2708-Add-core-Device-Tree-support.patch
index 442abb456f..3856183a5b 100644
--- a/target/linux/bcm27xx/patches-6.1/950-0061-BCM2708-Add-core-Device-Tree-support.patch
+++ b/target/linux/bcm27xx/patches-6.1/950-0061-BCM2708-Add-core-Device-Tree-support.patch
@@ -37848,7 +37848,7 @@  index 3aa384cec76b..ed87353646bf 100644
  
 +quiet_cmd_dtco = DTCO    $@
 +cmd_dtco = mkdir -p $(dir ${dtc-tmp}) ; \
-+	$(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
++	$(CPP) $(dtc_cpp_flags) -I$(srctree)/include -x assembler-with-cpp -o $(dtc-tmp) $< ; \
 +	$(DTC) -@ -H epapr -O dtb -o $@ -b 0 \
 +		-i $(dir $<) $(DTC_FLAGS) \
 +		-Wno-interrupts_property \