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.

57 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2010-2015 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.8
  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:=ac513076b63ab7eb411a7694bb8f6fda
  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. include flashrom.mk
  20. define Package/flashrom
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=FlashROM Utility
  24. URL:=http://www.flashrom.org/
  25. DEPENDS:=\
  26. +(TARGET_x86||TARGET_x86_64):dmidecode \
  27. +FLASHROM_FTDI:libftdi \
  28. +FLASHROM_PCI:pciutils \
  29. +FLASHROM_USB:libusb-compat
  30. endef
  31. define Package/flashrom/config
  32. source "$(SOURCE)/Config.in"
  33. endef
  34. define Package/flashrom/description
  35. flashrom is an utility for identifying, reading, writing, verifying
  36. and erasing flash chips. It's often used to flash BIOS/EFI/coreboot
  37. /firmware images.
  38. endef
  39. MAKE_FLAGS += \
  40. PREFIX="/usr"
  41. define Package/flashrom/install
  42. $(INSTALL_DIR) $(1)/usr/sbin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/flashrom $(1)/usr/sbin/
  44. endef
  45. $(eval $(call BuildPackage,flashrom))