-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathbuild.sh
executable file
·22 lines (15 loc) · 934 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
#https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads
mkdir -p build
cd build
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 -c \
../main.cpp \
../sensor/OneWire.cpp \
../../../os_host/source/framework/Wnd.cpp \
../../../os_host/source/framework/Serialize.cpp \
-I../../../os_library/include/
#arm-none-eabi-gcc -fPIC -mcpu=cortex-m3 -mthumb -o output.elf -nostartfiles -Wl,--unresolved-symbols=ignore-all -T ../app.lds ./main.o
arm-none-eabi-gcc -fPIC -mcpu=cortex-m3 -mthumb -o output.elf -nostartfiles -T ../app.lds ./main.o ./Wnd.o ./OneWire.o ./Serialize.o -lbios_la104 -lm -L../../../os_library/build
arm-none-eabi-objdump -d -S output.elf > output.asm
find . -type f -name '*.o' -delete
find . -type f -name '*.d' -delete
../../../../tools/elfstrip/elfstrip output.elf 33temper.elf