You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.7 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=bcm27xx-eeprom
  3. PKG_VERSION:=47976e4409c6999a8e211976c75c60a97c90275c
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/raspberrypi/rpi-eeprom/tar.gz/$(PKG_VERSION)?
  7. PKG_HASH:=fe67e174d897c6e29549129522c2fbce2404142e098c3c809c2a3b26b5708055
  8. PKG_LICENSE:=BSD-3-Clause Custom
  9. PKG_LICENSE_FILES:=LICENSE
  10. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  11. include $(INCLUDE_DIR)/package.mk
  12. TAR_OPTIONS:=--strip-components 1 $(TAR_OPTIONS)
  13. TAR_CMD=$(HOST_TAR) -C $(1) $(TAR_OPTIONS)
  14. define Package/bcm27xx-eeprom
  15. SECTION:=utils
  16. CATEGORY:=Utilities
  17. DEPENDS:=bcm27xx-userland +blkid +coreutils +coreutils-od +pciutils +python3-light
  18. TITLE:=BCM27xx EEPROM tools
  19. endef
  20. define Package/bcm27xx-eeprom/description
  21. BCM27xx EEPROM tools.
  22. endef
  23. define Build/Compile
  24. true
  25. endef
  26. define Package/bcm27xx-eeprom/conffiles
  27. /etc/bcm27xx-eeprom.conf
  28. endef
  29. define Package/bcm27xx-eeprom/install
  30. $(INSTALL_DIR) $(1)/etc
  31. $(INSTALL_CONF) $(PKG_BUILD_DIR)/rpi-eeprom-update-default $(1)/etc/bcm27xx-eeprom.conf
  32. $(INSTALL_DIR) $(1)/usr/bin
  33. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rpi-eeprom-config $(1)/usr/bin
  34. $(INSTALL_BIN) $(PKG_BUILD_DIR)/rpi-eeprom-update $(1)/usr/bin
  35. $(INSTALL_DIR) $(1)/lib/firmware/raspberrypi/bootloader
  36. $(CP) $(PKG_BUILD_DIR)/firmware/release-notes.md $(1)/lib/firmware/raspberrypi/bootloader
  37. $(INSTALL_DIR) $(1)/lib/firmware/raspberrypi/bootloader/critical
  38. $(CP) $(PKG_BUILD_DIR)/firmware/critical/ $(1)/lib/firmware/raspberrypi/bootloader/
  39. $(INSTALL_DIR) $(1)/lib/firmware/raspberrypi/bootloader/stable
  40. $(CP) $(PKG_BUILD_DIR)/firmware/stable/ $(1)/lib/firmware/raspberrypi/bootloader/
  41. endef
  42. $(eval $(call BuildPackage,bcm27xx-eeprom))