From 4c7e4f9bd5b2a0606051ffe110ed010ad5bc9122 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Wed, 28 Apr 2010 17:03:43 +0800 Subject: [PATCH] add CONF_FIRMWARE to Makefile.am Signed-off-by: Xiangfu Liu --- README | 0 xbboot/host-app/Makefile.am | 15 +++++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) delete mode 100644 README diff --git a/README b/README deleted file mode 100644 index e69de29..0000000 diff --git a/xbboot/host-app/Makefile.am b/xbboot/host-app/Makefile.am index 4c074c8..d039202 100644 --- a/xbboot/host-app/Makefile.am +++ b/xbboot/host-app/Makefile.am @@ -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