diff options
Diffstat (limited to 'meta-phosphor/common/recipes-kernel/linux/linux-obmc_4.2.bb')
-rw-r--r-- | meta-phosphor/common/recipes-kernel/linux/linux-obmc_4.2.bb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-kernel/linux/linux-obmc_4.2.bb b/meta-phosphor/common/recipes-kernel/linux/linux-obmc_4.2.bb new file mode 100644 index 000000000..b38d1a8d4 --- /dev/null +++ b/meta-phosphor/common/recipes-kernel/linux/linux-obmc_4.2.bb @@ -0,0 +1,29 @@ +DESCRIPTION = "Linux kernel for OpenBMC" +SECTION = "kernel" +LICENSE = "GPLv2" + +KBRANCH ?= "dev" + +SRC_URI = "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}" +SRC_URI += "file://systemd-reqs.patch file://initrd-source.patch" +SRC_URI += "file://obmc-bsp.scc \ + file://obmc-bsp.cfg \ + file://obmc-bsp-user-config.cfg \ + file://obmc-bsp-user-patches.scc \ + " + +LINUX_VERSION ?= "4.2" +LINUX_VERSION_EXTENSION ?= "-openbmc-${SRCPV}" + +SRCREV="${AUTOREV}" + +PV = "${LINUX_VERSION}+git${SRCPV}" + +COMPATIBLE_MACHINE_${MACHINE} = "openbmc" + +inherit kernel +require recipes-kernel/linux/linux-yocto.inc + +do_configure_prepend() { + sed -i 's/CONFIG_LOCALVERSION=.\+/CONFIG_LOCALVERSION=${LINUX_VERSION_EXTENSION}/' ${S}/arch/${ARCH}/configs/${KMACHINE}_defconfig +} |