blob: 5113e23fb20c41292b07fdba7c402ed42815c092 [file] [log] [blame]
Patrick Williamsb2e6a9b2017-02-23 20:31:26 -06001From 13c8784da3dbd977f64cec740eba775b6fab11c2 Mon Sep 17 00:00:00 2001
2From: Herve Jourdain <herve.jourdain@neuf.fr>
3Date: Fri, 20 May 2016 16:02:23 +0800
4Subject: [yocto][meta-raspberrypi][PATCH v4 4/5] linux-raspberrypi_4.4.inc:
5 support for .dtbo files for dtb overlays
6
7Upstream-Status: Pending
8
9Kernel 4.4.6+ on RaspberryPi support .dtbo files for overlays, instead of .dtb.
10Patch the kernel, which has faulty rules to generate .dtbo the way yocto does
11
12Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
13---
14 .../0001-fix-dtbo-rules.patch | 27 ++++++++++++++++++++++
15 1 file changed, 27 insertions(+)
16 create mode 100644 recipes-kernel/linux/linux-raspberrypi-4.4/0001-fix-dtbo-rules.patch
17
18diff --git a/arch/arm/Makefile b/arch/arm/Makefile
19index a2e7cf7..673c1cb 100644
20--- a/arch/arm/Makefile
21+++ b/arch/arm/Makefile
22@@ -333,6 +333,8 @@ $(INSTALL_TARGETS):
23
24 %.dtb: | scripts
25 $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
26+%.dtbo: | scripts
27+ $(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
28
29 PHONY += dtbs dtbs_install
30
31diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
32index 3079c4f..6cc3766 100644
33--- a/scripts/Makefile.lib
34+++ b/scripts/Makefile.lib
35@@ -293,7 +293,8 @@ $(obj)/%.dtb: $(src)/%.dts FORCE
36 $(call if_changed_dep,dtc)
37
38 quiet_cmd_dtco = DTCO $@
39-cmd_dtco = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
40+cmd_dtco = mkdir -p $(dir ${dtc-tmp}) ; \
41+ $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
42 $(objtree)/scripts/dtc/dtc -@ -H epapr -O dtb -o $@ -b 0 \
43 -i $(dir $<) $(DTC_FLAGS) \
44 -d $(depfile).dtc.tmp $(dtc-tmp) ; \