mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-01 10:15:19 +02:00
Use autoconf-provided variables instead of absolute paths
Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
This commit is contained in:
parent
fa5c72f095
commit
9356e3dff0
@ -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:
|
||||
echo -e '#ifndef XBURST_TOOLS_VERSION' \
|
||||
@ -10,15 +10,14 @@ bin_PROGRAMS = usbboot
|
||||
usbboot_SOURCES = cmd.c command_line.c ingenic_cfg.c \
|
||||
ingenic_usb.c main.c
|
||||
|
||||
prefix = /usr
|
||||
datadir = /usr/share/xburst-tools
|
||||
data_DATA = ../xburst_stage1/xburst_stage1.bin \
|
||||
pkgdatadir = $(datadir)/xburst-tools
|
||||
pkgdata_DATA = ../xburst_stage1/xburst_stage1.bin \
|
||||
../xburst_stage2/xburst_stage2.bin
|
||||
|
||||
cfgdir = /etc/xburst-tools
|
||||
cfgdir = $(sysconfdir)/xburst-tools
|
||||
cfg_DATA = ../doc/usbboot.cfg
|
||||
|
||||
EXTRA_DIST = $(datadir) $(cfgdir)
|
||||
EXTRA_DIST = $(pkgdatadir) $(cfgdir)
|
||||
|
||||
../xburst_stage1/xburst_stage1.bin:
|
||||
$(MAKE) CROSS_COMPILE=mipsel-openwrt-linux- -C ../xburst_stage1
|
||||
|
@ -26,7 +26,7 @@
|
||||
#include "ingenic_usb.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 hand hand;
|
||||
|
Loading…
Reference in New Issue
Block a user