Replace the old libusb 0.1 API with libusb 1.0. - Update device detection and USB transfers. - Update USB interface and resource handling. - Use pkg-config to find the library. - Update build dependencies and installation instructions.
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
Installation instructions:
|
|
==========================
|
|
|
|
To build the flasher you will need gcc, make and libusb-1.0 (version 1.0.16
|
|
or newer). Compiler and linker flags for libusb-1.0 are detected by pkg-config;
|
|
without it set LIBUSB_CFLAGS and LIBUSB_LIBS manually (see config.mk), e.g.:
|
|
|
|
$ make LIBUSB_CFLAGS=-I/opt/homebrew/opt/libusb/include/libusb-1.0 \
|
|
LIBUSB_LIBS="-L/opt/homebrew/opt/libusb/lib -lusb-1.0"
|
|
|
|
For crosscompiling to arm you can use scratchbox. But you will probably need
|
|
the libusb-1.0.so of the scratchbox environment to the device.
|
|
|
|
Just type:
|
|
|
|
$ make
|
|
|
|
The most interesting targets for make are:
|
|
|
|
all normal build
|
|
install installs into /usr/local by default
|
|
uninstall remove installed files
|
|
clean clean compilation objects and generated binaries
|
|
|
|
|
|
The installation procedure is quite simple and you can define a new PREFIX
|
|
manually from the command line:
|
|
|
|
$ sudo make install PREFIX=/usr
|
|
|
|
The default one is /usr/local (not very userfriendly but standards are
|
|
standards :P hehe)
|