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