From e2a2206e700f2d2ce183de4f8218c25cae64f72f Mon Sep 17 00:00:00 2001 From: Amitesh Singh Date: Sun, 6 Jan 2019 19:57:22 +0530 Subject: [PATCH] correct cpu and cpu_family entries in cross-file.txt --- clean.sh | 1 + cross-file.txt | 4 ++-- meson.build | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100755 clean.sh diff --git a/clean.sh b/clean.sh new file mode 100755 index 0000000..36be326 --- /dev/null +++ b/clean.sh @@ -0,0 +1 @@ +rm -rf ./builddir diff --git a/cross-file.txt b/cross-file.txt index 0c20e46..3e3d602 100644 --- a/cross-file.txt +++ b/cross-file.txt @@ -14,6 +14,6 @@ endian = 'little' [target_machine] system = 'bare-metel' -cpu_family = 'stm32' -cpu = 'STM32F1' +cpu_family = 'arm' +cpu = 'cortex-m3' endian = 'little' diff --git a/meson.build b/meson.build index e2c6c13..be5e55e 100644 --- a/meson.build +++ b/meson.build @@ -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