Skip to content

Commit

Permalink
correct cpu and cpu_family entries in cross-file.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
amitesh-singh committed Jan 6, 2019
1 parent 74f9119 commit e2a2206
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rm -rf ./builddir
4 changes: 2 additions & 2 deletions cross-file.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ endian = 'little'

[target_machine]
system = 'bare-metel'
cpu_family = 'stm32'
cpu = 'STM32F1'
cpu_family = 'arm'
cpu = 'cortex-m3'
endian = 'little'
5 changes: 3 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,12 @@ run_target('upload', command: [stflash, 'write', exe.full_path() + '.hex', '0x08

if meson.is_cross_build()
message('cross compiling for ' + cputype)
message(' \n ninja - generates elf file.
message('''
ninja - generates elf file.
ninja hex - generates hex file.
ninja upload - upload hex file to stm32 via stlink programmer.
ninja probe - probe stlink programmer.
ninja size - gives the summary of hex file size.
(C) Amitesh Singh ')
(C) Amitesh Singh''')
endif

0 comments on commit e2a2206

Please sign in to comment.