summaryrefslogtreecommitdiffstats
path: root/src/tempmodule/meson.build
diff options
context:
space:
mode:
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')