diff --git a/flash-tool/src/Makefile.am b/flash-tool/src/Makefile.am index 2365506..6739709 100644 --- a/flash-tool/src/Makefile.am +++ b/flash-tool/src/Makefile.am @@ -9,7 +9,9 @@ BUILT_SOURCES = inflash_version.h bin_PROGRAMS = inflash inflash_SOURCES = cmd.c command_line.c ingenic_cfg.c \ ingenic_usb.c main.c +prefix = /usr datadir = /usr/share/inflash -data_DATA = ../device_stage1/fw.bin ../device_stage2/usb_boot.bin +data_DATA = ../device_stage1/fw.bin ../device_stage2/usb_boot.bin \ + usb_boot.cfg EXTRA_DIST = $(datadir) \ No newline at end of file diff --git a/flash-tool/src/ingenic_cfg.h b/flash-tool/src/ingenic_cfg.h index e640f41..6bc813a 100644 --- a/flash-tool/src/ingenic_cfg.h +++ b/flash-tool/src/ingenic_cfg.h @@ -24,7 +24,7 @@ #include "usb_boot_defines.h" -#define CONFIG_FILE_PATH "usb_boot.cfg" +#define CONFIG_FILE_PATH "/usr/share/inflash/usb_boot.cfg" int hand_init_def(struct hand *hand); int check_dump_cfg(struct hand *hand); diff --git a/flash-tool/src/ingenic_usb.h b/flash-tool/src/ingenic_usb.h index 302df82..60ef9c9 100644 --- a/flash-tool/src/ingenic_usb.h +++ b/flash-tool/src/ingenic_usb.h @@ -47,8 +47,8 @@ #define VENDOR_ID 0x601a #define PRODUCT_ID 0x4740 -#define STAGE1_FILE_PATH "fw.bin" -#define STAGE2_FILE_PATH "usb_boot.bin" +#define STAGE1_FILE_PATH "/usr/share/inflash/fw.bin" +#define STAGE2_FILE_PATH "/usr/share/inflash/usb_boot.bin" #define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) diff --git a/flash-tool/usb_boot.cfg b/flash-tool/src/usb_boot.cfg similarity index 100% rename from flash-tool/usb_boot.cfg rename to flash-tool/src/usb_boot.cfg