1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-22 13:41:32 +02:00

configure: Add --disable-firmware option to avoid building firmware

Allow usbboot to be built on systems without a mipsel cross-compiler
by passing configure the --disable-firmware option.

Before using the resulting binary, one would need to grab the firmware
from another machine.

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
This commit is contained in:
Jonathan Nieder 2010-04-04 22:41:05 -05:00 committed by Xiangfu Liu
parent aa43b70e0c
commit da4424df4b
2 changed files with 15 additions and 0 deletions

View File

@ -9,6 +9,18 @@ AM_CONFIG_HEADER([config.h])
AM_MAINTAINER_MODE AM_MAINTAINER_MODE
AC_ARG_ENABLE([firmware],
[AS_HELP_STRING([--disable-firmware],
[Do not build initialization code]
[(for example, because some other package contains it).])],
[
case "$enableval" in
yes) firmware=true ;;
no) firmware=false ;;
*) AC_MSG_ERROR([bad value $enableval for --enable-firmware]) ;;
esac],[firmware=false])
AM_CONDITIONAL([COND_FIRMWARE], [test "$firmware" = true])
# Checks for programs. # Checks for programs.
AC_PROG_CC AC_PROG_CC
AC_PROG_CXX AC_PROG_CXX

View File

@ -12,8 +12,11 @@ usbboot_SOURCES = cmd.c command_line.c ingenic_cfg.c \
ingenic_usb.c main.c ingenic_usb.c main.c
pkgdatadir = $(datadir)/xburst-tools/ pkgdatadir = $(datadir)/xburst-tools/
if COND_FIRMWARE
pkgdata_DATA = ../xburst_stage1/xburst_stage1.bin \ pkgdata_DATA = ../xburst_stage1/xburst_stage1.bin \
../xburst_stage2/xburst_stage2.bin ../xburst_stage2/xburst_stage2.bin
endif
cfgdir = $(sysconfdir)/xburst-tools/ cfgdir = $(sysconfdir)/xburst-tools/
cfg_DATA = ../doc/usbboot.cfg cfg_DATA = ../doc/usbboot.cfg