Page MenuHomeSolus

D4484.id11016.diff
No OneTemporary

D4484.id11016.diff

Index: Makefile
===================================================================
--- /dev/null
+++ Makefile
@@ -0,0 +1 @@
+include ../Makefile.common
Index: abi_used_libs
===================================================================
--- /dev/null
+++ abi_used_libs
@@ -0,0 +1,5 @@
+libc.so.6
+libpci.so.3
+librt.so.1
+libusb-0.1.so.4
+libusb-1.0.so.0
Index: files/01-avoid-deprecated-libusb-functions.patch
===================================================================
--- /dev/null
+++ files/01-avoid-deprecated-libusb-functions.patch
@@ -0,0 +1,37 @@
+From 291764a70e6d8b212680e311bfb0825abf2b9a2f Mon Sep 17 00:00:00 2001
+From: Alex James <theracermaster@gmail.com>
+Date: Sat, 14 Apr 2018 22:59:57 -0500
+Subject: ch341a_spi: Avoid deprecated libusb functions
+
+libusb 1.0.22 marked libusb_set_debug as deprecated. For such versions
+of libusb, use libusb_set_option instead.
+
+Change-Id: Ib71ebe812316eaf49136979a942a946ef9e4d487
+Signed-off-by: Alex James <theracermaster@gmail.com>
+Reviewed-on: https://review.coreboot.org/25681
+Tested-by: Nico Huber <nico.h@gmx.de>
+Reviewed-by: David Hendricks <david.hendricks@gmail.com>
+---
+ ch341a_spi.c | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/ch341a_spi.c b/ch341a_spi.c
+index 95e9c957..ee18624e 100644
+--- a/ch341a_spi.c
++++ b/ch341a_spi.c
+@@ -441,7 +441,12 @@ int ch341a_spi_init(void)
+ return -1;
+ }
+
+- libusb_set_debug(NULL, 3); // Enable information, warning and error messages (only).
++ /* Enable information, warning, and error messages (only). */
++#if LIBUSB_API_VERSION < 0x01000106
++ libusb_set_debug(NULL, 3);
++#else
++ libusb_set_option(NULL, LIBUSB_OPTION_LOG_LEVEL, LIBUSB_LOG_LEVEL_INFO);
++#endif
+
+ uint16_t vid = devs_ch341a_spi[0].vendor_id;
+ uint16_t pid = devs_ch341a_spi[0].device_id;
+--
+cgit v1.2.1
Index: package.yml
===================================================================
--- /dev/null
+++ package.yml
@@ -0,0 +1,20 @@
+name : flashrom
+version : 1.0
+release : 1
+source :
+ - https://download.flashrom.org/releases/flashrom-1.0.tar.bz2 : 3702fa215ba5fb5af8e54c852d239899cfa1389194c1e51cb2a170c4dc9dee64
+license : GPL-2.0-or-later
+component : system.utils
+summary : flashrom is a utility for identifying, reading, writing, verifying and erasing flash chips.
+description: |
+ flashrom is a utility for identifying, reading, writing, verifying and erasing flash chips. It is designed to flash BIOS/EFI/coreboot/firmware/optionROM images on mainboards, network/graphics/storage controller cards, and various other programmer devices.
+builddeps :
+ - pkgconfig(libpci)
+ - pkgconfig(libusb)
+ - pkgconfig(zlib)
+setup : |
+ %patch -p1 < $pkgfiles/01-avoid-deprecated-libusb-functions.patch
+build : |
+ %make
+install : |
+ %make_install PREFIX=/usr
Index: pspec_x86_64.xml
===================================================================
--- /dev/null
+++ pspec_x86_64.xml
@@ -0,0 +1,35 @@
+<PISI>
+ <Source>
+ <Name>flashrom</Name>
+ <Packager>
+ <Name>David Harder</Name>
+ <Email>davidjharder@gmail.com</Email>
+ </Packager>
+ <License>GPL-2.0-or-later</License>
+ <PartOf>system.utils</PartOf>
+ <Summary xml:lang="en">flashrom is a utility for identifying, reading, writing, verifying and erasing flash chips.</Summary>
+ <Description xml:lang="en">flashrom is a utility for identifying, reading, writing, verifying and erasing flash chips. It is designed to flash BIOS/EFI/coreboot/firmware/optionROM images on mainboards, network/graphics/storage controller cards, and various other programmer devices.
+</Description>
+ <Archive type="binary" sha1sum="79eb0752a961b8e0d15c77d298c97498fbc89c5a">https://solus-project.com/sources/README.Solus</Archive>
+ </Source>
+ <Package>
+ <Name>flashrom</Name>
+ <Summary xml:lang="en">flashrom is a utility for identifying, reading, writing, verifying and erasing flash chips.</Summary>
+ <Description xml:lang="en">flashrom is a utility for identifying, reading, writing, verifying and erasing flash chips. It is designed to flash BIOS/EFI/coreboot/firmware/optionROM images on mainboards, network/graphics/storage controller cards, and various other programmer devices.
+</Description>
+ <PartOf>system.utils</PartOf>
+ <Files>
+ <Path fileType="executable">/usr/sbin/flashrom</Path>
+ <Path fileType="man">/usr/share/man/man8/flashrom.8</Path>
+ </Files>
+ </Package>
+ <History>
+ <Update release="1">
+ <Date>2018-11-29</Date>
+ <Version>1.0</Version>
+ <Comment>Packaging update</Comment>
+ <Name>David Harder</Name>
+ <Email>davidjharder@gmail.com</Email>
+ </Update>
+ </History>
+</PISI>
\ No newline at end of file

File Metadata

Mime Type
text/plain
Expires
Jun 12 2023, 12:21 PM (8 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5824867
Default Alt Text
D4484.id11016.diff (4 KB)

Event Timeline