All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-raspberrypi][PATCH 01/23] linux-raspberrypi_4.4.bb: support for .dtbo files for dtb overlays
@ 2016-08-12  1:05 Khem Raj
  2016-08-12  1:05 ` [meta-raspberrypi][PATCH 02/23] rpi-base.inc: " Khem Raj
                   ` (21 more replies)
  0 siblings, 22 replies; 24+ messages in thread
From: Khem Raj @ 2016-08-12  1:05 UTC (permalink / raw)
  To: yocto

From: Herve Jourdain <herve.jourdain@neuf.fr>

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>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 .../0001-fix-dtbo-rules.patch                      | 44 ++++++++++++++++++++++
 recipes-kernel/linux/linux-raspberrypi_4.4.bb      |  1 +
 2 files changed, 45 insertions(+)
 create mode 100644 recipes-kernel/linux/linux-raspberrypi-4.4/0001-fix-dtbo-rules.patch

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 @@
+From 13c8784da3dbd977f64cec740eba775b6fab11c2 Mon Sep 17 00:00:00 2001
+From: Herve Jourdain <herve.jourdain@neuf.fr>
+Date: Fri, 20 May 2016 16:02:23 +0800
+Subject: [yocto][meta-raspberrypi][PATCH v4 4/5] linux-raspberrypi_4.4.inc:
+ support for .dtbo files for dtb overlays
+
+Upstream-Status: Pending
+
+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>
+---
+ .../0001-fix-dtbo-rules.patch                      | 27 ++++++++++++++++++++++
+ 1 file changed, 27 insertions(+)
+ create mode 100644 recipes-kernel/linux/linux-raspberrypi-4.4/0001-fix-dtbo-rules.patch
+
+diff --git a/arch/arm/Makefile b/arch/arm/Makefile
+index a2e7cf7..673c1cb 100644
+--- a/arch/arm/Makefile
++++ b/arch/arm/Makefile
+@@ -333,6 +333,8 @@ $(INSTALL_TARGETS):
+ 
+ %.dtb: | scripts
+ 	$(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
++%.dtbo: | scripts
++	$(Q)$(MAKE) $(build)=$(boot)/dts MACHINE=$(MACHINE) $(boot)/dts/$@
+ 
+ PHONY += dtbs dtbs_install
+ 
+diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib
+index 3079c4f..6cc3766 100644
+--- a/scripts/Makefile.lib
++++ b/scripts/Makefile.lib
+@@ -293,7 +293,8 @@ $(obj)/%.dtb: $(src)/%.dts FORCE
+ 	$(call if_changed_dep,dtc)
+ 
+ quiet_cmd_dtco = DTCO    $@
+-cmd_dtco = $(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
++cmd_dtco = mkdir -p $(dir ${dtc-tmp}) ; \
++	$(CPP) $(dtc_cpp_flags) -x assembler-with-cpp -o $(dtc-tmp) $< ; \
+ 	$(objtree)/scripts/dtc/dtc -@ -H epapr -O dtb -o $@ -b 0 \
+ 		-i $(dir $<) $(DTC_FLAGS) \
+ 		-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"
 
 SRCREV = "680be5e27a9593cf26079c6e5744a04cc2809d13"
 SRC_URI = "git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.4.y \
+           file://0001-fix-dtbo-rules.patch \
 "
 require linux-raspberrypi.inc
-- 
2.9.2



^ permalink raw reply related	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2016-09-21 16:42 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-12  1:05 [meta-raspberrypi][PATCH 01/23] linux-raspberrypi_4.4.bb: support for .dtbo files for dtb overlays Khem Raj
2016-08-12  1:05 ` [meta-raspberrypi][PATCH 02/23] rpi-base.inc: " Khem Raj
2016-08-12  1:05 ` [meta-raspberrypi][PATCH 03/23] linux-raspberrypi-base.bbclass: " Khem Raj
2016-08-12  1:05 ` [meta-raspberrypi][PATCH 04/23] sdcard_image-rpi.bbclass: " Khem Raj
2016-08-12  1:05 ` [meta-raspberrypi][PATCH 05/23] rpi-default-providers.inc: change default providers to support vc4graphics Khem Raj
2016-08-12  1:05 ` [meta-raspberrypi][PATCH 06/23] rpi-base.inc: add vc4-kms-v3d to the overlays " Khem Raj
2016-08-12  1:05 ` [meta-raspberrypi][PATCH 07/23] raspberrypi.conf: set the default value of VC4_CMA_SIZE " Khem Raj
2016-08-12  1:05 ` [meta-raspberrypi][PATCH 08/23] raspberrypi0.conf: " Khem Raj
2016-08-12  1:05 ` [meta-raspberrypi][PATCH 09/23] raspberrypi2.conf: " Khem Raj
2016-08-12  1:05 ` [meta-raspberrypi][PATCH 10/23] raspberrypi3.conf: " Khem Raj
2016-08-12  1:05 ` [meta-raspberrypi][PATCH 11/23] rpi-config_git.bb: add v4c overlay to config.txt " Khem Raj
2016-08-12  1:05 ` [meta-raspberrypi][PATCH 12/23] wayland/weston_%.bbappend: modify configuration options " Khem Raj
2016-08-12  1:05 ` [meta-raspberrypi][PATCH 13/23] weston/weston_%.bbappend: " Khem Raj
2016-08-12  1:05 ` [meta-raspberrypi][PATCH 14/23] mesa_%.bbappend: new file to add the correct " Khem Raj
2016-08-12  1:06 ` [meta-raspberrypi][PATCH 15/23] linux-rpi.inc: add the configuration options required " Khem Raj
2016-08-12  1:06 ` [meta-raspberrypi][PATCH 16/23] linux-raspberrypi-4.4: add patch to enable proper operation of renderD128 device Khem Raj
2016-08-12  1:06 ` [meta-raspberrypi][PATCH 17/23] linux-raspberrypi_4.4: upgrade to 4.4.16 Khem Raj
2016-09-21 16:41   ` Andrei Gherzan
2016-08-12  1:06 ` [meta-raspberrypi][PATCH 18/23] linux-raspberrypi: Add recipe for 4.7 release Khem Raj
2016-08-12  1:06 ` [meta-raspberrypi][PATCH 19/23] linux-raspberrypi_3.18: Remove Khem Raj
2016-08-12  1:06 ` [meta-raspberrypi][PATCH 20/23] firmware, userland: Bump to latest Khem Raj
2016-08-12  1:06 ` [meta-raspberrypi][PATCH 21/23] vc4graphics: Support X11 with the VC4 driver Khem Raj
2016-08-12  1:06 ` [meta-raspberrypi][PATCH 22/23] Switch to using 4.4 as default kernel Khem Raj
2016-08-12  1:06 ` [meta-raspberrypi][PATCH 23/23] weston: Fix typo with override Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.