blob: e62ff3ff7c4706e24eded8b9f3804a3a9bf5ee3e [file] [log] [blame]
Patrick Williams8b8bc412016-08-17 15:02:23 -05001DESCRIPTION = "Linux Kernel for Raspberry Pi"
2SECTION = "kernel"
Andrew Geissler7e0e3c02022-02-25 20:34:39 +00003LICENSE = "GPL-2.0-only"
Andrew Geissler11105212021-02-12 15:30:38 -06004LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
Patrick Williams8b8bc412016-08-17 15:02:23 -05005
Andrew Geissler517393d2023-01-13 08:55:19 -06006COMPATIBLE_MACHINE ?= "^rpi$"
Patrick Williams8b8bc412016-08-17 15:02:23 -05007
8PE = "1"
9PV = "${LINUX_VERSION}+git${SRCPV}"
10
Andrew Geissler11105212021-02-12 15:30:38 -060011inherit siteinfo
Brad Bishopd7bf8c12018-02-25 22:55:05 -050012require 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)} \
Andrew Geisslera4353c82021-06-25 14:23:27 -050017 ${@bb.utils.contains("MACHINE_FEATURES", "wm8960", "file://wm8960.cfg", "", d)} \
Patrick Williamsac13d5f2023-11-24 18:59:46 -060018 file://default-cpu-governor.cfg \
Andrew Geissler26e4bea2020-11-30 19:54:03 -060019 "
Brad Bishop9392c692018-09-07 15:37:17 +010020
Patrick Williams864cc432023-02-09 14:54:44 -060021SRC_URI:append:raspberrypi4 = " \
22 file://rpi4-nvmem.cfg \
23"
24
Brad Bishopd7bf8c12018-02-25 22:55:05 -050025KCONFIG_MODE = "--alldefconfig"
Patrick Williams213cb262021-08-07 19:21:33 -050026KBUILD_DEFCONFIG:raspberrypi0-wifi ?= "bcmrpi_defconfig"
27KBUILD_DEFCONFIG:raspberrypi ?= "bcmrpi_defconfig"
28KBUILD_DEFCONFIG:raspberrypi-cm3 ?= "bcm2709_defconfig"
29KBUILD_DEFCONFIG:raspberrypi2 ?= "bcm2709_defconfig"
30KBUILD_DEFCONFIG:raspberrypi3 ?= "bcm2709_defconfig"
31KBUILD_DEFCONFIG:raspberrypi3-64 ?= "bcmrpi3_defconfig"
32KBUILD_DEFCONFIG:raspberrypi4 ?= "bcm2711_defconfig"
33KBUILD_DEFCONFIG:raspberrypi4-64 ?= "bcm2711_defconfig"
Andrew Geissler87f5cff2022-09-30 13:13:31 -050034KBUILD_DEFCONFIG:raspberrypi-armv7 ?= "bcm2711_defconfig"
35KBUILD_DEFCONFIG:raspberrypi-armv8 ?= "bcm2711_defconfig"
Patrick Williamsf52e3dd2024-01-26 13:04:43 -060036KBUILD_DEFCONFIG:raspberrypi5 ?= "bcm2712_defconfig"
Patrick Williams8b8bc412016-08-17 15:02:23 -050037
Brad Bishop870eb532020-01-06 09:44:45 -050038LINUX_VERSION_EXTENSION ?= ""
39
Patrick Williams8b8bc412016-08-17 15:02:23 -050040KERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "stmpe-ts", "", d)}"
41
Brad Bishopd7bf8c12018-02-25 22:55:05 -050042# 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 Williams58776372022-04-13 09:07:35 -050045KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
46
47UBOOT_ENTRYPOINT = "0x00008000"
48UBOOT_LOADADDRESS = "0x00008000"