blob: 72819bf4b8c211ab3f863ad676db77a804b3e6be [file] [log] [blame]
Brad Bishop23572092016-06-03 23:53:25 -04001DESCRIPTION = "Linux kernel for OpenBMC"
2SECTION = "kernel"
3LICENSE = "GPLv2"
4
5KCONFIG_MODE="--alldefconfig"
6
Christopher Bostic8d17c382017-03-24 16:14:04 -05007FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
8
Brad Bishop23572092016-06-03 23:53:25 -04009KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}"
10SRC_URI = "${KSRC}"
Brad Bishopf7d474c2017-04-11 22:42:05 -040011SRC_URI += "file://phosphor-gpio-keys.scc"
12SRC_URI += "file://phosphor-gpio-keys.cfg"
Brad Bishop30be1932017-06-30 14:19:45 -040013SRC_URI += "file://phosphor-vlan.scc"
14SRC_URI += "file://phosphor-vlan.cfg"
15
Brad Bishop23572092016-06-03 23:53:25 -040016
17LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
18
19PV = "${LINUX_VERSION}+git${SRCPV}"
20
21COMPATIBLE_MACHINE_${MACHINE} = "openbmc"
22
23do_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
33inherit kernel
34require recipes-kernel/linux/linux-yocto.inc
Brad Bishop30be1932017-06-30 14:19:45 -040035
36KERNEL_FEATURES_append = " phosphor-vlan"
37KERNEL_FEATURES_remove_qemuall = " phosphor-vlan"