blob: 271f32508cffac7b4d152fb1ecf96ec5a0600653 [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"
Brad Bishop811eeec2018-03-09 00:04:00 -050015SRC_URI_append_df-obmc-ubi-fs = " file://0001-ARM-dts-Aspeed-Witherspoon-Update-BMC-partitioning.patch"
Brad Bishop30be1932017-06-30 14:19:45 -040016
Brad Bishop23572092016-06-03 23:53:25 -040017
18LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
19
20PV = "${LINUX_VERSION}+git${SRCPV}"
21
22COMPATIBLE_MACHINE_${MACHINE} = "openbmc"
23
24do_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
34inherit kernel
35require recipes-kernel/linux/linux-yocto.inc
Brad Bishop30be1932017-06-30 14:19:45 -040036
37KERNEL_FEATURES_append = " phosphor-vlan"
38KERNEL_FEATURES_remove_qemuall = " phosphor-vlan"