From 03b7473d4faddcb87a5e82205a42028768e7c177 Mon Sep 17 00:00:00 2001 From: Gediminas Jakutis Date: Sat, 19 May 2018 12:02:08 +0300 Subject: add support for "live"-flashing new settings. --- src/tempmodule/meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/tempmodule/meson.build') diff --git a/src/tempmodule/meson.build b/src/tempmodule/meson.build index e974884..b2c88b9 100644 --- a/src/tempmodule/meson.build +++ b/src/tempmodule/meson.build @@ -1,3 +1,4 @@ +fw_filename = 'fw.bin' if get_option('fwbuild') espmake = find_program('espmake') @@ -5,9 +6,9 @@ if get_option('fwbuild') fw_filenames = ['main.ino', 'indicator.c', 'temperature.c', 'indicator.h', 'temperature.h'] fw_sources = files(fw_filenames) fw = custom_target('fw', - output : 'fw.bin', + output : fw_filename, input : fw_sources, - command : [espmake, '-C', sourcedir, '&&', 'cp', '/tmp/mkESP/main_d1_mini/main.bin', '@OUTDIR@/fw.bin']) + command : [espmake, '-C', sourcedir, '&&', 'cp', '/tmp/mkESP/main_d1_mini/main.bin', '@OUTDIR@/' + fw_filename], install : true, install_dir : resource_dir) if get_option('fwflash') esptool = find_program('esptool.py') -- cgit v1.2.3