blob: 24db6f7844330469d3e021f25a3b85e6d90b183f [file] [log] [blame]
Brad Bishop23572092016-06-03 23:53:25 -04001DESCRIPTION = "Linux kernel for OpenBMC"
2SECTION = "kernel"
3LICENSE = "GPLv2"
4
5KCONFIG_MODE="--alldefconfig"
6
7KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}"
8SRC_URI = "${KSRC}"
9
10LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
11
12PV = "${LINUX_VERSION}+git${SRCPV}"
13
14COMPATIBLE_MACHINE_${MACHINE} = "openbmc"
15
16do_patch_append() {
17 for DTB in "${KERNEL_DEVICETREE}"; do
18 DT=`basename ${DTB} .dtb`
19 if [ -r "${WORKDIR}/${DT}.dts" ]; then
20 cp ${WORKDIR}/${DT}.dts \
21 ${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts
22 fi
23 done
24}
25
26inherit kernel
27require recipes-kernel/linux/linux-yocto.inc