blob: 47e36982ed44a95ae43a3427f93228f90f5d8215 [file] [log] [blame]
Joel Stanley79d16532016-03-21 12:24:40 +10301DESCRIPTION = "Linux kernel for OpenBMC"
2SECTION = "kernel"
3LICENSE = "GPLv2"
4
5KBRANCH ?= "dev-4.4"
6KCONFIG_MODE="--alldefconfig"
7
8SRC_URI = "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}"
9
10LINUX_VERSION ?= "4.4"
11LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
12
Joel Stanleyc75b3c42016-05-21 07:25:22 +093013SRCREV="openbmc-20160521-1"
Joel Stanley79d16532016-03-21 12:24:40 +103014
15PV = "${LINUX_VERSION}+git${SRCPV}"
16
17COMPATIBLE_MACHINE_${MACHINE} = "openbmc"
18
19inherit kernel
20require recipes-kernel/linux/linux-yocto.inc
Brad Bishop4f6a5772016-05-06 20:35:43 -040021
22do_patch_append() {
23 for DTB in "${KERNEL_DEVICETREE}"; do
24 DT=`basename ${DTB} .dtb`
25 if [ -r "${WORKDIR}/${DT}.dts" ]; then
26 cp ${WORKDIR}/${DT}.dts \
27 ${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts
28 fi
29 done
30}