mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-05 06:54:49 +08:00
Let lpc21 and stm32 targets search for the compiler instead of using hardwired paths.
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@
|
|||||||
SRC_ARCH = arch/lpc21
|
SRC_ARCH = arch/lpc21
|
||||||
|
|
||||||
# Define programs and commands.
|
# Define programs and commands.
|
||||||
HAVE_ARM_NONE_EABI_GCC := $(wildcard /usr/bin/arm-none-eabi-gcc)
|
HAVE_ARM_NONE_EABI_GCC := $(shell which arm-none-eabi-gcc)
|
||||||
ifeq ($(strip $(HAVE_ARM_NONE_EABI_GCC)),)
|
ifeq ($(strip $(HAVE_ARM_NONE_EABI_GCC)),)
|
||||||
CC = arm-elf-gcc
|
CC = arm-elf-gcc
|
||||||
LD = $(CC)
|
LD = $(CC)
|
||||||
|
|||||||
+1
-1
@@ -38,7 +38,7 @@ OPT = s
|
|||||||
#OPT = 0
|
#OPT = 0
|
||||||
|
|
||||||
# Programs location
|
# Programs location
|
||||||
TOOLCHAIN_DIR=/opt/paparazzi/stm32
|
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_BIN_DIR=$(TOOLCHAIN_DIR)/bin
|
||||||
GCC_LIB_DIR=$(TOOLCHAIN_DIR)/arm-none-eabi/lib
|
GCC_LIB_DIR=$(TOOLCHAIN_DIR)/arm-none-eabi/lib
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user