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