File tree Expand file tree Collapse file tree 2 files changed +36
-7
lines changed Expand file tree Collapse file tree 2 files changed +36
-7
lines changed Original file line number Diff line number Diff line change @@ -20,17 +20,26 @@ cd objdir
2020PREFIX=` pwd`
2121cd -
2222
23- git clone https://github.com/facchinm/avrdude.git avrdude-6.3
23+ git clone https://github.com/facchinm/avrdude.git avrdude-6.3 --depth 1
2424
2525cd avrdude-6.3
26+
27+ patch -p1 < ../avrdude-6.3-patches/90*
28+
2629autoreconf --force --install
2730./bootstrap
31+ if [[ $OS == " GNU/Linux" ]] ; then
32+ libtoolize
33+ fi
34+
35+ COMMON_FLAGS=" "
2836
29- COMMON_FLAGS=" -I$PREFIX /include -I$PREFIX /ncurses -I$PREFIX /ncursesw -I$PREFIX /readline -I$PREFIX /include/libusb-1.0/ -I$PREFIX /include/hidapi/ -L$PREFIX /lib"
37+ # if [[ $CROSS_COMPILE == "mingw" ]] ; then
38+ # CFLAGS="$CFLAGS -lhid -lsetupapi"
39+ # fi
3040
31- CFLAGS=" $COMMON_FLAGS $CFLAGS "
32- CXXFLAGS=" $COMMON_FLAGS $CXXFLAGS "
33- LDFLAGS=" $COMMON_FLAGS $LDFLAGS "
41+ CFLAGS=" -I$PREFIX /include -I$PREFIX /ncurses -I$PREFIX /ncursesw -I$PREFIX /readline -I$PREFIX /include/libusb-1.0 $CFLAGS "
42+ LDFLAGS=" -L$PREFIX /lib $LDFLAGS "
3443CONFARGS=" --prefix=$PREFIX --enable-linuxgpio"
3544if [[ $CROSS_COMPILE != " " ]] ; then
3645 CONFARGS=" $CONFARGS --host=$CROSS_COMPILE_HOST "
Original file line number Diff line number Diff line change @@ -20,10 +20,30 @@ cd objdir
2020PREFIX=` pwd`
2121cd -
2222
23- git clone https://github.com/signal11/hidapi.git
23+ if [[ $CROSS_COMPILE != " " ]] ; then
24+ CONFARGS=" $CONFARGS --host=$CROSS_COMPILE_HOST "
25+ fi
26+
27+ if [[ $TARGET_OS == " GNU/Linux" ]] ; then
28+
29+ git clone https://github.com/gentoo/eudev.git --depth 1
30+ cd eudev
31+ ./autogen.sh
32+ ./configure --enable-static --disable-shared --disable-blkid --disable-kmod --disable-manpages --prefix=$PREFIX
33+ make clean
34+ make -j4
35+ make install
36+ cd ..
37+ rm -rf eudev
38+
39+ fi
40+
41+ git clone https://github.com/signal11/hidapi.git --depth 1
42+
43+ CFLAGS=" -I$PREFIX /include/ -L$PREFIX /lib/"
2444
2545cd hidapi
26- CONFARGS=" --prefix=$PREFIX --disable-shared"
46+ CONFARGS=" --prefix=$PREFIX --enable-static -- disable-shared "
2747if [[ $CROSS_COMPILE != " " ]] ; then
2848 CONFARGS=" $CONFARGS --host=$CROSS_COMPILE_HOST "
2949 # solve bug with --host not being effective on second level directory
You can’t perform that action at this time.
0 commit comments