Files
paparazzi/conf/Makefile.arm-embedded-toolchain
T
Gautier Hattenberger af49fc6049 [build] use proper GDB according to prefix (#2685)
or new multiarch if not found

close #2589
2021-04-07 22:14:11 +02:00

35 lines
784 B
Makefile

# Hey Emacs, this is a -*- makefile -*-
#
# Copyright (C) 2012-2014 Felix Ruess <felix.ruess@gmail.com>
#
# This is the common Makefile for finding the arm compiler
# for bare metal systems like on the ARM7TDMI, cortex M3/4
PREFIX ?= arm-none-eabi
ifeq ($(shell which $(PREFIX)-gcc),)
ifneq ($(MAKECMDGOALS),clean)
$(warning Warning: arm-none-eabi-gcc cross-compiler not found! Some tools might not be able to build correctly)
endif
endif
CC = $(PREFIX)-gcc
CXX = $(PREFIX)-g++
LD = $(PREFIX)-g++
AR = $(PREFIX)-ar
CP = $(PREFIX)-objcopy
DMP = $(PREFIX)-objdump
NM = $(PREFIX)-nm
SIZE = $(PREFIX)-size
STRIP = $(PREFIX)-strip
GDB = $(shell which $(PREFIX)-gdb)
ifeq ($(GDB),)
GDB = $(shell which gdb-multiarch)
endif
# some general commands
RM = rm