Move selection of linker script in meson.build

Now the linker script was moved from cross_arm.txt into meson.build, so
that the same cross_arm.txt can be used for both the MD380 and the GD77.
replace/2bbdcc4d8632b05bcd115e11818ad2f0c79ee627
Niccolò Izzo 2020-11-12 22:10:13 +01:00
rodzic a18a11837c
commit 6445eb0950
2 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -28,7 +28,6 @@ c_link_args = [
'-Wl,--gc-sections', '-Wl,--gc-sections',
'-Wl,-Map,main.map', '-Wl,-Map,main.map',
'-nostdlib', '-nostdlib',
'-Wl,-T../platform/mcu/STM32F4xx/linker_script.ld',
'-Wl,--start-group', '-Wl,--start-group',
'-lc', '-lc',
'-lgcc', '-lgcc',

Wyświetl plik

@ -188,11 +188,13 @@ 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',
'include_directories': md380_inc} 'include_directories': md380_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',
'include_directories': mduv380_inc} 'include_directories': mduv380_inc}
## ##