Change Details
| xbboot/configure.ac |
| 10 | 10 | |
| 11 | 11 | AM_MAINTAINER_MODE |
| 12 | 12 | |
| 13 | AC_ARG_ENABLE([firmware], |
| 14 | [AS_HELP_STRING([--disable-firmware], |
| 15 | [Do not build initialization code] |
| 16 | [(for example, because some other package contains it).])], |
| 17 | [ |
| 18 | case "$enableval" in |
| 19 | yes) firmware=true ;; |
| 20 | no) firmware=false ;; |
| 21 | *) AC_MSG_ERROR([bad value $enableval for --enable-firmware]) ;; |
| 22 | esac],[firmware=false]) |
| 23 | AM_CONDITIONAL([COND_FIRMWARE], [test "$firmware" = true]) |
| 24 | |
| 13 | 25 | # Checks for programs. |
| 14 | 26 | AC_PROG_CC |
| 15 | 27 | AC_PROG_CXX |
| 16 | 28 | |
| 17 | 29 | # Checks for libraries. |
| 18 | 30 | AC_CHECK_LIB([c], [main]) |
| 19 | | AC_CHECK_LIB([confuse], [main], [], [ |
| 20 | | echo "Error! You need to have libconfuse-dev.\n" |
| 21 | | echo "Maybe run 'sudo apt-get install libconfuse-dev' under debian" |
| 22 | | exit -1 ]) |
| 23 | 31 | AC_CHECK_LIB([gcc], [main]) |
| 24 | 32 | AC_CHECK_LIB([m], [main]) |
| 25 | 33 | AC_CHECK_LIB([usb], [main], [], [ |
| ... | ... | |
| 32 | 40 | |
| 33 | 41 | # Checks for header files. |
| 34 | 42 | AC_HEADER_STDC |
| 35 | | AC_CHECK_HEADERS([fcntl.h stdint.h stdlib.h string.h unistd.h]) |
| 43 | AC_CHECK_HEADERS([time.h signal.h stdlib.h string.h]) |
| 36 | 44 | |
| 37 | 45 | # Checks for typedefs, structures, and compiler characteristics. |
| 38 | 46 | AC_C_INLINE |
| xbboot/host-app/Makefile.am |
| 1 | | AM_CFLAGS = -pedantic -Wall -W -O1 -g3 -std=gnu99 -lusb -lconfuse |
| 1 | AM_CFLAGS = -pedantic -Wall -W -O1 -g3 -std=gnu99 -lusb |
| 2 | 2 | |
| 3 | 3 | xbboot_version.h: |
| 4 | 4 | echo -e '#ifndef XBBOOT_VERSION' \ |
| 5 | | '\n#define XBBOOT_VERSION "20090815-1"' \ |
| 5 | '\n#define XBBOOT_VERSION "20100427-1"' \ |
| 6 | 6 | '\n#endif' > xbboot_version.h |
| 7 | 7 | BUILT_SOURCES = xbboot_version.h |
| 8 | 8 | |
| xbboot/host-app/host_main.c |
| 397 | 397 | printf("\n" |
| 398 | 398 | "xbboot version %s - Ingenic XBurst USB Boot Vendor Requests\n" |
| 399 | 399 | "(c) 2009 Wolfgang Spraul\n" |
| 400 | | "Report bugs to <wolfgang@qi-hardware.com>.\n" |
| 400 | "Report bugs to <wolfgang@qi-hardware.com>, <xiangfu@sharism.cc>.\n" |
| 401 | 401 | "\n" |
| 402 | 402 | "xbboot [vendor_request] ... (must run as root)\n" |
| 403 | 403 | " -h --help print this help message\n" |
Download the corresponding diff file