Prepare and add to be able to update the eeprom on boot.
This commit is contained in:
parent
1e7f15c015
commit
ebc669e78e
|
@ -83,6 +83,7 @@ endmenu
|
||||||
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/ovos-splash/Config.in"
|
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/ovos-splash/Config.in"
|
||||||
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/qt5ct/Config.in"
|
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/qt5ct/Config.in"
|
||||||
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/respeaker/Config.in"
|
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/respeaker/Config.in"
|
||||||
|
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/rpi-eeprom/Config.in"
|
||||||
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/snapcast/Config.in"
|
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/snapcast/Config.in"
|
||||||
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/spotifyd/Config.in"
|
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/spotifyd/Config.in"
|
||||||
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/userland-tools/Config.in"
|
source "$BR2_EXTERNAL_OPENVOICEOS_PATH/package/userland-tools/Config.in"
|
||||||
|
|
|
@ -532,6 +532,7 @@ BR2_PACKAGE_NCPAMIXER=y
|
||||||
BR2_PACKAGE_OVOS_SPLASH=y
|
BR2_PACKAGE_OVOS_SPLASH=y
|
||||||
BR2_PACKAGE_QT5CT=y
|
BR2_PACKAGE_QT5CT=y
|
||||||
BR2_PACKAGE_RESPEAKER=y
|
BR2_PACKAGE_RESPEAKER=y
|
||||||
|
BR2_PACKAGE_RPI_EEPROM=y
|
||||||
BR2_PACKAGE_SNAPCAST=y
|
BR2_PACKAGE_SNAPCAST=y
|
||||||
BR2_PACKAGE_SNAPCAST_SERVER=y
|
BR2_PACKAGE_SNAPCAST_SERVER=y
|
||||||
BR2_PACKAGE_SPOTIFYD=y
|
BR2_PACKAGE_SPOTIFYD=y
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
config BR2_PACKAGE_RPI_EEPROM
|
||||||
|
bool "rpi-eeprom"
|
||||||
|
help
|
||||||
|
EEPROM bootloader firmware for Raspberry Pi 4
|
||||||
|
|
||||||
|
https://github.com/raspberrypi/rpi-eeprom
|
|
@ -0,0 +1,26 @@
|
||||||
|
#############################################################
|
||||||
|
#
|
||||||
|
# rpi-eeprom
|
||||||
|
#
|
||||||
|
#############################################################
|
||||||
|
RPI_EEPROM_VERSION = 16bb29427f96dc8276a7102c0526154a1084bffd
|
||||||
|
RPI_EEPROM_SITE = $(call github,raspberrypi,rpi-eeprom,$(RPI_EEPROM_VERSION))
|
||||||
|
RPI_EEPROM_LICENSE = BSD-3-Clause
|
||||||
|
RPI_EEPROM_LICENSE_FILES = LICENSE
|
||||||
|
RPI_EEPROM_INSTALL_IMAGES = YES
|
||||||
|
RPI_EEPROM_FIRMWARE_PATH = firmware/beta/pieeprom-2020-10-28.bin
|
||||||
|
|
||||||
|
define RPI_EEPROM_BUILD_CMDS
|
||||||
|
$(@D)/rpi-eeprom-config $(@D)/$(RPI_EEPROM_FIRMWARE_PATH) --out $(@D)/default.conf
|
||||||
|
(cat $(@D)/default.conf | grep -v ^$$; echo HDMI_DELAY=0) > $(@D)/boot.conf
|
||||||
|
$(@D)/rpi-eeprom-config $(@D)/$(RPI_EEPROM_FIRMWARE_PATH) --config $(@D)/boot.conf --out $(@D)/pieeprom.upd
|
||||||
|
sha256sum $(@D)/pieeprom.upd | awk '{ print $$1 }' > $(@D)/pieeprom.sig
|
||||||
|
echo "ts: $$(date -u +%s)" >> $(@D)/pieeprom.sig
|
||||||
|
endef
|
||||||
|
|
||||||
|
define RPI_EEPROM_INSTALL_IMAGES_CMDS
|
||||||
|
$(INSTALL) -D -m 0644 $(@D)/pieeprom.sig $(BINARIES_DIR)/rpi-eeprom/pieeprom.sig
|
||||||
|
$(INSTALL) -D -m 0644 $(@D)/pieeprom.upd $(BINARIES_DIR)/rpi-eeprom/pieeprom.upd
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(generic-package))
|
Loading…
Reference in New Issue