-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathbuild.sh
executable file
·23 lines (17 loc) · 896 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
set -e
mkdir -p build
cd build
arm-none-eabi-g++ -Os -Werror -fno-common -mcpu=cortex-m3 -mthumb -msoft-float -fno-exceptions -fno-rtti -fno-threadsafe-statics -fno-use-cxa-atexit -Wno-psabi -DLA104 -DARDUINO=1000 -MD -D _ARM -D STM32F10X_HD -D STM32F10X_HD -c \
../source/main.cpp \
../source/platform.cpp \
../source/radsens/radSens1v2.cpp \
-I../../../os_library/include/ -I../source/arduino/
arm-none-eabi-gcc -fPIC -mcpu=cortex-m3 -mthumb -o output.elf -nostartfiles -T ../source/app.lds \
./main.o \
./radSens1v2.o ./platform.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 109radse.elf