[Subtree] Bring openbmc machines to top level

The new subtree model brings the subtrees up from the openbmc-machines
layer.

Change-Id: I58a03ae1be374bc79ae1438e65e888375d12d0c0
Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-fsp2/recipes-kernel/linux/linux-fsp2.inc b/meta-fsp2/recipes-kernel/linux/linux-fsp2.inc
new file mode 100644
index 0000000..0f65dfe
--- /dev/null
+++ b/meta-fsp2/recipes-kernel/linux/linux-fsp2.inc
@@ -0,0 +1,31 @@
+DESCRIPTION = "Linux kernel for the FSP2 system on a chip"
+SECTION = "kernel"
+LICENSE = "GPLv2"
+
+KCONFIG_MODE="--alldefconfig"
+
+KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=dev-4.13"
+SRC_URI = "${KSRC}"
+
+LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
+
+PV = "${LINUX_VERSION}+git${SRCPV}"
+
+COMPATIBLE_MACHINE_${MACHINE} = "^${MACHINE}$"
+KERNEL_CLASSES ?= "kernel-uimage"
+
+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
+}
+
+inherit kernel
+require recipes-kernel/linux/linux-yocto.inc
+
+KERNEL_FEATURES_remove = "phosphor-gpio-keys"
+INSANE_SKIP_kernel-vmlinux = "ldflags"