mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-05-31 20:38:27 +08:00
+11
-8
@@ -38,17 +38,20 @@ OPT = s
|
|||||||
#OPT = 0
|
#OPT = 0
|
||||||
|
|
||||||
# Programs location
|
# Programs location
|
||||||
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
|
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_BIN_DIR=$(TOOLCHAIN_DIR)/bin
|
||||||
|
GCC_LIB_DIR=$(TOOLCHAIN_DIR)/arm-none-eabi/lib
|
||||||
|
|
||||||
# Define programs and commands.
|
# Define programs and commands.
|
||||||
CC = $(shell which arm-none-eabi-gcc)
|
GCC_BIN_PREFIX=$(GCC_BIN_DIR)/arm-none-eabi
|
||||||
LD = $(shell which arm-none-eabi-gcc)
|
CC = $(GCC_BIN_PREFIX)-gcc
|
||||||
CP = $(shell which arm-none-eabi-objcopy)
|
LD = $(GCC_BIN_PREFIX)-gcc
|
||||||
DMP = $(shell which arm-none-eabi-objdump)
|
CP = $(GCC_BIN_PREFIX)-objcopy
|
||||||
NM = $(shell which arm-none-eabi-nm)
|
DMP = $(GCC_BIN_PREFIX)-objdump
|
||||||
SIZE = $(shell which arm-none-eabi-size)
|
NM = $(GCC_BIN_PREFIX)-nm
|
||||||
|
SIZE = $(GCC_BIN_PREFIX)-size
|
||||||
RM = rm
|
RM = rm
|
||||||
OOCD = $(shell which openocd)
|
OOCD = $(TOOLCHAIN_DIR)/bin/openocd
|
||||||
|
|
||||||
LOADER=/home/poine/work/stm32/stm32loader-a3c51c26ad6c/stm32loader.py
|
LOADER=/home/poine/work/stm32/stm32loader-a3c51c26ad6c/stm32loader.py
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user