[packages] flashrom: update source url, use PKG_INSTALL & MAKE_FLAGS, refresh patches
[openwrt/svn-archive/archive.git] / utils / flashrom / Makefile
1 #
2 # Copyright (C) 2010-2011 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:=2
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://download.flashrom.org/releases
16 PKG_MD5SUM:=eccdec2764223f5d2839bf577380eaa9
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 # XXX: needs <sys/io.h>, only available on these arch right now
28 DEPENDS:=+zlib +pciutils +dmidecode @(arm||armeb||i386||i686||x86_64)
29 endef
30
31 define Package/flashrom/description
32 flashrom is a utility for identifying, reading, writing, verifying
33 and erasing flash chips. It's often used to flash BIOS/EFI/coreboot
34 /firmware images.
35 endef
36
37 MAKE_FLAGS += \
38 PREFIX="/usr"
39
40 define Package/flashrom/install
41 $(INSTALL_DIR) $(1)/usr/sbin
42 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/flashrom $(1)/usr/sbin/
43 endef
44
45 $(eval $(call BuildPackage,flashrom))