1eb8dc403SDave CobbleyDESCRIPTION = "Linux Kernel for Raspberry Pi"
2eb8dc403SDave CobbleySECTION = "kernel"
37e0e3c0cSAndrew GeisslerLICENSE = "GPL-2.0-only"
411105217SAndrew GeisslerLIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
5eb8dc403SDave Cobbley
6517393d9SAndrew GeisslerCOMPATIBLE_MACHINE ?= "^rpi$"
7eb8dc403SDave Cobbley
8eb8dc403SDave CobbleyPE = "1"
9eb8dc403SDave CobbleyPV = "${LINUX_VERSION}+git${SRCPV}"
10eb8dc403SDave Cobbley
1111105217SAndrew Geisslerinherit siteinfo
12eb8dc403SDave Cobbleyrequire recipes-kernel/linux/linux-yocto.inc
13eb8dc403SDave Cobbley
1426e4beaaSAndrew GeisslerSRC_URI += " \
1526e4beaaSAndrew Geissler    ${@bb.utils.contains("INITRAMFS_IMAGE_BUNDLE", "1", "file://initramfs-image-bundle.cfg", "", d)} \
1626e4beaaSAndrew Geissler    ${@bb.utils.contains("MACHINE_FEATURES", "vc4graphics", "file://vc4graphics.cfg", "", d)} \
17a4353c83SAndrew Geissler    ${@bb.utils.contains("MACHINE_FEATURES", "wm8960", "file://wm8960.cfg", "", d)} \
18*ac13d5f3SPatrick Williams    file://default-cpu-governor.cfg \
1926e4beaaSAndrew Geissler    "
209392c69cSBrad Bishop
21864cc43bSPatrick WilliamsSRC_URI:append:raspberrypi4 = " \
22864cc43bSPatrick Williams    file://rpi4-nvmem.cfg \
23864cc43bSPatrick Williams"
24864cc43bSPatrick Williams
25eb8dc403SDave CobbleyKCONFIG_MODE = "--alldefconfig"
26213cb269SPatrick WilliamsKBUILD_DEFCONFIG:raspberrypi0-wifi ?= "bcmrpi_defconfig"
27213cb269SPatrick WilliamsKBUILD_DEFCONFIG:raspberrypi ?= "bcmrpi_defconfig"
28213cb269SPatrick WilliamsKBUILD_DEFCONFIG:raspberrypi-cm3 ?= "bcm2709_defconfig"
29213cb269SPatrick WilliamsKBUILD_DEFCONFIG:raspberrypi2 ?= "bcm2709_defconfig"
30213cb269SPatrick WilliamsKBUILD_DEFCONFIG:raspberrypi3 ?= "bcm2709_defconfig"
31213cb269SPatrick WilliamsKBUILD_DEFCONFIG:raspberrypi3-64 ?= "bcmrpi3_defconfig"
32213cb269SPatrick WilliamsKBUILD_DEFCONFIG:raspberrypi4 ?= "bcm2711_defconfig"
33213cb269SPatrick WilliamsKBUILD_DEFCONFIG:raspberrypi4-64 ?= "bcm2711_defconfig"
3487f5cff0SAndrew GeisslerKBUILD_DEFCONFIG:raspberrypi-armv7 ?= "bcm2711_defconfig"
3587f5cff0SAndrew GeisslerKBUILD_DEFCONFIG:raspberrypi-armv8 ?= "bcm2711_defconfig"
36eb8dc403SDave Cobbley
37870eb53cSBrad BishopLINUX_VERSION_EXTENSION ?= ""
38870eb53cSBrad Bishop
39eb8dc403SDave CobbleyKERNEL_MODULE_AUTOLOAD += "${@bb.utils.contains("MACHINE_FEATURES", "pitft28r", "stmpe-ts", "", d)}"
40eb8dc403SDave Cobbley
41eb8dc403SDave Cobbley# A LOADADDR is needed when building a uImage format kernel. This value is not
42eb8dc403SDave Cobbley# set by default in rpi-4.8.y and later branches so we need to provide it
43eb8dc403SDave Cobbley# manually. This value unused if KERNEL_IMAGETYPE is not uImage.
4458776373SPatrick WilliamsKERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}"
4558776373SPatrick Williams
4658776373SPatrick WilliamsUBOOT_ENTRYPOINT =       "0x00008000"
4758776373SPatrick WilliamsUBOOT_LOADADDRESS =      "0x00008000"
48