Patchwork [08/10] flashrom: new package

login
register
mail settings
Submitter Thomas Petazzoni
Date June 2, 2012, 4:13 p.m.
Message ID <8bd26c1a4e7bab3695187a73e812f52739765565.1338653505.git.thomas.petazzoni@free-electrons.com>
Download mbox | patch
Permalink /patch/162434/
State Accepted
Headers show

Comments

Thomas Petazzoni - June 2, 2012, 4:13 p.m.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 package/Config.in            |    1 +
 package/flashrom/Config.in   |   11 +++++++++++
 package/flashrom/flashrom.mk |   20 ++++++++++++++++++++
 3 files changed, 32 insertions(+)
 create mode 100644 package/flashrom/Config.in
 create mode 100644 package/flashrom/flashrom.mk
Peter Korsgaard - June 11, 2012, 8:48 p.m.
>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

 Thomas> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 Thomas> ---

 Thomas> +#############################################################
 Thomas> +#
 Thomas> +# flashrom
 Thomas> +#
 Thomas> +#############################################################
 Thomas> +FLASHROM_VERSION = 0.9.3
 Thomas> +FLASHROM_SOURCE  = flashrom-$(FLASHROM_VERSION).tar.bz2
 Thomas> +FLASHROM_SITE    = http://download.flashrom.org/releases
 Thomas> +
 Thomas> +FLASHROM_DEPENDENCIES = pciutils
 Thomas> +
 Thomas> +define FLASHROM_BUILD_CMDS
 Thomas> +	$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D)
 Thomas> +endef
 Thomas> +
 Thomas> +define FLASHROM_INSTALL_TARGET_CMDS
 Thomas> +	$(INSTALL) -m 0755 -D $(@D)/flashrom $(TARGET_DIR)/usr/bin/flashrom

I would have expected something like this doing hw access should go into
/usr/sbin, and that's also where Debian places it so I've changed that
and committed, thanks.

Patch

diff --git a/package/Config.in b/package/Config.in
index 09ca9dd..36a2cd0 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -178,6 +178,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
index 0000000..956500f
--- /dev/null
+++ b/package/flashrom/Config.in
@@ -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
index 0000000..323469a
--- /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/bin/flashrom
+endef
+
+$(eval $(call GENTARGETS))