1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-25 18:05:00 +02:00

Make CROSS_COMPILE configure script variable.

This commit is contained in:
Sergey Kvachonok 2010-09-23 11:54:05 +03:00
parent afa0c1b5f2
commit 6c1baa5e21
3 changed files with 7 additions and 3 deletions

View File

@ -21,6 +21,10 @@ no) firmware=false ;;
esac],[firmware=false])
AM_CONDITIONAL([COND_FIRMWARE], [test "$firmware" = true])
AC_ARG_VAR([CROSS_COMPILE],
[Cross compiler prefix for building firmware, ]
[e.g. CROSS_COMPILE=mipsel-openwrt-linux-.])
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX

View File

@ -23,7 +23,7 @@ cfg_DATA = ../doc/usbboot.cfg
EXTRA_DIST = $(pkgdatadir) $(cfgdir)
../xburst_stage1/xburst_stage1.bin:
$(MAKE) CROSS_COMPILE=mipsel-openwrt-linux- -C ../xburst_stage1
$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) -C ../xburst_stage1
../xburst_stage2/xburst_stage2.bin:
$(MAKE) CROSS_COMPILE=mipsel-openwrt-linux- -C ../xburst_stage2
$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) -C ../xburst_stage2

View File

@ -18,4 +18,4 @@ endif
EXTRA_DIST = $(pkgdatadir)
../target-stage1/stage1.bin:
$(MAKE) CROSS_COMPILE=mipsel-openwrt-linux- -C ../target-stage1
$(MAKE) CROSS_COMPILE=$(CROSS_COMPILE) -C ../target-stage1