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.

48 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:=2
  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_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/flashrom
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. TITLE:=FlashROM Utility
  23. URL:=http://www.flashrom.org/
  24. DEPENDS:=+zlib +pciutils +(TARGET_x86||TARGET_x86_64):dmidecode +libftdi
  25. endef
  26. define Package/flashrom/description
  27. flashrom is an utility for identifying, reading, writing, verifying
  28. and erasing flash chips. It's often used to flash BIOS/EFI/coreboot
  29. /firmware images.
  30. endef
  31. MAKE_FLAGS += \
  32. PREFIX="/usr"
  33. define Package/flashrom/install
  34. $(INSTALL_DIR) $(1)/usr/sbin
  35. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/flashrom $(1)/usr/sbin/
  36. endef
  37. $(eval $(call BuildPackage,flashrom))