kopia lustrzana https://github.com/OpenRTX/OpenRTX
meson.build: Make radio_tool and objcopy optional
rodzic
aafa67c176
commit
41c4dfa0bc
|
@ -180,11 +180,13 @@ foreach t : targets
|
||||||
|
|
||||||
if t['flashable']
|
if t['flashable']
|
||||||
|
|
||||||
|
if objcopy.found()
|
||||||
bin = custom_target(name+'_bin',
|
bin = custom_target(name+'_bin',
|
||||||
output : name+'_bin',
|
output : name+'_bin',
|
||||||
input : exe,
|
input : exe,
|
||||||
command : [objcopy, '-O', 'binary', '@INPUT@', '@OUTPUT@'])
|
command : [objcopy, '-O', 'binary', '@INPUT@', '@OUTPUT@'])
|
||||||
|
|
||||||
|
if radio_tool.found()
|
||||||
wrap = custom_target(name+'_wrap',
|
wrap = custom_target(name+'_wrap',
|
||||||
output : name+'_wrap',
|
output : name+'_wrap',
|
||||||
input : bin,
|
input : bin,
|
||||||
|
@ -199,4 +201,6 @@ foreach t : targets
|
||||||
output : name+'_flash',
|
output : name+'_flash',
|
||||||
command : [radio_tool, '-d', '0', '-f', '-i', '@INPUT@'])
|
command : [radio_tool, '-d', '0', '-f', '-i', '@INPUT@'])
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
Ładowanie…
Reference in New Issue