summaryrefslogtreecommitdiff
path: root/meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed.inc
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2018-03-24 08:42:56 +0300
committerBrad Bishop <bradleyb@fuzziesquirrel.com>2018-06-15 16:03:37 +0300
commitac7284629ea572cf27d69949dc4014b3b226f14f (patch)
tree5fc089f2688322722a46f0dcfe12e608a1be59af /meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed.inc
parentdf497e2c06efce859fa48082d3fba69a42a47842 (diff)
downloadopenbmc-ac7284629ea572cf27d69949dc4014b3b226f14f.tar.xz
Rename and move kernel recipe
Rename linux-obmc to linux-aspeed and move to the Aspeed layer. Like recipes for u-boot forks, recipes for kernel forks in support of different SOCs are typically provided in the BSP supporting the SOC. Moved a number of phosphor-isms out of the kernel recipe and put those in a bbappend in aspeed-layer/bbappend. Removed COMPATIBLE_MACHINE setting. We simply use PREFERRED_PROVIDER in machine configuration files to set the default kernel recipe. Tested: Booted spoon/palmetto images using QEMU Change-Id: I7dc73629cad4789dcd5aeb0f7b6214fe064c6adc Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed.inc')
-rw-r--r--meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed.inc29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed.inc b/meta-openbmc-bsp/meta-aspeed/common/recipes-kernel/linux/linux-aspeed.inc
new file mode 100644
index 000000000..55678405f
--- /dev/null
+++ b/meta-openbmc-bsp/meta-aspeed/common/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