blob: fe00ce36236cfe155f397627b1a3f51b1c8d6f04 [file] [log] [blame]
Brad Bishop4ccd9f32015-10-06 00:27:43 -04001DESCRIPTION = "Linux kernel for OpenBMC"
2SECTION = "kernel"
3LICENSE = "GPLv2"
4
Brad Bishopcb656192015-11-23 11:06:41 -05005KBRANCH ?= "dev-4.3"
Brad Bishop7d3e4f32015-10-30 03:11:05 -04006KCONFIG_MODE="--alldefconfig"
Brad Bishop4ccd9f32015-10-06 00:27:43 -04007
8SRC_URI = "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}"
Brad Bishop4ccd9f32015-10-06 00:27:43 -04009
Brad Bishopcb656192015-11-23 11:06:41 -050010LINUX_VERSION ?= "4.3"
Brad Bishop7d3e4f32015-10-30 03:11:05 -040011LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
Brad Bishop4ccd9f32015-10-06 00:27:43 -040012
Joel Stanleyd4d8c7e2016-02-02 14:01:22 +110013SRCREV="openbmc-20160202-2"
Brad Bishop4ccd9f32015-10-06 00:27:43 -040014
15PV = "${LINUX_VERSION}+git${SRCPV}"
16
17COMPATIBLE_MACHINE_${MACHINE} = "openbmc"
18
19inherit kernel
20require recipes-kernel/linux/linux-yocto.inc
Brad Bishop3a095652015-11-01 20:13:47 -050021
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}