X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fstm%2FMakefile.defs;h=8ef30521ee4645e63a60afc531ea5841d0abeaf8;hb=01f8df088759ee7e6bc3900a013e0ea4fafaf984;hp=c799231a909e5e9093c85cc35fdad1e2366855c5;hpb=87ca5c9c5f9cea1b9e14468e4694ce6acc21955a;p=fw%2Faltos diff --git a/src/stm/Makefile.defs b/src/stm/Makefile.defs index c799231a..8ef30521 100644 --- a/src/stm/Makefile.defs +++ b/src/stm/Makefile.defs @@ -1,4 +1,4 @@ -vpath % ../stm:../product:../drivers:../core:../util:../kalman:.. +vpath % ../stm:../product:../drivers:../core:../util:../kalman:../aes:.. vpath make-altitude ../util vpath make-kalman ../util vpath kalman.5c ../kalman @@ -7,18 +7,25 @@ vpath load_csv.5c ../kalman vpath matrix.5c ../kalman vpath ao-make-product.5c ../util -CC=arm-none-eabi-gcc -SAT=$(HOME)/sat -SAT_CLIB=$(SAT)/lib/pdclib.a +.SUFFIXES: .elf .ihx + +.elf.ihx: + objcopy -O ihex $*.elf $@ + +SAT=/opt/cortex +CC=$(SAT)/bin/arm-none-eabi-gcc +SAT_CLIB=$(SAT)/lib/pdclib-cortex-m3.a SAT_CFLAGS=-I$(SAT)/include ifndef VERSION include ../Version endif -AO_CFLAGS=-I. -I../stm -I../core -I.. +AO_CFLAGS=-I. -I../stm -I../core -I../drivers -I.. STM_CFLAGS=-std=gnu99 -mlittle-endian -mcpu=cortex-m3 -mthumb -ffreestanding -nostdlib $(AO_CFLAGS) $(SAT_CFLAGS) +LDFLAGS=-L../stm -Wl,-Taltos.ld + NICKLE=nickle V=0