mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Add build scripts for embedded (netboot) edition
This commit is contained in:
parent
71754dd164
commit
25947fc199
223 changed files with 32637 additions and 1 deletions
48
embedded/imager/package/rpi-firmware-custom/Config.in
Normal file
48
embedded/imager/package/rpi-firmware-custom/Config.in
Normal file
|
@ -0,0 +1,48 @@
|
|||
config BR2_PACKAGE_RPI_FIRMWARE_CUSTOM
|
||||
bool "rpi-firmware"
|
||||
depends on BR2_arm
|
||||
help
|
||||
RaspberryPi Firmware
|
||||
Pre-compiled binaries of the current bootloader and GPU firmware
|
||||
|
||||
https://github.com/raspberrypi/firmware
|
||||
|
||||
if BR2_PACKAGE_RPI_FIRMWARE_CUSTOM
|
||||
|
||||
choice
|
||||
bool "Firmware to boot"
|
||||
default BR2_PACKAGE_RPI_FIRMWARE_CUSTOM_DEFAULT
|
||||
help
|
||||
There are three different firmware files:
|
||||
- the default firmware, that enables standard GPU features;
|
||||
- the extended firmware, that enables additional GPU features
|
||||
(eg. more audio/video codecs);
|
||||
- the cut-down firmware, for emergency situations, with only
|
||||
features required to boot a Linux kernel.
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_CUSTOM_DEFAULT
|
||||
bool "default"
|
||||
help
|
||||
The default firmware, that enables standard GPU features.
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_CUSTOM_X
|
||||
bool "extended ('x', more codecs)"
|
||||
help
|
||||
The extended firmware, that enables additional GPU features
|
||||
(eg. more audio/video codecs).
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_CUSTOM_CD
|
||||
bool "cut-down ('cd', emergency)"
|
||||
help
|
||||
The cut-down firmware, for emergency situations, with only
|
||||
features required to boot a Linux kernel.
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_PACKAGE_RPI_FIRMWARE_CUSTOM_BOOT
|
||||
string
|
||||
default "" if BR2_PACKAGE_RPI_FIRMWARE_CUSTOM_DEFAULT
|
||||
default "_x" if BR2_PACKAGE_RPI_FIRMWARE_CUSTOM_X
|
||||
default "_cd" if BR2_PACKAGE_RPI_FIRMWARE_CUSTOM_CD
|
||||
|
||||
endif # BR2_PACKAGE_RPI_FIRMWARE_CUSTOM
|
|
@ -0,0 +1,21 @@
|
|||
################################################################################
|
||||
#
|
||||
# rpi-firmware
|
||||
#
|
||||
################################################################################
|
||||
|
||||
RPI_FIRMWARE_CUSTOM_VERSION = 827fdd073638fa7b7292d1148fe0af7465111eae
|
||||
RPI_FIRMWARE_CUSTOM_SITE = $(call github,raspberrypi,firmware,$(RPI_FIRMWARE_CUSTOM_VERSION))
|
||||
RPI_FIRMWARE_CUSTOM_LICENSE = BSD-3c
|
||||
RPI_FIRMWARE_CUSTOM_LICENSE_FILES = boot/LICENCE.broadcom
|
||||
RPI_FIRMWARE_CUSTOM_INSTALL_IMAGES = YES
|
||||
|
||||
define RPI_FIRMWARE_CUSTOM_INSTALL_IMAGES_CMDS
|
||||
$(INSTALL) -D -m 0644 $(@D)/boot/bootcode.bin $(BINARIES_DIR)/rpi-firmware/bootcode.bin
|
||||
$(INSTALL) -D -m 0644 $(@D)/boot/start.elf $(BINARIES_DIR)/rpi-firmware/start.elf
|
||||
$(INSTALL) -D -m 0644 $(@D)/boot/fixup.dat $(BINARIES_DIR)/rpi-firmware/fixup.dat
|
||||
$(INSTALL) -D -m 0644 $(@D)/boot/start4.elf $(BINARIES_DIR)/rpi-firmware/start4.elf
|
||||
$(INSTALL) -D -m 0644 $(@D)/boot/fixup4.dat $(BINARIES_DIR)/rpi-firmware/fixup4.dat
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
Loading…
Add table
Add a link
Reference in a new issue