mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-12-23 03:16:47 +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:
parent
aa43b70e0c
commit
da4424df4b
@ -9,6 +9,18 @@ AM_CONFIG_HEADER([config.h])
|
||||
|
||||
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.
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
|
@ -12,8 +12,11 @@ usbboot_SOURCES = cmd.c command_line.c ingenic_cfg.c \
|
||||
ingenic_usb.c main.c
|
||||
|
||||
pkgdatadir = $(datadir)/xburst-tools/
|
||||
|
||||
if COND_FIRMWARE
|
||||
pkgdata_DATA = ../xburst_stage1/xburst_stage1.bin \
|
||||
../xburst_stage2/xburst_stage2.bin
|
||||
endif
|
||||
|
||||
cfgdir = $(sysconfdir)/xburst-tools/
|
||||
cfg_DATA = ../doc/usbboot.cfg
|
||||
|
Loading…
Reference in New Issue
Block a user