blob: db1dbdb85bd368a81c9c20ce7e0e8f8c4db8e1a7 [file] [log] [blame]
Patrick Williams8b8bc412016-08-17 15:02:23 -05001DESCRIPTION = "Linux Kernel for Raspberry Pi"
2SECTION = "kernel"
3LICENSE = "GPLv2"
4LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
5
Brad Bishopd7bf8c12018-02-25 22:55:05 -05006COMPATIBLE_MACHINE = "^rpi$"
Patrick Williams8b8bc412016-08-17 15:02:23 -05007
8PE = "1"
9PV = "${LINUX_VERSION}+git${SRCPV}"
10
Brad Bishopd7bf8c12018-02-25 22:55:05 -050011inherit kernel siteinfo
12require recipes-kernel/linux/linux-yocto.inc
13
Andrew Geissler26e4bea2020-11-30 19:54:03 -060014SRC_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 Bishop9392c692018-09-07 15:37:17 +010018
Brad Bishopd7bf8c12018-02-25 22:55:05 -050019KCONFIG_MODE = "--alldefconfig"
20KBUILD_DEFCONFIG_raspberrypi0-wifi ?= "bcmrpi_defconfig"
21KBUILD_DEFCONFIG_raspberrypi ?= "bcmrpi_defconfig"
Brad Bishop1b9ee292020-01-16 09:06:00 -050022KBUILD_DEFCONFIG_raspberrypi-cm3 ?= "bcm2709_defconfig"
Brad Bishopd7bf8c12018-02-25 22:55:05 -050023KBUILD_DEFCONFIG_raspberrypi2 ?= "bcm2709_defconfig"
24KBUILD_DEFCONFIG_raspberrypi3 ?= "bcm2709_defconfig"
25KBUILD_DEFCONFIG_raspberrypi3-64 ?= "bcmrpi3_defconfig"
Brad Bishop26bdd442019-08-16 17:08:17 -040026KBUILD_DEFCONFIG_raspberrypi4 ?= "bcm2711_defconfig"
27KBUILD_DEFCONFIG_raspberrypi4-64 ?= "bcm2711_defconfig"
Patrick Williams8b8bc412016-08-17 15:02:23 -050028
Brad Bishop870eb532020-01-06 09:44:45 -050029LINUX_VERSION_EXTENSION ?= ""
30
Patrick Williams8b8bc412016-08-17 15:02:23 -050031KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "stmpe-ts", "", d)}"
32
Brad Bishopd7bf8c12018-02-25 22:55:05 -050033# 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.
36KERNEL_EXTRA_ARGS += "LOADADDR=0x00008000"