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" |
Brad Bishop | 30be193 | 2017-06-30 14:19:45 -0400 | [diff] [blame] | 13 | SRC_URI += "file://phosphor-vlan.scc" |
| 14 | SRC_URI += "file://phosphor-vlan.cfg" |
Andrew Jeffery | ac6a31f | 2018-04-21 16:37:44 +0930 | [diff] [blame] | 15 | SRC_URI += "file://phosphor-wdt-on-panic.scc" |
| 16 | SRC_URI += "file://phosphor-wdt-on-panic.cfg" |
Brad Bishop | 811eeec | 2018-03-09 00:04:00 -0500 | [diff] [blame] | 17 | SRC_URI_append_df-obmc-ubi-fs = " file://0001-ARM-dts-Aspeed-Witherspoon-Update-BMC-partitioning.patch" |
Brad Bishop | 30be193 | 2017-06-30 14:19:45 -0400 | [diff] [blame] | 18 | |
Brad Bishop | 2357209 | 2016-06-03 23:53:25 -0400 | [diff] [blame] | 19 | |
| 20 | LINUX_VERSION_EXTENSION ?= "-${SRCREV}" |
| 21 | |
| 22 | PV = "${LINUX_VERSION}+git${SRCPV}" |
| 23 | |
| 24 | COMPATIBLE_MACHINE_${MACHINE} = "openbmc" |
| 25 | |
| 26 | do_patch_append() { |
| 27 | for DTB in "${KERNEL_DEVICETREE}"; do |
| 28 | DT=`basename ${DTB} .dtb` |
| 29 | if [ -r "${WORKDIR}/${DT}.dts" ]; then |
| 30 | cp ${WORKDIR}/${DT}.dts \ |
| 31 | ${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts |
| 32 | fi |
| 33 | done |
| 34 | } |
| 35 | |
| 36 | inherit kernel |
| 37 | require recipes-kernel/linux/linux-yocto.inc |
Brad Bishop | 30be193 | 2017-06-30 14:19:45 -0400 | [diff] [blame] | 38 | |
| 39 | KERNEL_FEATURES_append = " phosphor-vlan" |
| 40 | KERNEL_FEATURES_remove_qemuall = " phosphor-vlan" |