blob: 81edb70c01c451439c8d2985ba622c00637b52bd [file] [log] [blame]
Brad Bishopa7127322015-10-06 00:27:43 -04001DESCRIPTION = "Linux kernel for OpenBMC"
2SECTION = "kernel"
3LICENSE = "GPLv2"
4
5KBRANCH ?= "dev"
6
7SRC_URI = "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}"
Brad Bishopa7127322015-10-06 00:27:43 -04008SRC_URI += "file://obmc-bsp.scc \
9 file://obmc-bsp.cfg \
10 file://obmc-bsp-user-config.cfg \
11 file://obmc-bsp-user-patches.scc \
12 "
13
14LINUX_VERSION ?= "4.2"
15LINUX_VERSION_EXTENSION ?= "-openbmc-${SRCPV}"
16
Brad Bishopc72d7062015-10-28 10:21:32 -040017SRCREV="openbmc-20151028-1"
Brad Bishopa7127322015-10-06 00:27:43 -040018
19PV = "${LINUX_VERSION}+git${SRCPV}"
20
21COMPATIBLE_MACHINE_${MACHINE} = "openbmc"
22
23inherit kernel
24require recipes-kernel/linux/linux-yocto.inc
25
26do_configure_prepend() {
27 sed -i 's/CONFIG_LOCALVERSION=.\+/CONFIG_LOCALVERSION=${LINUX_VERSION_EXTENSION}/' ${S}/arch/${ARCH}/configs/${KMACHINE}_defconfig
28}