summaryrefslogtreecommitdiff
path: root/package/flashrom/flashrom.mk
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2012-06-02 06:13:58 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2012-06-11 22:48:19 +0200
commit7a4e44fc9042a578cc78d1fff213491d8fb1e32f (patch)
tree9c4ed8c8a42706bf28ea5821cbb57ab0304ea697 /package/flashrom/flashrom.mk
parent9d3547529b87ce3bddfcdc962e0c9d6d2b2ed9d5 (diff)
flashrom: new package
[Peter: Install into /usr/sbin] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/flashrom/flashrom.mk')
-rw-r--r--package/flashrom/flashrom.mk20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/flashrom/flashrom.mk b/package/flashrom/flashrom.mk
new file mode 100644
index 000000000..c019f2d3b
--- /dev/null
+++ b/package/flashrom/flashrom.mk
@@ -0,0 +1,20 @@
+#############################################################
+#
+# flashrom
+#
+#############################################################
+FLASHROM_VERSION = 0.9.3
+FLASHROM_SOURCE = flashrom-$(FLASHROM_VERSION).tar.bz2
+FLASHROM_SITE = http://download.flashrom.org/releases
+
+FLASHROM_DEPENDENCIES = pciutils
+
+define FLASHROM_BUILD_CMDS
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
+endef
+
+define FLASHROM_INSTALL_TARGET_CMDS
+ $(INSTALL) -m 0755 -D $(@D)/flashrom $(TARGET_DIR)/usr/sbin/flashrom
+endef
+
+$(eval $(call GENTARGETS))