2019-11-12 20:03:46 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2012 OpenWrt.org
|
|
|
|
# Copyright (C) 2018-2019 Ycarus (Yannick Chabanois) <ycarus@zugaina.org> for OpenMPTCProuter
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=rpi-eeprom
|
2020-03-28 09:34:24 +00:00
|
|
|
PKG_VERSION:=20200319
|
2019-11-12 20:03:46 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE_PROTO:=git
|
|
|
|
PKG_SOURCE_URL:=https://github.com/raspberrypi/rpi-eeprom.git
|
2020-03-28 09:34:24 +00:00
|
|
|
PKG_SOURCE_VERSION:=a9ca308223c1d0426b9ab320696b95954078c3b4
|
2019-11-12 20:03:46 +00:00
|
|
|
|
|
|
|
CMAKE_INSTALL:=1
|
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/rpi-eeprom
|
|
|
|
SECTION:=rpi
|
|
|
|
CATEGORY:=Raspberry Pi
|
|
|
|
URL:=https://github.com/raspberrypi/rpi-eeprom
|
|
|
|
TITLE:=rpi-eeprom
|
2020-02-10 16:03:28 +00:00
|
|
|
DEPENDS:=+fwtool +pciutils +blkid
|
2019-11-12 20:03:46 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rpi-eeprom/description
|
|
|
|
Update Raspberry PI 4 bootloader EEPROM
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rpi-eeprom/install
|
|
|
|
$(INSTALL_DIR) $(1)/lib/firmware/raspberrypi/bootloader \
|
|
|
|
$(1)/usr/bin \
|
|
|
|
$(1)/etc/default
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/rpi-eeprom-update $(1)/usr/bin
|
2020-01-06 20:27:49 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/rpi-eeprom-config $(1)/usr/bin
|
2019-12-21 06:44:43 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/rpi-eeprom-update-default $(1)/etc/default/rpi-eeprom-update
|
2019-11-15 17:06:17 +00:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/firmware/vl805 $(1)/usr/bin
|
2019-11-12 20:03:46 +00:00
|
|
|
$(CP) -r $(PKG_BUILD_DIR)/firmware/critical $(1)/lib/firmware/raspberrypi/bootloader/critical
|
|
|
|
$(CP) -r $(PKG_BUILD_DIR)/firmware/beta $(1)/lib/firmware/raspberrypi/bootloader/beta
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,rpi-eeprom))
|