blob: 2eb7f58791e806c79055855c9f3e55e992d4c579 [file] [log] [blame]
Ivan Mikhaylov4b2430e2017-10-24 21:17:24 +03001DESCRIPTION = "Linux kernel for the FSP2 system on a chip"
2SECTION = "kernel"
3LICENSE = "GPLv2"
4
5KCONFIG_MODE="--alldefconfig"
6
Ivan Mikhaylov7de93172018-09-19 14:12:00 -04007KSRC ?= "git://github.com/openbmc/linux;protocol=git;branch=dev-4.17"
Ivan Mikhaylov4b2430e2017-10-24 21:17:24 +03008SRC_URI = "${KSRC}"
9
10LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
11
12PV = "${LINUX_VERSION}+git${SRCPV}"
13
14COMPATIBLE_MACHINE_${MACHINE} = "^${MACHINE}$"
Ivan Mikhaylova63de4a2018-04-25 06:43:26 -040015KERNEL_CLASSES ?= "kernel-uimage"
Ivan Mikhaylov537b9e12018-09-20 04:35:20 -040016KERNEL_IMAGETYPE ?= "uImage"
Ivan Mikhaylov4b2430e2017-10-24 21:17:24 +030017
18do_patch_append() {
Alexander Hedgesb220f992018-08-21 19:09:23 +020019 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
Ivan Mikhaylov4b2430e2017-10-24 21:17:24 +030026}
27
28inherit kernel
29require recipes-kernel/linux/linux-yocto.inc
30
31KERNEL_FEATURES_remove = "phosphor-gpio-keys"
32INSANE_SKIP_kernel-vmlinux = "ldflags"