Ivan Mikhaylov | 4b2430e | 2017-10-24 21:17:24 +0300 | [diff] [blame] | 1 | DESCRIPTION = "Linux kernel for the FSP2 system on a chip" |
| 2 | SECTION = "kernel" |
Patrick Williams | d541ec5 | 2022-04-30 07:41:26 -0500 | [diff] [blame] | 3 | LICENSE = "GPL-2.0-only" |
Ivan Mikhaylov | 4b2430e | 2017-10-24 21:17:24 +0300 | [diff] [blame] | 4 | |
| 5 | KCONFIG_MODE="--alldefconfig" |
| 6 | |
Patrick Williams | bb99d22 | 2022-01-24 15:55:09 -0600 | [diff] [blame] | 7 | KSRC ?= "git://github.com/openbmc/linux;protocol=https;branch=dev-4.17" |
Ivan Mikhaylov | 4b2430e | 2017-10-24 21:17:24 +0300 | [diff] [blame] | 8 | SRC_URI = "${KSRC}" |
| 9 | |
| 10 | LINUX_VERSION_EXTENSION ?= "-${SRCREV}" |
| 11 | |
| 12 | PV = "${LINUX_VERSION}+git${SRCPV}" |
| 13 | |
| 14 | COMPATIBLE_MACHINE_${MACHINE} = "^${MACHINE}$" |
Ivan Mikhaylov | a63de4a | 2018-04-25 06:43:26 -0400 | [diff] [blame] | 15 | KERNEL_CLASSES ?= "kernel-uimage" |
Ivan Mikhaylov | 537b9e1 | 2018-09-20 04:35:20 -0400 | [diff] [blame] | 16 | KERNEL_IMAGETYPE ?= "uImage" |
Ivan Mikhaylov | 4b2430e | 2017-10-24 21:17:24 +0300 | [diff] [blame] | 17 | |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 18 | do_patch:append() { |
Alexander Hedges | b220f99 | 2018-08-21 19:09:23 +0200 | [diff] [blame] | 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 |
Ivan Mikhaylov | 4b2430e | 2017-10-24 21:17:24 +0300 | [diff] [blame] | 26 | } |
| 27 | |
| 28 | inherit kernel |
| 29 | require recipes-kernel/linux/linux-yocto.inc |
| 30 | |
Adriana Kobylak | b96c750 | 2021-08-06 16:25:30 +0000 | [diff] [blame] | 31 | INSANE_SKIP:kernel-vmlinux = "ldflags" |