summaryrefslogtreecommitdiffstats
path: root/src/tempmodule/meson.build
diff options
context:
space:
mode:
authorGravatar Gediminas Jakutis <gediminas@varciai.lt> 2018-05-19 12:02:08 +0300
committerGravatar Gediminas Jakutis <gediminas@varciai.lt> 2018-05-19 12:02:08 +0300
commit03b7473d4faddcb87a5e82205a42028768e7c177 (patch)
tree8c21b9d4ef03a82740fc63f7b0512200dbdd4a0d /src/tempmodule/meson.build
parent224585cfb9502534032078f4f059588185490c09 (diff)
downloadcoffeetemp-03b7473d4faddcb87a5e82205a42028768e7c177.tar.gz
coffeetemp-03b7473d4faddcb87a5e82205a42028768e7c177.tar.bz2
coffeetemp-03b7473d4faddcb87a5e82205a42028768e7c177.zip
add support for "live"-flashing new settings.
Diffstat (limited to 'src/tempmodule/meson.build')
-rw-r--r--src/tempmodule/meson.build5
1 files changed, 3 insertions, 2 deletions
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')