Brad Bishop | 981707d | 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 | 3a2a586 | 2017-03-24 16:14:04 -0500 | [diff] [blame] | 7 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 8 | |
Brad Bishop | 981707d | 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 | 683ea6d | 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 | 1c37e09 | 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 | 760208c | 2017-05-16 16:05:46 -0500 | [diff] [blame^] | 23 | SRC_URI += "file://0001-hwmon-Add-support-for-MAX31785-intelligent-fan-contr.patch" |
Brad Bishop | 981707d | 2016-06-03 23:53:25 -0400 | [diff] [blame] | 24 | |
| 25 | LINUX_VERSION_EXTENSION ?= "-${SRCREV}" |
| 26 | |
| 27 | PV = "${LINUX_VERSION}+git${SRCPV}" |
| 28 | |
| 29 | COMPATIBLE_MACHINE_${MACHINE} = "openbmc" |
| 30 | |
| 31 | do_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 | |
| 41 | inherit kernel |
| 42 | require recipes-kernel/linux/linux-yocto.inc |