1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-01 08:29:41 +02:00

add CONF_FIRMWARE to Makefile.am

Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
This commit is contained in:
Xiangfu Liu 2010-04-28 17:03:43 +08:00
parent 945e32bae2
commit 4c7e4f9bd5
2 changed files with 9 additions and 6 deletions

0
README
View File

View File

@ -1,4 +1,4 @@
AM_CFLAGS = -pedantic -Wall -W -O1 -g3 -std=gnu99 -lusb
AM_CFLAGS = -pedantic -Wall -W -O1 -g3 -std=gnu99 -lusb -DDATADIR=\"$(pkgdatadir)\"
xbboot_version.h:
echo -e '#ifndef XBBOOT_VERSION' \
@ -10,10 +10,13 @@ bin_PROGRAMS = xbboot
xbboot_SOURCES = host_main.c
prefix = /usr
datadir = /usr/share/xburst-tools
data_DATA = ../target-stage1/stage1.bin
pkgdatadir = $(datadir)/xburst-tools
EXTRA_DIST = $(datadir)
if COND_FIRMWARE
pkgdata_DATA = ../target-stage1/stage1.bin
endif
../target-stage1/stage.bin:
$(MAKE) -C ../target-stage1
EXTRA_DIST = $(pkgdatadir)
../target-stage1/stage1.bin:
$(MAKE) CROSS_COMPILE=mipsel-openwrt-linux- -C ../target-stage1