blob: 37f34cb25622edece786d5405a1ab4a8e905d782 [file] [log] [blame]
Ivan Mikhaylov4b2430e2017-10-24 21:17:24 +03001DESCRIPTION = "Linux kernel for the FSP2 system on a chip"
2SECTION = "kernel"
Patrick Williamsd541ec52022-04-30 07:41:26 -05003LICENSE = "GPL-2.0-only"
Ivan Mikhaylov4b2430e2017-10-24 21:17:24 +03004
5KCONFIG_MODE="--alldefconfig"
6
Patrick Williamsbb99d222022-01-24 15:55:09 -06007KSRC ?= "git://github.com/openbmc/linux;protocol=https;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
Adriana Kobylakb96c7502021-08-06 16:25:30 +000018do_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
Adriana Kobylakb96c7502021-08-06 16:25:30 +000031INSANE_SKIP:kernel-vmlinux = "ldflags"