Brad Bishop | 4ccd9f3 | 2015-10-06 00:27:43 -0400 | [diff] [blame] | 1 | DESCRIPTION = "Linux kernel for OpenBMC" |
| 2 | SECTION = "kernel" |
| 3 | LICENSE = "GPLv2" |
| 4 | |
| 5 | KBRANCH ?= "dev" |
| 6 | |
| 7 | SRC_URI = "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}" |
| 8 | SRC_URI += "file://systemd-reqs.patch file://initrd-source.patch" |
| 9 | SRC_URI += "file://obmc-bsp.scc \ |
| 10 | file://obmc-bsp.cfg \ |
| 11 | file://obmc-bsp-user-config.cfg \ |
| 12 | file://obmc-bsp-user-patches.scc \ |
| 13 | " |
| 14 | |
| 15 | LINUX_VERSION ?= "4.2" |
| 16 | LINUX_VERSION_EXTENSION ?= "-openbmc-${SRCPV}" |
| 17 | |
| 18 | SRCREV="${AUTOREV}" |
| 19 | |
| 20 | PV = "${LINUX_VERSION}+git${SRCPV}" |
| 21 | |
| 22 | COMPATIBLE_MACHINE_${MACHINE} = "openbmc" |
| 23 | |
| 24 | inherit kernel |
| 25 | require recipes-kernel/linux/linux-yocto.inc |
| 26 | |
| 27 | do_configure_prepend() { |
| 28 | sed -i 's/CONFIG_LOCALVERSION=.\+/CONFIG_LOCALVERSION=${LINUX_VERSION_EXTENSION}/' ${S}/arch/${ARCH}/configs/${KMACHINE}_defconfig |
| 29 | } |