Merge pull request #275 from bradbishop/out-of-tree

Re-enable out of tree device trees
diff --git a/common/recipes-kernel/linux/linux-obmc_4.4.bb b/common/recipes-kernel/linux/linux-obmc_4.4.bb
index 09d40e5..47e3698 100644
--- a/common/recipes-kernel/linux/linux-obmc_4.4.bb
+++ b/common/recipes-kernel/linux/linux-obmc_4.4.bb
@@ -18,3 +18,13 @@
 
 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
+}