From 70a369d8136adffb43fe1b8ac0d8e4eb0b8423aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Tue, 10 Jun 2014 21:04:52 +0200 Subject: [PATCH] flashrom: Import 0.97 from packages. --- utils/flashrom/Makefile | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 utils/flashrom/Makefile diff --git a/utils/flashrom/Makefile b/utils/flashrom/Makefile new file mode 100644 index 000000000..42802a784 --- /dev/null +++ b/utils/flashrom/Makefile @@ -0,0 +1,45 @@ +# +# Copyright (C) 2010-2014 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=flashrom +PKG_VERSION:=0.9.7 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=http://download.flashrom.org/releases +PKG_MD5SUM:=d239bafa1b46619d851f70f84a5b122a +PKG_MAINTAINER:=Álvaro Fernández Rojas + +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/flashrom + SECTION:=utils + CATEGORY:=Utilities + TITLE:=FlashROM Utility + URL:=http://www.flashrom.org/ + DEPENDS:=+zlib +pciutils +(TARGET_x86||TARGET_x86_64):dmidecode +libftdi +endef + +define Package/flashrom/description + flashrom is an utility for identifying, reading, writing, verifying + and erasing flash chips. It's often used to flash BIOS/EFI/coreboot + /firmware images. +endef + +MAKE_FLAGS += \ + PREFIX="/usr" + +define Package/flashrom/install + $(INSTALL_DIR) $(1)/usr/sbin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/flashrom $(1)/usr/sbin/ +endef + +$(eval $(call BuildPackage,flashrom))