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

Use autoconf-provided variables instead of absolute paths

Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
This commit is contained in:
Mikhail Gusarov 2009-11-03 23:02:25 +06:00 committed by Xiangfu Liu
parent fa5c72f095
commit 9356e3dff0
2 changed files with 6 additions and 7 deletions

View File

@ -1,4 +1,4 @@
AM_CFLAGS = -pedantic -Wall -W -O1 -g3 -std=gnu99 -lusb -lconfuse AM_CFLAGS = -pedantic -Wall -W -O1 -g3 -std=gnu99 -lusb -lconfuse -DCFGDIR=\"$(cfgdir)\"
xburst-tools_version.h: xburst-tools_version.h:
echo -e '#ifndef XBURST_TOOLS_VERSION' \ echo -e '#ifndef XBURST_TOOLS_VERSION' \
@ -10,15 +10,14 @@ bin_PROGRAMS = usbboot
usbboot_SOURCES = cmd.c command_line.c ingenic_cfg.c \ usbboot_SOURCES = cmd.c command_line.c ingenic_cfg.c \
ingenic_usb.c main.c ingenic_usb.c main.c
prefix = /usr pkgdatadir = $(datadir)/xburst-tools
datadir = /usr/share/xburst-tools pkgdata_DATA = ../xburst_stage1/xburst_stage1.bin \
data_DATA = ../xburst_stage1/xburst_stage1.bin \
../xburst_stage2/xburst_stage2.bin ../xburst_stage2/xburst_stage2.bin
cfgdir = /etc/xburst-tools cfgdir = $(sysconfdir)/xburst-tools
cfg_DATA = ../doc/usbboot.cfg cfg_DATA = ../doc/usbboot.cfg
EXTRA_DIST = $(datadir) $(cfgdir) EXTRA_DIST = $(pkgdatadir) $(cfgdir)
../xburst_stage1/xburst_stage1.bin: ../xburst_stage1/xburst_stage1.bin:
$(MAKE) CROSS_COMPILE=mipsel-openwrt-linux- -C ../xburst_stage1 $(MAKE) CROSS_COMPILE=mipsel-openwrt-linux- -C ../xburst_stage1

View File

@ -26,7 +26,7 @@
#include "ingenic_usb.h" #include "ingenic_usb.h"
#include "ingenic_cfg.h" #include "ingenic_cfg.h"
#define CONFIG_FILE_PATH "/etc/xburst-tools/usbboot.cfg" #define CONFIG_FILE_PATH (CFGDIR "xburst-tools/usbboot.cfg")
extern struct ingenic_dev ingenic_dev; extern struct ingenic_dev ingenic_dev;
extern struct hand hand; extern struct hand hand;