Making STM32 builds work.

This commit is contained in:
Bernard Davison
2011-01-18 18:58:10 +11:00
parent 8117e93683
commit 648c82016d
+8 -11
View File
@@ -38,20 +38,17 @@ OPT = s
#OPT = 0 #OPT = 0
# Programs location # Programs location
TOOLCHAIN_DIR=$(shell find -L /opt/paparazzi/stm32 ~/sat -maxdepth 1 -type d -name arm-none-eabi 2>/dev/null | head -n 1 | xargs dirname ) GCC_LIB_DIR=$(shell find -L /opt/paparazzi/stm32 ~/sat /opt/local -maxdepth 1 -type d -name arm-none-eabi 2>/dev/null | head -n 1 | xargs dirname )/arm-none-eabi/lib
GCC_BIN_DIR=$(TOOLCHAIN_DIR)/bin
GCC_LIB_DIR=$(TOOLCHAIN_DIR)/arm-none-eabi/lib
# Define programs and commands. # Define programs and commands.
GCC_BIN_PREFIX=$(GCC_BIN_DIR)/arm-none-eabi CC = $(shell which arm-none-eabi-gcc)
CC = $(GCC_BIN_PREFIX)-gcc LD = $(shell which arm-none-eabi-gcc)
LD = $(GCC_BIN_PREFIX)-gcc CP = $(shell which arm-none-eabi-objcopy)
CP = $(GCC_BIN_PREFIX)-objcopy DMP = $(shell which arm-none-eabi-objdump)
DMP = $(GCC_BIN_PREFIX)-objdump NM = $(shell which arm-none-eabi-nm)
NM = $(GCC_BIN_PREFIX)-nm SIZE = $(shell which arm-none-eabi-size)
SIZE = $(GCC_BIN_PREFIX)-size
RM = rm RM = rm
OOCD = $(TOOLCHAIN_DIR)/bin/openocd OOCD = $(shell which openocd)
LOADER=/home/poine/work/stm32/stm32loader-a3c51c26ad6c/stm32loader.py LOADER=/home/poine/work/stm32/stm32loader-a3c51c26ad6c/stm32loader.py