Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 1 | DESCRIPTION = "Linux Kernel for Raspberry Pi" |
| 2 | SECTION = "kernel" |
| 3 | LICENSE = "GPLv2" |
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
| 5 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 6 | COMPATIBLE_MACHINE = "^rpi$" |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 7 | |
| 8 | PE = "1" |
| 9 | PV = "${LINUX_VERSION}+git${SRCPV}" |
| 10 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 11 | inherit kernel siteinfo |
| 12 | require recipes-kernel/linux/linux-yocto.inc |
| 13 | |
Andrew Geissler | 26e4bea | 2020-11-30 19:54:03 -0600 | [diff] [blame] | 14 | SRC_URI += " \ |
| 15 | ${@bb.utils.contains("INITRAMFS_IMAGE_BUNDLE", "1", "file://initramfs-image-bundle.cfg", "", d)} \ |
| 16 | ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "file://vc4graphics.cfg", "", d)} \ |
| 17 | " |
Brad Bishop | 9392c69 | 2018-09-07 15:37:17 +0100 | [diff] [blame] | 18 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 19 | KCONFIG_MODE = "--alldefconfig" |
| 20 | KBUILD_DEFCONFIG_raspberrypi0-wifi ?= "bcmrpi_defconfig" |
| 21 | KBUILD_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig" |
Brad Bishop | 1b9ee29 | 2020-01-16 09:06:00 -0500 | [diff] [blame] | 22 | KBUILD_DEFCONFIG_raspberrypi-cm3 ?= "bcm2709_defconfig" |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 23 | KBUILD_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig" |
| 24 | KBUILD_DEFCONFIG_raspberrypi3 ?= "bcm2709_defconfig" |
| 25 | KBUILD_DEFCONFIG_raspberrypi3-64 ?= "bcmrpi3_defconfig" |
Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 26 | KBUILD_DEFCONFIG_raspberrypi4 ?= "bcm2711_defconfig" |
| 27 | KBUILD_DEFCONFIG_raspberrypi4-64 ?= "bcm2711_defconfig" |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 28 | |
Brad Bishop | 870eb53 | 2020-01-06 09:44:45 -0500 | [diff] [blame] | 29 | LINUX_VERSION_EXTENSION ?= "" |
| 30 | |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 31 | KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "stmpe-ts", "", d)}" |
| 32 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 33 | # A LOADADDR is needed when building a uImage format kernel. This value is not |
| 34 | # set by default in rpi-4.8.y and later branches so we need to provide it |
| 35 | # manually. This value unused if KERNEL_IMAGETYPE is not uImage. |
| 36 | KERNEL_EXTRA_ARGS += "LOADADDR=0x00008000" |