flashrom: new package
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 2 Jun 2012 06:13:58 +0000 (06:13 +0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Mon, 11 Jun 2012 20:48:19 +0000 (22:48 +0200)
[Peter: Install into /usr/sbin]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/Config.in
package/flashrom/Config.in [new file with mode: 0644]
package/flashrom/flashrom.mk [new file with mode: 0644]

index 4915b67b22ad7d2a288c3cc2facd4f8c3b2abe21..fecc336242cf803999a402e7ae1d1f597100b609 100644 (file)
@@ -179,6 +179,7 @@ source "package/dmraid/Config.in"
 source "package/dosfstools/Config.in"
 source "package/e2fsprogs/Config.in"
 source "package/eeprog/Config.in"
+source "package/flashrom/Config.in"
 source "package/fconfig/Config.in"
 source "package/fis/Config.in"
 source "package/fmtools/Config.in"
diff --git a/package/flashrom/Config.in b/package/flashrom/Config.in
new file mode 100644 (file)
index 0000000..956500f
--- /dev/null
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_FLASHROM
+       bool "flashrom"
+       select BR2_PACKAGE_PCIUTILS
+       # dmidecode is only a runtime dependency
+       select BR2_PACKAGE_DMIDECODE
+       depends on BR2_i386 || BR2_x86_64
+       help
+         BIOS-updating utility.
+         Requires PCIUtils libraries.
+
+         http://flashrom.org/
diff --git a/package/flashrom/flashrom.mk b/package/flashrom/flashrom.mk
new file mode 100644 (file)
index 0000000..c019f2d
--- /dev/null
@@ -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))