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}" |
Brad Bishop | f7d474c | 2017-04-11 22:42:05 -0400 | [diff] [blame] | 11 | SRC_URI += "file://phosphor-gpio-keys.scc" |
| 12 | SRC_URI += "file://phosphor-gpio-keys.cfg" |
Edward A. James | 7bd8637 | 2017-05-15 12:28:44 -0500 | [diff] [blame^] | 13 | SRC_URI += "file://0001-fsi-Match-fsi-slaves-engines-to-available-device-tre.patch" |
| 14 | SRC_URI += "file://linux-dev-4.10-v2-1-6-drivers-i2c-Add-FSI-attached-I2C-master-algorithm.patch" |
| 15 | SRC_URI += "file://linux-dev-4.10-v2-2-6-drivers-i2c-Add-port-structure-to-FSI-algorithm.patch" |
| 16 | SRC_URI += "file://linux-dev-4.10-v2-3-6-drivers-i2c-Add-transfer-implementation-for-FSI-algorithm.patch" |
| 17 | SRC_URI += "file://linux-dev-4.10-v2-4-6-drivers-i2c-Add-I2C-master-locking-to-FSI-algorithm.patch" |
| 18 | SRC_URI += "file://linux-dev-4.10-v2-5-6-drivers-i2c-Add-bus-recovery-for-FSI-algorithm.patch" |
| 19 | SRC_URI += "file://linux-dev-4.10-drivers-fsi-Add-FSI-SBEFIFO-driver.patch" |
| 20 | SRC_URI += "file://linux-dev-4.10-1-3-drivers-fsi-sbefifo-Add-in-kernel-API.patch" |
| 21 | SRC_URI += "file://linux-dev-4.10-2-3-drivers-fsi-sbefifo-Add-OCC-driver.patch" |
| 22 | SRC_URI += "file://0001-arm-dts-aspeed-Add-FSI-devices.patch" |
Brad Bishop | 2357209 | 2016-06-03 23:53:25 -0400 | [diff] [blame] | 23 | |
| 24 | LINUX_VERSION_EXTENSION ?= "-${SRCREV}" |
| 25 | |
| 26 | PV = "${LINUX_VERSION}+git${SRCPV}" |
| 27 | |
| 28 | COMPATIBLE_MACHINE_${MACHINE} = "openbmc" |
| 29 | |
| 30 | do_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 | |
| 40 | inherit kernel |
| 41 | require recipes-kernel/linux/linux-yocto.inc |