[<<][arm][>>][..]
Thu Oct 30 18:31:12 EDT 2014

libopencm3 build

[master] tom@zoo:~/pub/git/libopencm3-examples/examples/stm32/f1/other/usb_cdcacm$ OPENCM3_DIR=/home/tom/git/libopencm3 make V=1
Using /home/tom/git/libopencm3 path to library

arm-none-eabi-gcc -Os -g -Wextra -Wshadow -Wimplicit-function-declaration -Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes -fno-common -ffunction-sections -fdata-sections -MD -Wall -Wundef -I/home/tom/git/libopencm3/include -DSTM32F1 -mthumb -mcpu=cortex-m3 -msoft-float -mfix-cortex-m3-ldrd -o cdcacm.o -c cdcacm.c

arm-none-eabi-gcc --static -nostartfiles -L/home/tom/git/libopencm3/lib -Tcdcacm.ld -Wl,-Map=cdcacm.map -Wl,--gc-sections -mthumb -mcpu=cortex-m3 -msoft-float -mfix-cortex-m3-ldrd cdcacm.o -lopencm3_stm32f1 -Wl,--start-group -lc -lgcc -lnosys -Wl,--end-group -o cdcacm.elf


One option per line:

CFLAGS:
-Os
-g
-Wextra
-Wshadow
-Wimplicit-function-declaration
-Wredundant-decls
-Wmissing-prototypes
-Wstrict-prototypes
-fno-common
-ffunction-sections
-fdata-sections
-MD
-Wall
-Wundef
-I/home/tom/git/libopencm3/include
-DSTM32F1
-mthumb
-mcpu=cortex-m3
-msoft-float
-mfix-cortex-m3-ldrd

LDFLAGS
--static
-nostartfiles
-L/home/tom/git/libopencm3/lib
-Tcdcacm.ld
-Wl,-Map=cdcacm.map
-Wl,--gc-sections
-mthumb
-mcpu=cortex-m3
-msoft-float
-mfix-cortex-m3-ldrd
-lopencm3_stm32f1 
-Wl,--start-group
-lc
-lgcc
-lnosys
-Wl,--end-group



EDIT: The -m flags were missing on the linker line.



[Reply][About]
[<<][arm][>>][..]