[PATCH openbmc] Re-enable out of tree device trees
OpenBMC Patches
openbmc-patches at stwcx.xyz
Tue May 17 08:50:31 AEST 2016
From: Brad Bishop <bradleyb at fuzziesquirrel.com>
This snippet was mistakenly removed with 8ef9fee.
Note that this isn't a matter of policy, it simply enables
the option to do it. The in-tree device tree is still the default.
---
meta-phosphor/common/recipes-kernel/linux/linux-obmc_4.4.bb | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/meta-phosphor/common/recipes-kernel/linux/linux-obmc_4.4.bb b/meta-phosphor/common/recipes-kernel/linux/linux-obmc_4.4.bb
index 24cde9f..945b43d 100644
--- a/meta-phosphor/common/recipes-kernel/linux/linux-obmc_4.4.bb
+++ b/meta-phosphor/common/recipes-kernel/linux/linux-obmc_4.4.bb
@@ -18,3 +18,13 @@ COMPATIBLE_MACHINE_${MACHINE} = "openbmc"
inherit kernel
require recipes-kernel/linux/linux-yocto.inc
+
+do_patch_append() {
+ for DTB in "${KERNEL_DEVICETREE}"; do
+ DT=`basename ${DTB} .dtb`
+ if [ -r "${WORKDIR}/${DT}.dts" ]; then
+ cp ${WORKDIR}/${DT}.dts \
+ ${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts
+ fi
+ done
+}
--
2.8.2
More information about the openbmc
mailing list