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:=fd2ea72b2677504f41298c9137647aa057f67f47
  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:=3a4e1db25db8188535ad0ad12a6e40e2ff927b20cd21b1b5ff783c2fde966308
  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 +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))