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