From 1348057082e5887201f0147fb2eb27d46ef5c6ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Mon, 14 Mar 2016 19:03:22 +0100 Subject: [PATCH] flashrom: update to v0.9.9 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Álvaro Fernández Rojas --- utils/flashrom/Makefile | 26 ++++++++++--------- utils/flashrom/flashrom.mk | 10 ++++--- ...lude.patch => 0002-fix-io-h-include.patch} | 0 .../patches/0002-fix-musl-compatibility.patch | 12 --------- 4 files changed, 21 insertions(+), 27 deletions(-) rename utils/flashrom/patches/{0003-fix-io-h-include.patch => 0002-fix-io-h-include.patch} (100%) delete mode 100644 utils/flashrom/patches/0002-fix-musl-compatibility.patch diff --git a/utils/flashrom/Makefile b/utils/flashrom/Makefile index 7c66682abb..31df97b721 100644 --- a/utils/flashrom/Makefile +++ b/utils/flashrom/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2010-2015 OpenWrt.org +# Copyright (C) 2010-2016 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -8,13 +8,13 @@ include $(TOPDIR)/rules.mk PKG_NAME:=flashrom -PKG_VERSION:=0.9.8 -PKG_RELEASE:=6 +PKG_VERSION:=0.9.9 +PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 PKG_SOURCE_URL:=http://download.flashrom.org/releases PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) -PKG_MD5SUM:=ac513076b63ab7eb411a7694bb8f6fda +PKG_MD5SUM:=aab9c98925d9cfb5ffb28b67a6112530 PKG_MAINTAINER:=Álvaro Fernández Rojas PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_SOURCE_SUBDIR) @@ -44,10 +44,11 @@ define Package/flashrom $(Package/flashrom/default) TITLE+= (full) DEPENDS+= \ - +(PACKAGE_flashrom&&(TARGET_x86||TARGET_x86_64)):dmidecode \ - +PACKAGE_flashrom:libftdi \ - +PACKAGE_flashrom:libusb-compat \ - +PACKAGE_flashrom:pciutils + +(TARGET_x86||TARGET_x86_64):dmidecode \ + +libftdi1 \ + +libusb-1.0 \ + +libusb-compat \ + +pciutils VARIANT:=full DEFAULT_VARIANT:=1 endef @@ -56,8 +57,8 @@ define Package/flashrom-pci $(Package/flashrom/default) TITLE+= (pci) DEPENDS+= \ - +(PACKAGE_flashrom-pci&&(TARGET_x86||TARGET_x86_64)):dmidecode \ - +PACKAGE_flashrom-pci:pciutils + +(TARGET_x86||TARGET_x86_64):dmidecode \ + +pciutils VARIANT:=pci endef @@ -71,8 +72,9 @@ define Package/flashrom-usb $(Package/flashrom/default) TITLE+= (usb) DEPENDS+= \ - +PACKAGE_flashrom-usb:libftdi \ - +PACKAGE_flashrom-usb:libusb-compat + +libftdi1 \ + +libusb-1.0 \ + +libusb-compat VARIANT:=usb endef diff --git a/utils/flashrom/flashrom.mk b/utils/flashrom/flashrom.mk index 0ca82b6d05..1a4817bb0b 100644 --- a/utils/flashrom/flashrom.mk +++ b/utils/flashrom/flashrom.mk @@ -82,7 +82,11 @@ $(eval $(call DefineProgrammer,SERPROG,$(FLASHROM_SERIAL))) $(eval $(call DefineProgrammer,PONY_SPI,$(FLASHROM_SERIAL))) $(eval $(call DefineProgrammer,BUSPIRATE_SPI,$(FLASHROM_SERIAL))) -# USB -$(eval $(call DefineConfig,USB,$(FLASHROM_USB))) +# USB0 +$(eval $(call DefineConfig,USB0,$(FLASHROM_USB))) $(eval $(call DefineProgrammer,PICKIT2_SPI,$(FLASHROM_USB))) -#$(eval $(call DefineProgrammer,DEDIPROG,$(FLASHROM_USB))) + +# USB1 +$(eval $(call DefineConfig,USB1,$(FLASHROM_USB))) +$(eval $(call DefineProgrammer,CH341A_SPI,$(FLASHROM_USB))) +$(eval $(call DefineProgrammer,DEDIPROG,$(FLASHROM_USB))) diff --git a/utils/flashrom/patches/0003-fix-io-h-include.patch b/utils/flashrom/patches/0002-fix-io-h-include.patch similarity index 100% rename from utils/flashrom/patches/0003-fix-io-h-include.patch rename to utils/flashrom/patches/0002-fix-io-h-include.patch diff --git a/utils/flashrom/patches/0002-fix-musl-compatibility.patch b/utils/flashrom/patches/0002-fix-musl-compatibility.patch deleted file mode 100644 index b52f8b2f9c..0000000000 --- a/utils/flashrom/patches/0002-fix-musl-compatibility.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -uprN a/linux_spi.c b/linux_spi.c ---- a/linux_spi.c 2015-06-17 20:50:36.492963100 +0200 -+++ b/linux_spi.c 2015-06-17 20:50:00.444860800 +0200 -@@ -22,7 +22,7 @@ - #include - #include - #include --#include -+#include - #include - #include - #include -- 2.30.2