2007-06-02 05:32:43 +02:00
|
|
|
Installation instructions:
|
|
|
|
|
==========================
|
|
|
|
|
|
2026-10-23 00:13:05 +04:00
|
|
|
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.
|
2007-06-02 05:32:43 +02:00
|
|
|
|
|
|
|
|
Just type:
|
|
|
|
|
|
|
|
|
|
$ make
|
|
|
|
|
|
2007-06-12 23:43:35 +02:00
|
|
|
The most interesting targets for make are:
|
|
|
|
|
|
|
|
|
|
all normal build
|
|
|
|
|
install installs into /usr/local by default
|
2012-11-25 21:18:27 +01:00
|
|
|
uninstall remove installed files
|
2007-06-12 23:43:35 +02:00
|
|
|
clean clean compilation objects and generated binaries
|
|
|
|
|
|
|
|
|
|
|
2007-06-02 05:32:43 +02:00
|
|
|
The installation procedure is quite simple and you can define a new PREFIX
|
|
|
|
|
manually from the command line:
|
|
|
|
|
|
2007-06-12 23:43:35 +02:00
|
|
|
$ sudo make install PREFIX=/usr
|
2007-06-02 05:32:43 +02:00
|
|
|
|
|
|
|
|
The default one is /usr/local (not very userfriendly but standards are
|
|
|
|
|
standards :P hehe)
|