1
0
mirror of git://projects.qi-hardware.com/xburst-tools.git synced 2024-11-26 03:04:04 +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: xbboot_version.h:
echo -e '#ifndef XBBOOT_VERSION' \ echo -e '#ifndef XBBOOT_VERSION' \
@ -10,10 +10,13 @@ bin_PROGRAMS = xbboot
xbboot_SOURCES = host_main.c xbboot_SOURCES = host_main.c
prefix = /usr prefix = /usr
datadir = /usr/share/xburst-tools pkgdatadir = $(datadir)/xburst-tools
data_DATA = ../target-stage1/stage1.bin
EXTRA_DIST = $(datadir) if COND_FIRMWARE
pkgdata_DATA = ../target-stage1/stage1.bin
endif
../target-stage1/stage.bin: EXTRA_DIST = $(pkgdatadir)
$(MAKE) -C ../target-stage1
../target-stage1/stage1.bin:
$(MAKE) CROSS_COMPILE=mipsel-openwrt-linux- -C ../target-stage1