Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 1 | DESCRIPTION = "Linux Kernel for Raspberry Pi" |
| 2 | SECTION = "kernel" |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 3 | LICENSE = "GPL-2.0-only" |
Andrew Geissler | 1110521 | 2021-02-12 15:30:38 -0600 | [diff] [blame] | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 5 | |
Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [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 | |
Andrew Geissler | 1110521 | 2021-02-12 15:30:38 -0600 | [diff] [blame] | 11 | inherit siteinfo |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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)} \ |
Andrew Geissler | a4353c8 | 2021-06-25 14:23:27 -0500 | [diff] [blame] | 17 | ${@bb.utils.contains("MACHINE_FEATURES", "wm8960", "file://wm8960.cfg", "", d)} \ |
Patrick Williams | ac13d5f | 2023-11-24 18:59:46 -0600 | [diff] [blame] | 18 | file://default-cpu-governor.cfg \ |
Andrew Geissler | 26e4bea | 2020-11-30 19:54:03 -0600 | [diff] [blame] | 19 | " |
Brad Bishop | 9392c69 | 2018-09-07 15:37:17 +0100 | [diff] [blame] | 20 | |
Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame] | 21 | SRC_URI:append:raspberrypi4 = " \ |
| 22 | file://rpi4-nvmem.cfg \ |
| 23 | " |
| 24 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 25 | KCONFIG_MODE = "--alldefconfig" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 26 | KBUILD_DEFCONFIG:raspberrypi0-wifi ?= "bcmrpi_defconfig" |
| 27 | KBUILD_DEFCONFIG:raspberrypi ?= "bcmrpi_defconfig" |
| 28 | KBUILD_DEFCONFIG:raspberrypi-cm3 ?= "bcm2709_defconfig" |
| 29 | KBUILD_DEFCONFIG:raspberrypi2 ?= "bcm2709_defconfig" |
| 30 | KBUILD_DEFCONFIG:raspberrypi3 ?= "bcm2709_defconfig" |
| 31 | KBUILD_DEFCONFIG:raspberrypi3-64 ?= "bcmrpi3_defconfig" |
| 32 | KBUILD_DEFCONFIG:raspberrypi4 ?= "bcm2711_defconfig" |
| 33 | KBUILD_DEFCONFIG:raspberrypi4-64 ?= "bcm2711_defconfig" |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 34 | KBUILD_DEFCONFIG:raspberrypi-armv7 ?= "bcm2711_defconfig" |
| 35 | KBUILD_DEFCONFIG:raspberrypi-armv8 ?= "bcm2711_defconfig" |
Patrick Williams | f52e3dd | 2024-01-26 13:04:43 -0600 | [diff] [blame] | 36 | KBUILD_DEFCONFIG:raspberrypi5 ?= "bcm2712_defconfig" |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 37 | |
Brad Bishop | 870eb53 | 2020-01-06 09:44:45 -0500 | [diff] [blame] | 38 | LINUX_VERSION_EXTENSION ?= "" |
| 39 | |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 40 | KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "stmpe-ts", "", d)}" |
| 41 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 42 | # A LOADADDR is needed when building a uImage format kernel. This value is not |
| 43 | # set by default in rpi-4.8.y and later branches so we need to provide it |
| 44 | # manually. This value unused if KERNEL_IMAGETYPE is not uImage. |
Patrick Williams | 5877637 | 2022-04-13 09:07:35 -0500 | [diff] [blame] | 45 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" |
| 46 | |
| 47 | UBOOT_ENTRYPOINT = "0x00008000" |
| 48 | UBOOT_LOADADDRESS = "0x00008000" |