diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5f6c786 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +fxload-2002_04_11-noa3load.tar.gz +/fxload-2008_10_13-noa3load.tar.gz diff --git a/dead.package b/dead.package deleted file mode 100644 index f5e7c40..0000000 --- a/dead.package +++ /dev/null @@ -1,2 +0,0 @@ -2014-10-18: Orphaned and not available in the repo - diff --git a/fxload-generate-tarball.sh b/fxload-generate-tarball.sh new file mode 100644 index 0000000..223c2b0 --- /dev/null +++ b/fxload-generate-tarball.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +VERSION=$1 + +tar -xzvf fxload-${VERSION}.tar.gz +rm fxload-${VERSION}/a3load.hex +tar -czvf fxload-${VERSION}-noa3load.tar.gz fxload-${VERSION} + diff --git a/fxload-header.patch b/fxload-header.patch new file mode 100644 index 0000000..baac5cf --- /dev/null +++ b/fxload-header.patch @@ -0,0 +1,11 @@ +--- ezusb.c 2002-04-12 06:08:01.000000000 +0200 ++++ ezusb.c.new 2006-12-07 23:57:04.000000000 +0100 +@@ -29,7 +29,7 @@ + # include + + # include +-# include ++# include + # include + + # include "ezusb.h" diff --git a/fxload-ldflags.patch b/fxload-ldflags.patch new file mode 100644 index 0000000..2b5639c --- /dev/null +++ b/fxload-ldflags.patch @@ -0,0 +1,12 @@ +diff -ruN fxload-2008_10_13.orig/Makefile fxload-2008_10_13/Makefile +--- fxload-2008_10_13.orig/Makefile 2008-10-13 23:44:04.000000000 +0200 ++++ fxload-2008_10_13/Makefile 2020-11-03 16:05:41.516974652 +0100 +@@ -39,7 +39,7 @@ + + # object files + $(PROG): $(FILES_OBJ) +- $(CC) -o $(PROG) $(FILES_OBJ) ++ $(CC) $(LDFLAGS) -o $(PROG) $(FILES_OBJ) + + %.o: %.c + $(CC) -c $(CFLAGS) $< -o $@ diff --git a/fxload-noa3load.patch b/fxload-noa3load.patch new file mode 100644 index 0000000..e18b732 --- /dev/null +++ b/fxload-noa3load.patch @@ -0,0 +1,34 @@ +diff -up fxload-2008_10_13/fxload.8.fxload-noa3load fxload-2008_10_13/fxload.8 +--- fxload-2008_10_13/fxload.8.fxload-noa3load 2008-10-13 17:44:04.000000000 -0400 ++++ fxload-2008_10_13/fxload.8 2018-02-25 23:33:18.717749708 -0500 +@@ -224,15 +224,6 @@ and some firmware can't be placed in boo + .B DEVICE + normally names a "usbfs" file that will be used to talk to the device. + This is provided by the Linux kernel as part of USB hotplugging. +-.SH "FILES" +-.TP +-.I /usr/share/usb/a3load.hex +-Second stage loader that works with AnchorChips EZ-USB, +-Cypress EZ-USB FX, and Cypress EZ-USB FX2. +-Note that this only supports the 0xA3 vendor command, to +-write external memory. +-A loader that also supports the 0xA2 command, to write boot EEPROMs, +-is included with Cypress developer kits. + .SH "SEE ALSO" + .BR hotplug "(8) " + .SH "AUTHORS" +diff -up fxload-2008_10_13/README.txt.fxload-noa3load fxload-2008_10_13/README.txt +--- fxload-2008_10_13/README.txt.fxload-noa3load 2008-10-13 17:44:04.000000000 -0400 ++++ fxload-2008_10_13/README.txt 2018-02-25 23:33:18.717749708 -0500 +@@ -11,11 +11,6 @@ firmware on devices which boot from I2C + use, as well as downloading firmware to all other off-chip memory, + a second stage loader must first be downloaded. + +-The distribution includes "a3load.hex", which is a simple second stage +-loader that works with all the EZ-USB products listed above. If you +-want to write to an EEPROM, you can use the appropriate version of the +-"Vend_Ax" code provided with the Cypress developer kit. +- + + UPDATES + diff --git a/fxload.spec b/fxload.spec new file mode 100644 index 0000000..2ecae3f --- /dev/null +++ b/fxload.spec @@ -0,0 +1,205 @@ +Name: fxload +Version: 2008_10_13 +Release: 33%{?dist} +Summary: A helper program to download firmware into FX and FX2 EZ-USB devices + +License: GPL-2.0-or-later +URL: http://linux-hotplug.sourceforge.net/ +Source0: fxload-%{version}-noa3load.tar.gz +# The above file is derived from: +# http://downloads.sourceforge.net/project/linux-hotplug/fxload/2008_10_13/fxload-2008_10_13.tar.gz +# This file contains code that is copyright Cypress Semiconductor Inc, +# and cannot be distributed. Therefore we use this script to remove the +# copyright code before shipping it. Download the upstream tarball and +# invoke this script while in the tarball's directory: +# ./fxload-generate-tarball.sh 2008_10_13 +Source1: fxload-generate-tarball.sh +Patch0: fxload-noa3load.patch +Patch1: fxload-ldflags.patch + +BuildRequires: gcc kernel-headers make +Requires: udev +Conflicts: hotplug-gtk hotplug + +%description +This program is conveniently able to download firmware into FX and FX2 +EZ-USB devices, as well as the original AnchorChips EZ-USB. It is +intended to be invoked by udev scripts when the unprogrammed device +appears on the bus. + +%prep +%setup -q +%patch -P0 -p1 -b .fxload-noa3load +%patch -P1 -p1 -b .ldflags + +%build +%{make_build} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS -pie" + +%install +install -m 755 -Dt %{buildroot}%{_sbindir}/ fxload +install -m 644 -Dt %{buildroot}%{_mandir}/man8/ fxload.8 + +%files +%doc COPYING +%doc README.txt +%{_sbindir}/fxload +%{_mandir}/man8/fxload.8* + +%changelog +* Wed Oct 22 2025 Zbigniew Jędrzejewski-Szmek - 2008_10_13-33 +- Use %%_sbindir for the binary (rhbz#2405414) + +* Wed Jul 23 2025 Fedora Release Engineering - 2008_10_13-31 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + +* Thu Jan 16 2025 Fedora Release Engineering - 2008_10_13-30 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + +* Wed Dec 18 2024 Jaroslav Kysela - 2008_10_13-29 +- use /usr/sbin directory + +* Wed Jul 17 2024 Fedora Release Engineering - 2008_10_13-28 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed Jan 24 2024 Fedora Release Engineering - 2008_10_13-27 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 2008_10_13-26 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Sep 7 2023 Jaroslav Kysela - 2008_10_13-25 +- SPDX license + +* Wed Jul 19 2023 Fedora Release Engineering - 2008_10_13-24 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jan 19 2023 Fedora Release Engineering - 2008_10_13-23 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Thu Jul 21 2022 Fedora Release Engineering - 2008_10_13-22 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jan 20 2022 Fedora Release Engineering - 2008_10_13-21 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 2008_10_13-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 2008_10_13-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Dec 08 2020 Charles R. Anderson - 2008_10_13-18 +- BR: make + +* Tue Dec 08 2020 Charles R. Anderson - 2008_10_13-17 +- Merge PR#2: Make annocheck pass, pass -pie to linker, use make_build macro + +* Mon Jul 27 2020 Fedora Release Engineering - 2008_10_13-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon Feb 03 2020 Tom Stellard - 2008_10_13-15 +- Use __cc macro instead of hard-coding gcc + +* Tue Jan 28 2020 Fedora Release Engineering - 2008_10_13-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Jul 25 2019 Fedora Release Engineering - 2008_10_13-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 2008_10_13-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 2008_10_13-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Feb 25 2018 Charles R. Anderson - 2008_10_13-10 +- Patch to apply CFLAGS/LDFLAGS to final link so RPM_OPT_FLAGS are picked up (rhbz#1548426) +- Use CC=gcc explicitly +- Regenerate fxload-noa3load.patch + +* Sun Feb 18 2018 Charles R. Anderson - 2008_10_13-9 +- add BR gcc +- remove Group:, BuildRoot: and rm -rf in install section + +* Wed Feb 07 2018 Fedora Release Engineering - 2008_10_13-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 02 2017 Fedora Release Engineering - 2008_10_13-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 2008_10_13-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 2008_10_13-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Feb 03 2016 Fedora Release Engineering - 2008_10_13-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 2008_10_13-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat Aug 16 2014 Fedora Release Engineering - 2008_10_13-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Mon Jun 16 2014 Charles R. Anderson - 2008_10_13-1 +- update to 2008_10_13 to support Cypress EZ-USB FX2LP parts (rhbz#1102654) + +* Sat Jun 07 2014 Fedora Release Engineering - 2002_04_11-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 2002_04_11-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Feb 13 2013 Fedora Release Engineering - 2002_04_11-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 2002_04_11-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Jan 13 2012 Fedora Release Engineering - 2002_04_11-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 2002_04_11-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Fri Jul 24 2009 Fedora Release Engineering - 2002_04_11-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 2002_04_11-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Sat Feb 9 2008 Stephen Warren - 2002_04_11-7 +- Bump version to rebuild with gcc-4.3 + +* Sat Nov 17 2007 Stephen Warren - 2002_04_11-6 +- Rework the spec file formatting to match templates from rpmdev +- Be explicit about file attributes, just in case + +* Sat Nov 17 2007 Stephen Warren - 2002_04_11-5 +- Updates after reading packaging guide-lines more thoroughly: +- Make license version more explicit +- Add generate-tarball.sh, and associated comments +- Added BuildRequires on kernel-headers +- Added COPYING as a doc +- Use dollar v.s. percent macros more consitently + +* Fri Nov 16 2007 Stephen Warren - 2002_04_11-4 +- Repackage the source tarball to remove a3load.hex +- Added instructions to spec file on how to do the above +- Remove reference to a3load.hex from the man page too + +* Thu Nov 15 2007 Stephen Warren - 2002_04_11-3 +- Update BuildRoot per Fedora wiki +- Fixed rpmlint complaint about not cleaning buildroot +- Updated source patch file to match latest kernel file layout +- Add patch to remove reference to non-shipped non-free a3load.hex firmware + +* Fri Dec 8 2006 Bart Vanbrabant - 2002_04_11-2 +- Fixed some rpmlint complaints +- Added patch to fix an include header +- Added dist tag + +* Wed Apr 12 2006 Bart Vanbrabant - 2002_04_11-1 +- First version of fxload spec based on hotplug spec + diff --git a/sources b/sources new file mode 100644 index 0000000..c3203a0 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +c1856eceed08f71a5600a716e10b29f1 fxload-2008_10_13-noa3load.tar.gz