Brad Bishop | 2357209 | 2016-06-03 23:53:25 -0400 | [diff] [blame] | 1 | DESCRIPTION = "Linux kernel for OpenBMC" |
| 2 | SECTION = "kernel" |
| 3 | LICENSE = "GPLv2" |
| 4 | |
| 5 | KCONFIG_MODE="--alldefconfig" |
| 6 | |
Christopher Bostic | 8d17c38 | 2017-03-24 16:14:04 -0500 | [diff] [blame] | 7 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 8 | |
Brad Bishop | 2357209 | 2016-06-03 23:53:25 -0400 | [diff] [blame] | 9 | KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}" |
| 10 | SRC_URI = "${KSRC}" |
Christopher Bostic | 8d17c38 | 2017-03-24 16:14:04 -0500 | [diff] [blame] | 11 | SRC_URI += "file://v3-0001-drivers-fsi-Increase-delay-before-sampling-input-.patch" |
Brad Bishop | 2357209 | 2016-06-03 23:53:25 -0400 | [diff] [blame] | 12 | |
| 13 | LINUX_VERSION_EXTENSION ?= "-${SRCREV}" |
| 14 | |
| 15 | PV = "${LINUX_VERSION}+git${SRCPV}" |
| 16 | |
| 17 | COMPATIBLE_MACHINE_${MACHINE} = "openbmc" |
| 18 | |
| 19 | do_patch_append() { |
| 20 | for DTB in "${KERNEL_DEVICETREE}"; do |
| 21 | DT=`basename ${DTB} .dtb` |
| 22 | if [ -r "${WORKDIR}/${DT}.dts" ]; then |
| 23 | cp ${WORKDIR}/${DT}.dts \ |
| 24 | ${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts |
| 25 | fi |
| 26 | done |
| 27 | } |
| 28 | |
| 29 | inherit kernel |
| 30 | require recipes-kernel/linux/linux-yocto.inc |