diff options
author | Brad Bishop <bradleyb@us.ibm.com> | 2015-11-01 20:13:47 -0500 |
---|---|---|
committer | Brad Bishop <bradleyb@us.ibm.com> | 2015-11-01 20:13:47 -0500 |
commit | 739d7a23c6e56e03445ba0a00b99fef64cf4699a (patch) | |
tree | 84cfc376228267a6b0cbc40e596bba9bf358f93e /meta-phosphor/common/recipes-kernel | |
parent | 4bd2cbf723a746dfe80a0dded0473a71f7950eed (diff) | |
download | talos-openbmc-739d7a23c6e56e03445ba0a00b99fef64cf4699a.tar.gz talos-openbmc-739d7a23c6e56e03445ba0a00b99fef64cf4699a.zip |
Copy device tree into unpacked kernel source
This bit of logic enables out of (kernel) tree device trees but still
use the kernel build and oe support for device tree to compile it.
Diffstat (limited to 'meta-phosphor/common/recipes-kernel')
-rw-r--r-- | meta-phosphor/common/recipes-kernel/linux/linux-obmc_4.2.bb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-kernel/linux/linux-obmc_4.2.bb b/meta-phosphor/common/recipes-kernel/linux/linux-obmc_4.2.bb index f49b3fcce..247f64c10 100644 --- a/meta-phosphor/common/recipes-kernel/linux/linux-obmc_4.2.bb +++ b/meta-phosphor/common/recipes-kernel/linux/linux-obmc_4.2.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 +} |