blob: 2eb7f58791e806c79055855c9f3e55e992d4c579 [file] [log] [blame]
Dave Cobbley5dd2a7c2018-08-23 23:07:27 -04001DESCRIPTION = "Linux kernel for the FSP2 system on a chip"
2SECTION = "kernel"
3LICENSE = "GPLv2"
4
5KCONFIG_MODE="--alldefconfig"
6
Ivan Mikhaylov122f4e72018-09-19 14:12:00 -04007KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=dev-4.17"
Dave Cobbley5dd2a7c2018-08-23 23:07:27 -04008SRC_URI = "${KSRC}"
9
10LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
11
12PV = "${LINUX_VERSION}+git${SRCPV}"
13
14COMPATIBLE_MACHINE_${MACHINE} = "^${MACHINE}$"
15KERNEL_CLASSES ?= "kernel-uimage"
Ivan Mikhaylov352cb322018-09-20 04:35:20 -040016KERNEL_IMAGETYPE ?= "uImage"
Dave Cobbley5dd2a7c2018-08-23 23:07:27 -040017
18do_patch_append() {
19 for DTB in "${KERNEL_DEVICETREE}"; do
20 DT=`basename ${DTB} .dtb`
21 if [ -r "${WORKDIR}/${DT}.dts" ]; then
22 cp ${WORKDIR}/${DT}.dts \
23 ${STAGING_KERNEL_DIR}/arch/${ARCH}/boot/dts
24 fi
25 done
26}
27
28inherit kernel
29require recipes-kernel/linux/linux-yocto.inc
30
31KERNEL_FEATURES_remove = "phosphor-gpio-keys"
32INSANE_SKIP_kernel-vmlinux = "ldflags"