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" |
Edward A. James | 537225b | 2017-05-16 16:05:46 -0500 | [diff] [blame] | 23 | SRC_URI += "file://0001-hwmon-Add-support-for-MAX31785-intelligent-fan-contr.patch" |
Edward A. James | 3452592 | 2017-05-23 16:25:43 -0500 | [diff] [blame] | 24 | SRC_URI += "file://v2-0001-arm-dts-aspeed-Add-missing-clock-sources-for-barr.patch" |
Brad Bishop | 2357209 | 2016-06-03 23:53:25 -0400 | [diff] [blame] | 25 | |
| 26 | LINUX_VERSION_EXTENSION ?= "-${SRCREV}" |
| 27 | |
| 28 | PV = "${LINUX_VERSION}+git${SRCPV}" |
| 29 | |
| 30 | COMPATIBLE_MACHINE_${MACHINE} = "openbmc" |
| 31 | |
| 32 | do_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 | |
| 42 | inherit kernel |
| 43 | require recipes-kernel/linux/linux-yocto.inc |