blob: 4702ffe1ab5657e0cc716fb2278bc2e0730dee82 [file] [log] [blame]
Brad Bishop981707d2016-06-03 23:53:25 -04001DESCRIPTION = "Linux kernel for OpenBMC"
2SECTION = "kernel"
3LICENSE = "GPLv2"
4
5KCONFIG_MODE="--alldefconfig"
6
Christopher Bostic3a2a5862017-03-24 16:14:04 -05007FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
8
Brad Bishop981707d2016-06-03 23:53:25 -04009KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}"
10SRC_URI = "${KSRC}"
Brad Bishop683ea6d2017-04-11 22:42:05 -040011SRC_URI += "file://phosphor-gpio-keys.scc"
12SRC_URI += "file://phosphor-gpio-keys.cfg"
Edward A. James1c37e092017-05-15 12:28:44 -050013SRC_URI += "file://0001-fsi-Match-fsi-slaves-engines-to-available-device-tre.patch"
14SRC_URI += "file://linux-dev-4.10-v2-1-6-drivers-i2c-Add-FSI-attached-I2C-master-algorithm.patch"
15SRC_URI += "file://linux-dev-4.10-v2-2-6-drivers-i2c-Add-port-structure-to-FSI-algorithm.patch"
16SRC_URI += "file://linux-dev-4.10-v2-3-6-drivers-i2c-Add-transfer-implementation-for-FSI-algorithm.patch"
17SRC_URI += "file://linux-dev-4.10-v2-4-6-drivers-i2c-Add-I2C-master-locking-to-FSI-algorithm.patch"
18SRC_URI += "file://linux-dev-4.10-v2-5-6-drivers-i2c-Add-bus-recovery-for-FSI-algorithm.patch"
19SRC_URI += "file://linux-dev-4.10-drivers-fsi-Add-FSI-SBEFIFO-driver.patch"
20SRC_URI += "file://linux-dev-4.10-1-3-drivers-fsi-sbefifo-Add-in-kernel-API.patch"
21SRC_URI += "file://linux-dev-4.10-2-3-drivers-fsi-sbefifo-Add-OCC-driver.patch"
22SRC_URI += "file://0001-arm-dts-aspeed-Add-FSI-devices.patch"
Edward A. James760208c2017-05-16 16:05:46 -050023SRC_URI += "file://0001-hwmon-Add-support-for-MAX31785-intelligent-fan-contr.patch"
Brad Bishop981707d2016-06-03 23:53:25 -040024
25LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
26
27PV = "${LINUX_VERSION}+git${SRCPV}"
28
29COMPATIBLE_MACHINE_${MACHINE} = "openbmc"
30
31do_patch_append() {
32 for DTB in "${KERNEL_DEVICETREE}"; do
33 DT=`basename ${DTB} .dtb`
34 if [ -r "${WORKDIR}/${DT}.dts" ]; then
35 cp ${WORKDIR}/${DT}.dts \
36 ${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts
37 fi
38 done
39}
40
41inherit kernel
42require recipes-kernel/linux/linux-yocto.inc