blob: 97978115fcf5a20c69981958ae5049031d74b665 [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
Edward A. Jamesf7eed372017-07-14 14:35:56 -05009inherit obmc-phosphor-utils
10
Brad Bishop23572092016-06-03 23:53:25 -040011KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=${KBRANCH}"
12SRC_URI = "${KSRC}"
Brad Bishopf7d474c2017-04-11 22:42:05 -040013SRC_URI += "file://phosphor-gpio-keys.scc"
14SRC_URI += "file://phosphor-gpio-keys.cfg"
Brad Bishop30be1932017-06-30 14:19:45 -040015SRC_URI += "file://phosphor-vlan.scc"
16SRC_URI += "file://phosphor-vlan.cfg"
Brad Bishop811eeec2018-03-09 00:04:00 -050017SRC_URI_append_df-obmc-ubi-fs = " file://0001-ARM-dts-Aspeed-Witherspoon-Update-BMC-partitioning.patch"
Brad Bishop30be1932017-06-30 14:19:45 -040018
Brad Bishop23572092016-06-03 23:53:25 -040019
20LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
21
22PV = "${LINUX_VERSION}+git${SRCPV}"
23
24COMPATIBLE_MACHINE_${MACHINE} = "openbmc"
25
26do_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
36inherit kernel
37require recipes-kernel/linux/linux-yocto.inc
Brad Bishop30be1932017-06-30 14:19:45 -040038
39KERNEL_FEATURES_append = " phosphor-vlan"
40KERNEL_FEATURES_remove_qemuall = " phosphor-vlan"