Browse Source

flashrom: update to v0.9.9

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
lilik-openwrt-22.03
Álvaro Fernández Rojas 9 years ago
parent
commit
1348057082
4 changed files with 21 additions and 27 deletions
  1. +14
    -12
      utils/flashrom/Makefile
  2. +7
    -3
      utils/flashrom/flashrom.mk
  3. +0
    -0
      utils/flashrom/patches/0002-fix-io-h-include.patch
  4. +0
    -12
      utils/flashrom/patches/0002-fix-musl-compatibility.patch

+ 14
- 12
utils/flashrom/Makefile View File

@ -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 <noltari@gmail.com>
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


+ 7
- 3
utils/flashrom/flashrom.mk View File

@ -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)))

utils/flashrom/patches/0003-fix-io-h-include.patch → utils/flashrom/patches/0002-fix-io-h-include.patch View File


+ 0
- 12
utils/flashrom/patches/0002-fix-musl-compatibility.patch View File

@ -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 <stdio.h>
#include <string.h>
#include <stdlib.h>
-#include <sys/fcntl.h>
+#include <fcntl.h>
#include <errno.h>
#include <ctype.h>
#include <unistd.h>

Loading…
Cancel
Save