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 | |
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 | |
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 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 20 | KCONFIG_MODE = "--alldefconfig" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 21 | KBUILD_DEFCONFIG:raspberrypi0-wifi ?= "bcmrpi_defconfig" |
| 22 | KBUILD_DEFCONFIG:raspberrypi ?= "bcmrpi_defconfig" |
| 23 | KBUILD_DEFCONFIG:raspberrypi-cm3 ?= "bcm2709_defconfig" |
| 24 | KBUILD_DEFCONFIG:raspberrypi2 ?= "bcm2709_defconfig" |
| 25 | KBUILD_DEFCONFIG:raspberrypi3 ?= "bcm2709_defconfig" |
| 26 | KBUILD_DEFCONFIG:raspberrypi3-64 ?= "bcmrpi3_defconfig" |
| 27 | KBUILD_DEFCONFIG:raspberrypi4 ?= "bcm2711_defconfig" |
| 28 | KBUILD_DEFCONFIG:raspberrypi4-64 ?= "bcm2711_defconfig" |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 29 | |
Brad Bishop | 870eb53 | 2020-01-06 09:44:45 -0500 | [diff] [blame] | 30 | LINUX_VERSION_EXTENSION ?= "" |
| 31 | |
Patrick Williams | 8b8bc41 | 2016-08-17 15:02:23 -0500 | [diff] [blame] | 32 | KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "stmpe-ts", "", d)}" |
| 33 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 34 | # A LOADADDR is needed when building a uImage format kernel. This value is not |
| 35 | # set by default in rpi-4.8.y and later branches so we need to provide it |
| 36 | # manually. This value unused if KERNEL_IMAGETYPE is not uImage. |
| 37 | KERNEL_EXTRA_ARGS += "LOADADDR=0x00008000" |