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.

45 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2010-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=flashrom
  9. PKG_VERSION:=0.9.7
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=http://download.flashrom.org/releases
  13. PKG_MD5SUM:=d239bafa1b46619d851f70f84a5b122a
  14. PKG_MAINTAINER:=Álvaro Fernández Rojas <noltari@gmail.com>
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/flashrom
  18. SECTION:=utils
  19. CATEGORY:=Utilities
  20. TITLE:=FlashROM Utility
  21. URL:=http://www.flashrom.org/
  22. DEPENDS:=+zlib +pciutils +(TARGET_x86||TARGET_x86_64):dmidecode +libftdi
  23. endef
  24. define Package/flashrom/description
  25. flashrom is an utility for identifying, reading, writing, verifying
  26. and erasing flash chips. It's often used to flash BIOS/EFI/coreboot
  27. /firmware images.
  28. endef
  29. MAKE_FLAGS += \
  30. PREFIX="/usr"
  31. define Package/flashrom/install
  32. $(INSTALL_DIR) $(1)/usr/sbin
  33. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/flashrom $(1)/usr/sbin/
  34. endef
  35. $(eval $(call BuildPackage,flashrom))