Merge pull request #62 from bradbishop/kernel

Out of (kernel) tree device trees
diff --git a/common/recipes-kernel/linux/linux-obmc_4.2.bb b/common/recipes-kernel/linux/linux-obmc_4.2.bb
index f49b3fc..3284fda 100644
--- a/common/recipes-kernel/linux/linux-obmc_4.2.bb
+++ b/common/recipes-kernel/linux/linux-obmc_4.2.bb
@@ -10,7 +10,7 @@
 LINUX_VERSION ?= "4.2"
 LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
 
-SRCREV="openbmc-20151028-1"
+SRCREV="openbmc-20151102-1"
 
 PV = "${LINUX_VERSION}+git${SRCPV}"
 
@@ -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
+}