clang build support

Supposed to be used with https://github.com/ARM-software/LLVM-embedded-toolchain-for-Arm
+ distro provided binutils-arm-none-eabi package, might provide better and more reliable
binary sizes, especially for the bootloader.

Just run USE_CLANG=1 make

Change-Id: I1a19f40d44797efad5c46121e73115ed738a095b
This commit is contained in:
Eric Wild
2021-10-20 16:42:36 +02:00
parent af6ae8b8dd
commit a65fb1e319
2 changed files with 30 additions and 11 deletions

View File

@@ -151,8 +151,7 @@ WEAK void HardFault_Handler( void )
" mrseq r0, msp \n"
" mrsne r0, psp \n"
//" ldr r1, [r0, #24] \n"
" b hard_fault_handler_c\n"
".syntax divided \n");
" b hard_fault_handler_c\n");
}
/**