kopia lustrzana https://github.com/OpenRTX/OpenRTX
Add memory size info linker flag
rodzic
bf24c31be7
commit
3310b5f730
33
meson.build
33
meson.build
|
@ -231,17 +231,20 @@ linux_opts = {'sources': linux_src,
|
||||||
|
|
||||||
md380_opts = {'sources': md380_src,
|
md380_opts = {'sources': md380_src,
|
||||||
'c_args': md380_args,
|
'c_args': md380_args,
|
||||||
'link_args' : '-Wl,-T../platform/mcu/STM32F4xx/linker_script.ld',
|
'link_args' : ['-Wl,-T../platform/mcu/STM32F4xx/linker_script.ld',
|
||||||
|
'-Wl,--print-memory-usage'],
|
||||||
'include_directories': md380_inc}
|
'include_directories': md380_inc}
|
||||||
|
|
||||||
md390_opts = {'sources': md390_src,
|
md390_opts = {'sources': md390_src,
|
||||||
'c_args': md390_args,
|
'c_args': md390_args,
|
||||||
'link_args' : '-Wl,-T../platform/mcu/STM32F4xx/linker_script.ld',
|
'link_args' : ['-Wl,-T../platform/mcu/STM32F4xx/linker_script.ld',
|
||||||
|
'-Wl,--print-memory-usage'],
|
||||||
'include_directories': md390_inc}
|
'include_directories': md390_inc}
|
||||||
|
|
||||||
mduv380_opts = {'sources': mduv380_src,
|
mduv380_opts = {'sources': mduv380_src,
|
||||||
'c_args': mduv380_args,
|
'c_args': mduv380_args,
|
||||||
'link_args' : '-Wl,-T../platform/mcu/STM32F4xx/linker_script.ld',
|
'link_args' : ['-Wl,-T../platform/mcu/STM32F4xx/linker_script.ld',
|
||||||
|
'-Wl,--print-memory-usage'],
|
||||||
'include_directories': mduv380_inc}
|
'include_directories': mduv380_inc}
|
||||||
|
|
||||||
##
|
##
|
||||||
|
@ -288,18 +291,18 @@ foreach t : targets
|
||||||
input : exe,
|
input : exe,
|
||||||
command : [objcopy, '-O', 'binary', '@INPUT@', '@OUTPUT@'])
|
command : [objcopy, '-O', 'binary', '@INPUT@', '@OUTPUT@'])
|
||||||
|
|
||||||
wrap = custom_target(name+'_wrap',
|
wrap = custom_target(name+'_wrap',
|
||||||
output : name+'_wrap',
|
output : name+'_wrap',
|
||||||
input : bin,
|
input : bin,
|
||||||
command : [radio_tool,
|
command : [radio_tool,
|
||||||
'--wrap',
|
'--wrap',
|
||||||
'-o', '@OUTPUT@',
|
'-o', '@OUTPUT@',
|
||||||
'-r', t['wrap'],
|
'-r', t['wrap'],
|
||||||
'-s', t['load_addr']+':@INPUT@'])
|
'-s', t['load_addr']+':@INPUT@'])
|
||||||
|
|
||||||
custom_target(name+'_flash',
|
custom_target(name+'_flash',
|
||||||
input : wrap,
|
input : wrap,
|
||||||
output : name+'_flash',
|
output : name+'_flash',
|
||||||
command : [radio_tool, '-d', '0', '-f', '-i', '@INPUT@'])
|
command : [radio_tool, '-d', '0', '-f', '-i', '@INPUT@'])
|
||||||
endif
|
endif
|
||||||
endforeach
|
endforeach
|
||||||
|
|
Ładowanie…
Reference in New Issue