summaryrefslogtreecommitdiffstats
path: root/recipes-kernel
diff options
context:
space:
mode:
authorHerve Jourdain <herve.jourdain@neuf.fr>2016-07-21 06:00:36 +0800
committerAndrei Gherzan <andrei@gherzan.ro>2016-09-21 16:46:46 +0100
commit18a2fb644bf5aa0eb3b692c5dcacb24c910be78f (patch)
treecce85234f6186e8200893f746959d0f6703f964f /recipes-kernel
parenta5f9b07a820d50ae5fb62e07306cd4e72d8638a9 (diff)
downloadmeta-raspberrypi-18a2fb644bf5aa0eb3b692c5dcacb24c910be78f.tar.gz
linux-raspberrypi_4.4.bb: support for .dtbo files for dtb overlays
Kernel 4.4.6+ on RaspberryPi support .dtbo files for overlays, instead of .dtb. Patch the kernel, which has faulty rules to generate .dtbo the way yocto does Signed-off-by: Herve Jourdain <herve.jourdain@neuf.fr>
Diffstat (limited to 'recipes-kernel')
-rw-r--r--recipes-kernel/linux/linux-raspberrypi-4.4/0001-fix-dtbo-rules.patch44
-rw-r--r--recipes-kernel/linux/linux-raspberrypi_4.4.bb1
2 files changed, 45 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-raspberrypi-4.4/0001-fix-dtbo-rules.patch b/recipes-kernel/linux/linux-raspberrypi-4.4/0001-fix-dtbo-rules.patch
new file mode 100644
index 0000000..5113e23
--- /dev/null
+++ b/recipes-kernel/linux/linux-raspberrypi-4.4/0001-fix-dtbo-rules.patch
@@ -0,0 +1,44 @@
1From 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) ; \
diff --git a/recipes-kernel/linux/linux-raspberrypi_4.4.bb b/recipes-kernel/linux/linux-raspberrypi_4.4.bb
index 3291ffd..b13925c 100644
--- a/recipes-kernel/linux/linux-raspberrypi_4.4.bb
+++ b/recipes-kernel/linux/linux-raspberrypi_4.4.bb
@@ -4,5 +4,6 @@ LINUX_VERSION ?= "4.4.13"
4 4
5SRCREV = "680be5e27a9593cf26079c6e5744a04cc2809d13" 5SRCREV = "680be5e27a9593cf26079c6e5744a04cc2809d13"
6SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.4.y \ 6SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.4.y \
7 file://0001-fix-dtbo-rules.patch \
7" 8"
8require linux-raspberrypi.inc 9require linux-raspberrypi.inc