blob: 3e5bc948612675264ed5dee6ad96533d642fa273 [file] [log] [blame]
Brad Bishop4ccd9f32015-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 Bishop4ccd9f32015-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
17SRCREV="${AUTOREV}"
18
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}