mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2025-04-21 12:27:27 +03:00
add cross compile to Makefile.am
Signed-off-by: Xiangfu Liu <xiangfu.z@gmail.com>
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
AM_CFLAGS = -pedantic -Wall -W -O1 -g3 -std=gnu99 -lusb -lconfuse
|
||||
|
||||
BUILD_BRANCH := $(shell git branch | grep ^\* | cut -d' ' -f2)
|
||||
BUILD_HEAD := $(shell git show --pretty=oneline | head -n1 | cut -d' ' -f1 | cut -b1-16)
|
||||
BUILD_VERSION := ${BUILD_BRANCH}_${BUILD_HEAD}
|
||||
|
||||
xburst_tools_version.h:
|
||||
echo -e '#ifndef XBURST_TOOLS_VERSION' \
|
||||
'\n#define XBURST_TOOLS_VERSION "20090630-1"' \
|
||||
@@ -22,7 +18,7 @@ data_DATA = ../xburst_stage1/xburst_stage1.bin \
|
||||
EXTRA_DIST = $(datadir)
|
||||
|
||||
../xburst_stage1/xburst_stage1.bin:
|
||||
$(MAKE) -C ../xburst_stage1
|
||||
$(MAKE) CROSS_COMPILE=mipsel-openwrt-linux- -C ../xburst_stage1
|
||||
|
||||
../xburst_stage2/xburst_stage2.bin:
|
||||
$(MAKE) -C ../xburst_stage2
|
||||
$(MAKE) CROSS_COMPILE=mipsel-openwrt-linux- -C ../xburst_stage2
|
||||
|
||||
Reference in New Issue
Block a user