Browse Source

Makefile.include: Set PREFIX if not set

pr/gpio
Joakim Nohlgård 7 years ago
parent
commit
cad5f08b56
  1. 4
      Makefile.include
  2. 4
      cpu/Makefile.include.cortexm_common

4
Makefile.include

@ -159,6 +159,10 @@ endif
export TOOLCHAIN
# default toolchain prefix, defaults to target triple followed by a dash, you
# will most likely not need to touch this.
export PREFIX ?= $(if $(TARGET_ARCH),$(TARGET_ARCH)-)
# Import all toolchain settings
include $(RIOTCPU)/Makefile.include.$(TOOLCHAIN)

4
cpu/Makefile.include.cortexm_common

@ -1,10 +1,6 @@
# Target triple for the build. Use arm-none-eabi if you are unsure.
export TARGET_ARCH ?= arm-none-eabi
# default toolchain prefix, defaults to target triple followed by a dash, you
# will most likely not need to touch this.
export PREFIX ?= $(if $(TARGET_ARCH),$(TARGET_ARCH)-)
# define build specific options
export CFLAGS_CPU = -mcpu=$(MCPU) -mlittle-endian -mthumb $(CFLAGS_FPU)
ifneq (llvm,$(TOOLCHAIN))

Loading…
Cancel
Save