-
Notifications
You must be signed in to change notification settings - Fork 91
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·22 lines (17 loc) · 1.19 KB
/
Copy pathbuild.sh
File metadata and controls
executable file
·22 lines (17 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
set -e
mkdir -p build
cd build
# ../../../os_host/library/STM32F10x_StdPeriph_Driver/src/stm32f10x_exti.c
#arm-none-eabi-g++ -Wall -Os -Werror -fno-common -mcpu=cortex-m3 -mthumb -msoft-float -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wno-psabi -DLA104 -MD -D _ARM -D STM32F10X_HD -c
arm-none-eabi-g++ -g -Os -Werror -fno-common -mcpu=cortex-m3 -mthumb -msoft-float -fno-exceptions -fno-rtti -fno-threadsafe-statics -Wno-psabi -D LA104 -D _ARM -D STM32F10X_HD -c \
../main.cpp \
-I../../../os_library/include/ -I ../../../os_host/library/CMSIS/Device/STM32F10x/Include -I ../../../os_host/library/STM32F10x_StdPeriph_Driver/inc -I ../../../os_host/library/CMSIS/Include -I ../../../os_host/library/
arm-none-eabi-gcc -fPIC -mcpu=cortex-m3 -mthumb -o output.elf -nostartfiles -T ../app.lds \
./main.o \
-lbios_la104 -L../../../os_library/build
arm-none-eabi-objdump -d -S output.elf > output.asm
arm-none-eabi-readelf -all output.elf > output.txt
find . -type f -name '*.o' -delete
find . -type f -name '*.d' -delete
../../../../tools/elfstrip/elfstrip output.elf 120keyb.elf