25f0525da3c7872cbad6cae19765074b7d828fd8
[packages.git] / utils / flashrom / Makefile
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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=flashrom
11 PKG_VERSION:=0.9.7
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://download.flashrom.org/releases
16 PKG_MD5SUM:=d239bafa1b46619d851f70f84a5b122a
17
18 PKG_INSTALL:=1
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/flashrom
23   SECTION:=utils
24   CATEGORY:=Utilities
25   TITLE:=FlashROM Utility
26   URL:=http://www.flashrom.org/
27   DEPENDS:=+zlib +pciutils +(TARGET_x86||TARGET_x86_64):dmidecode +libftdi
28 endef
29
30 define Package/flashrom/description
31  flashrom is an utility for identifying, reading, writing, verifying
32  and erasing flash chips. It's often used to flash BIOS/EFI/coreboot
33  /firmware images.
34 endef
35
36 MAKE_FLAGS += \
37         PREFIX="/usr"
38
39 define Package/flashrom/install
40         $(INSTALL_DIR) $(1)/usr/sbin
41         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/flashrom $(1)/usr/sbin/
42 endef
43
44 $(eval $(call BuildPackage,flashrom))