blob: 92aaef2c666497ed0cc76df6d2a8e6191e1b10f4 [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"
Brad Bishop23572092016-06-03 23:53:25 -040023
24LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
25
26PV = "${LINUX_VERSION}+git${SRCPV}"
27
28COMPATIBLE_MACHINE_${MACHINE} = "openbmc"
29
30do_patch_append() {
31 for DTB in "${KERNEL_DEVICETREE}"; do
32 DT=`basename ${DTB} .dtb`
33 if [ -r "${WORKDIR}/${DT}.dts" ]; then
34 cp ${WORKDIR}/${DT}.dts \
35 ${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts
36 fi
37 done
38}
39
40inherit kernel
41require recipes-kernel/linux/linux-yocto.inc