blob: fe07680c0a5199645b9fbb57c5cb5a6efde1aae5 [file] [log] [blame]
Brad Bishop23572092016-06-03 23:53:25 -04001DESCRIPTION = "Linux kernel for OpenBMC"
2SECTION = "kernel"
3LICENSE = "GPLv2"
4
5KCONFIG_MODE="--alldefconfig"
6
Christopher Bostic8d17c382017-03-24 16:14:04 -05007FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
8
Brad Bishop23572092016-06-03 23:53:25 -04009KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}"
10SRC_URI = "${KSRC}"
Brad Bishopf7d474c2017-04-11 22:42:05 -040011SRC_URI += "file://phosphor-gpio-keys.scc"
12SRC_URI += "file://phosphor-gpio-keys.cfg"
Edward A. James7bd86372017-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. James537225b2017-05-16 16:05:46 -050023SRC_URI += "file://0001-hwmon-Add-support-for-MAX31785-intelligent-fan-contr.patch"
Edward A. James34525922017-05-23 16:25:43 -050024SRC_URI += "file://v2-0001-arm-dts-aspeed-Add-missing-clock-sources-for-barr.patch"
Brad Bishop23572092016-06-03 23:53:25 -040025
26LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
27
28PV = "${LINUX_VERSION}+git${SRCPV}"
29
30COMPATIBLE_MACHINE_${MACHINE} = "openbmc"
31
32do_patch_append() {
33 for DTB in "${KERNEL_DEVICETREE}"; do
34 DT=`basename ${DTB} .dtb`
35 if [ -r "${WORKDIR}/${DT}.dts" ]; then
36 cp ${WORKDIR}/${DT}.dts \
37 ${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts
38 fi
39 done
40}
41
42inherit kernel
43require recipes-kernel/linux/linux-yocto.inc