[package] flashrom: update to 0.9.3 and fix dependency
[packages.git] / utils / flashrom / Makefile
1
2 # Copyright (C) 2010 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.3
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://qa.coreboot.org/releases/
16 PKG_MD5SUM:=eccdec2764223f5d2839bf577380eaa9
17
18 include $(INCLUDE_DIR)/package.mk
19
20
21 define Package/flashrom
22   SECTION:=utils
23   CATEGORY:=Utilities
24   TITLE:=FlashROM Utility
25   URL:=http://www.flashrom.org/
26 # XXX: needs <sys/io.h>, only available on these arch right now
27   DEPENDS:=+zlib +pciutils +dmidecode @(arm||armeb||i386||i686||x86_64)
28 endef
29
30 define Package/flashrom/description
31  flashrom is a 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 define Package/flashrom/install
37         $(INSTALL_DIR) $(1)/usr/sbin
38         $(INSTALL_BIN) $(PKG_BUILD_DIR)/flashrom $(1)/usr/sbin/
39 endef
40
41 $(eval $(call BuildPackage,flashrom))