1SUMMARY="A utility for EZ-USB firmware installation" 2DESCRIPTION="This program is conveniently able to download firmware into FX, \ 3FX2, and FX2LP EZ-USB devices, as well as the original AnchorChips EZ-USB. 4Primarily as an aid for developers, this can also be used to update firmware \ 5on devices which boot from I2C serial EEPROMs. For that use, as well as \ 6downloading firmware to all other off-chip memory, a second stage loader must \ 7first be downloaded. 8 9The distribution includes a3load.hex, which is a simple second stage loader \ 10that works with all the EZ-USB products listed above. If you want to write to \ 11an EEPROM, you can use the appropriate version of the Vend_Ax code provided \ 12with the Cypress developer kit. 13 14This program was modified from the original version available from \ 15http://linux-hotplug.sourceforge.net to use libusbx [http://libusbx.org]. The \ 16aim is to integrate this program into the libusbx samples directory. 17Besides Linux, use of libusbx as the USB backend allows fxload to be used on \ 18Windows, OS-X as well as any other platform supported by libusbx. 19You are invited to post any bug reports or patches to the libusbx-devel \ 20mailing list." 21HOMEPAGE="https://github.com/pbatard/fxload" 22COPYRIGHT="2001 Stephen Williams 23 2001-2002 David Brownell 24 2008 Roger Williams 25 2012 Pete Batard" 26LICENSE="GNU GPL v2" 27REVISION="2" 28SOURCE_URI="git+git://github.com/pbatard/fxload#cd1c1a062579b921d7694a3244cdefc60fd3325f" 29 30ARCHITECTURES="x86_gcc2" 31SECONDARY_ARCHITECTURES="x86" 32 33PROVIDES=" 34 fxload$secondaryArchSuffix = $portVersion 35 cmd:fxload$secondaryArchSuffix 36 " 37REQUIRES=" 38 haiku$secondaryArchSuffix 39 lib:libusb_1.0$secondaryArchSuffix 40 " 41 42BUILD_REQUIRES=" 43 haiku${secondaryArchSuffix}_devel 44 devel:libusb_1.0${secondaryArchSuffix} 45 " 46BUILD_PREREQUIRES=" 47 cmd:gcc$secondaryArchSuffix 48 cmd:install 49 cmd:ld$secondaryArchSuffix 50 cmd:make 51 cmd:pkg_config$secondaryArchSuffix 52 " 53 54BUILD() 55{ 56 export PKG_CONFIG_LIBDIR=/system/develop/lib/x86/pkgconfig/ 57 make 58} 59 60INSTALL() 61{ 62 make install sbindir=$binDir mandir=$manDir INSTALL_PROGRAM="install -cD" 63} 64