summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-bsp/meta-aspeed/recipes-kernel/linux/linux-aspeed.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta-openbmc-bsp/meta-aspeed/recipes-kernel/linux/linux-aspeed.inc')
-rw-r--r--meta-openbmc-bsp/meta-aspeed/recipes-kernel/linux/linux-aspeed.inc29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-openbmc-bsp/meta-aspeed/recipes-kernel/linux/linux-aspeed.inc b/meta-openbmc-bsp/meta-aspeed/recipes-kernel/linux/linux-aspeed.inc
new file mode 100644
index 000000000..55678405f
--- /dev/null
+++ b/meta-openbmc-bsp/meta-aspeed/recipes-kernel/linux/linux-aspeed.inc
@@ -0,0 +1,29 @@
+DESCRIPTION = "Linux kernel for Aspeed"
+SECTION = "kernel"
+LICENSE = "GPLv2"
+
+PROVIDES += "virtual/kernel"
+
+KCONFIG_MODE="--alldefconfig"
+
+KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}"
+SRC_URI = "${KSRC}"
+SRC_URI_append_ast2400 = " file://ast2400/defconfig"
+SRC_URI_append_ast2500 = " file://ast2500/defconfig"
+
+LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
+
+PV = "${LINUX_VERSION}+git${SRCPV}"
+
+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
OpenPOWER on IntegriCloud