initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,109 @@
|
||||
config BR2_PACKAGE_RPI_FIRMWARE
|
||||
bool "rpi-firmware"
|
||||
depends on BR2_arm || BR2_aarch64
|
||||
help
|
||||
RaspberryPi Firmware
|
||||
|
||||
Pre-compiled binaries of the current bootloader and GPU
|
||||
firmware
|
||||
|
||||
https://github.com/raspberrypi/firmware
|
||||
|
||||
if BR2_PACKAGE_RPI_FIRMWARE
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_BOOTCODE_BIN
|
||||
bool "rpi 0/1/2/3 bootcode.bin"
|
||||
help
|
||||
The bootcode.bin for versions Zero/1/2/3 (not needed on rpi4,
|
||||
because it has been replaced by boot code in the onboard
|
||||
EEPROM).
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI
|
||||
bool "rpi 0/1/2/3 (default)"
|
||||
help
|
||||
The default set of files for versions Zero/1/2/3.
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI_X
|
||||
bool "rpi 0/1/2/3 (extended)"
|
||||
help
|
||||
The extended set of files for versions Zero/1/2/3 (additional
|
||||
GPU features, eg. more audio/video codecs).
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI_CD
|
||||
bool "rpi 0/1/2/3 (cut-down)"
|
||||
help
|
||||
The cut-down set of files for versions Zero/1/2/3 (only
|
||||
features required to boot a Linux kernel).
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI_DB
|
||||
bool "rpi 0/1/2/3 (debug)"
|
||||
help
|
||||
The debug set of files for versions Zero/1/2/3.
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4
|
||||
bool "rpi 4 (default)"
|
||||
help
|
||||
The default set of files for versions 4 (standard GPU
|
||||
features).
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4_X
|
||||
bool "rpi 4 (extended)"
|
||||
help
|
||||
The extended set of files for versions 4 (additional GPU
|
||||
features, eg. more audio/video codecs).
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4_CD
|
||||
bool "rpi 4 (cut-down)"
|
||||
help
|
||||
The cut-down set of files for versions 4 (only features
|
||||
required to boot a Linux kernel).
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4_DB
|
||||
bool "rpi 4 (debug)"
|
||||
help
|
||||
The debug set of files for versions 4.
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE
|
||||
string "Path to a file stored as boot/config.txt"
|
||||
help
|
||||
Path to a file stored as config.txt in the boot partiton
|
||||
of the generated SD card image.
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS
|
||||
bool "Install Device Tree Blobs (DTBs)"
|
||||
default y
|
||||
depends on !BR2_LINUX_KERNEL_DTS_SUPPORT
|
||||
help
|
||||
If you are using a Linux kernel <= 3.18, you should say 'y'
|
||||
here.
|
||||
|
||||
If you are using a Linux kernel >= 3.19, you should say 'n'
|
||||
here, and enable BR2_LINUX_KERNEL_DTS_SUPPORT to let the
|
||||
kernel build the DTB.
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTB_OVERLAYS
|
||||
bool "Install DTB overlays"
|
||||
default y
|
||||
depends on BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS \
|
||||
|| BR2_LINUX_KERNEL_DTS_SUPPORT
|
||||
select BR2_LINUX_KERNEL_DTB_OVERLAY_SUPPORT \
|
||||
if BR2_LINUX_KERNEL_DTS_SUPPORT
|
||||
help
|
||||
Say 'y' here if you need to load one or more of the DTB
|
||||
overlays, to support HATs (Hardware Attached on Top, add-on
|
||||
modules).
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_INSTALL_VCDBG
|
||||
bool "vcdbg"
|
||||
depends on BR2_arm # prebuilt arm binary, rpi-userland
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC
|
||||
depends on BR2_INSTALL_LIBSTDCPP # rpi-userland
|
||||
select BR2_PACKAGE_RPI_USERLAND
|
||||
help
|
||||
Install vcdbg, to help debug communication with the GPU.
|
||||
|
||||
comment "vcdbg needs a glibc toolchain w/ C++"
|
||||
depends on BR2_arm
|
||||
depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_INSTALL_LIBSTDCPP
|
||||
|
||||
endif # BR2_PACKAGE_RPI_FIRMWARE
|
||||
@@ -0,0 +1 @@
|
||||
root=/dev/mmcblk0p2 rootwait console=tty1 console=ttyAMA0,115200
|
||||
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 80af5efb51677edb7af6746a553dc2d8ad3f532ff44e4b7263f1e12d4bf72ffd rpi-firmware-2ef3800b1b71c0e30c2a61ecad6e007ae96ea342.tar.gz
|
||||
sha256 c7283ff51f863d93a275c66e3b4cb08021a5dd4d8c1e7acc47d872fbe52d3d6b boot/LICENCE.broadcom
|
||||
@@ -0,0 +1,77 @@
|
||||
################################################################################
|
||||
#
|
||||
# rpi-firmware
|
||||
#
|
||||
################################################################################
|
||||
|
||||
RPI_FIRMWARE_VERSION = 2ef3800b1b71c0e30c2a61ecad6e007ae96ea342
|
||||
RPI_FIRMWARE_SITE = $(call github,raspberrypi,firmware,$(RPI_FIRMWARE_VERSION))
|
||||
RPI_FIRMWARE_LICENSE = BSD-3-Clause
|
||||
RPI_FIRMWARE_LICENSE_FILES = boot/LICENCE.broadcom
|
||||
RPI_FIRMWARE_INSTALL_IMAGES = YES
|
||||
|
||||
RPI_FIRMWARE_FILES = \
|
||||
$(if $(BR2_PACKAGE_RPI_FIRMWARE_BOOTCODE_BIN), bootcode.bin) \
|
||||
$(if $(BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI), start.elf fixup.dat) \
|
||||
$(if $(BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI_X), start_x.elf fixup_x.dat) \
|
||||
$(if $(BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI_CD), start_cd.elf fixup_cd.dat) \
|
||||
$(if $(BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI_DB), start_db.elf fixup_db.dat) \
|
||||
$(if $(BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4), start4.elf fixup4.dat) \
|
||||
$(if $(BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4_X), start4x.elf fixup4x.dat) \
|
||||
$(if $(BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4_CD), start4cd.elf fixup4cd.dat) \
|
||||
$(if $(BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI4_DB), start4db.elf fixup4db.dat)
|
||||
|
||||
define RPI_FIRMWARE_INSTALL_BIN
|
||||
$(foreach f,$(RPI_FIRMWARE_FILES), \
|
||||
$(INSTALL) -D -m 0644 $(@D)/boot/$(f) $(BINARIES_DIR)/rpi-firmware/$(f)
|
||||
)
|
||||
endef
|
||||
|
||||
RPI_FIRMWARE_CONFIG_FILE = $(call qstrip,$(BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE))
|
||||
ifneq ($(RPI_FIRMWARE_CONFIG_FILE),)
|
||||
define RPI_FIRMWARE_INSTALL_CONFIG
|
||||
$(INSTALL) -D -m 0644 $(RPI_FIRMWARE_CONFIG_FILE) \
|
||||
$(BINARIES_DIR)/rpi-firmware/config.txt
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS),y)
|
||||
define RPI_FIRMWARE_INSTALL_DTB
|
||||
$(foreach dtb,$(wildcard $(@D)/boot/*.dtb), \
|
||||
$(INSTALL) -D -m 0644 $(dtb) $(BINARIES_DIR)/rpi-firmware/$(notdir $(dtb))
|
||||
)
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTB_OVERLAYS),y)
|
||||
define RPI_FIRMWARE_INSTALL_DTB_OVERLAYS
|
||||
$(foreach ovldtb,$(wildcard $(@D)/boot/overlays/*.dtbo), \
|
||||
$(INSTALL) -D -m 0644 $(ovldtb) $(BINARIES_DIR)/rpi-firmware/overlays/$(notdir $(ovldtb))
|
||||
)
|
||||
endef
|
||||
else
|
||||
# Still create the directory, so a genimage.cfg can include it independently of
|
||||
# whether _INSTALL_DTB_OVERLAYS is selected or not.
|
||||
define RPI_FIRMWARE_INSTALL_DTB_OVERLAYS
|
||||
$(INSTALL) -d $(BINARIES_DIR)/rpi-firmware/overlays
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_VCDBG),y)
|
||||
define RPI_FIRMWARE_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0700 $(@D)/$(if BR2_ARM_EABIHF,hardfp/)opt/vc/bin/vcdbg \
|
||||
$(TARGET_DIR)/usr/sbin/vcdbg
|
||||
$(INSTALL) -D -m 0644 $(@D)/$(if BR2_ARM_EABIHF,hardfp/)opt/vc/lib/libelftoolchain.so \
|
||||
$(TARGET_DIR)/usr/lib/libelftoolchain.so
|
||||
endef
|
||||
endif # INSTALL_VCDBG
|
||||
|
||||
define RPI_FIRMWARE_INSTALL_IMAGES_CMDS
|
||||
$(INSTALL) -D -m 0644 package/rpi-firmware/cmdline.txt $(BINARIES_DIR)/rpi-firmware/cmdline.txt
|
||||
$(RPI_FIRMWARE_INSTALL_BIN)
|
||||
$(RPI_FIRMWARE_INSTALL_CONFIG)
|
||||
$(RPI_FIRMWARE_INSTALL_DTB)
|
||||
$(RPI_FIRMWARE_INSTALL_DTB_OVERLAYS)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user