make: use $(PREFIX)gcc instead of $(PREFIX)-gcc
The leading - makes it rather inconsistent with the majority of other projects around the world. Use the form everyone else uses. To solve this, properly pass prefix to inner makes as was always intended. Fixes: https://github.com/libopencm3/libopencm3/issues/1058
This commit is contained in:
parent
795fe21860
commit
7be50a5e75
5
Makefile
5
Makefile
@ -17,8 +17,7 @@
|
|||||||
## along with this library. If not, see <http://www.gnu.org/licenses/>.
|
## along with this library. If not, see <http://www.gnu.org/licenses/>.
|
||||||
##
|
##
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
PREFIX ?= arm-none-eabi-
|
||||||
#PREFIX ?= arm-elf
|
|
||||||
|
|
||||||
STYLECHECK := scripts/checkpatch.pl
|
STYLECHECK := scripts/checkpatch.pl
|
||||||
STYLECHECKFLAGS := --no-tree -f --terse --mailback
|
STYLECHECKFLAGS := --no-tree -f --terse --mailback
|
||||||
@ -69,7 +68,7 @@ LIB_DIRS:=$(wildcard $(addprefix lib/,$(TARGETS)))
|
|||||||
$(LIB_DIRS): $(IRQ_DEFN_FILES:=.genhdr)
|
$(LIB_DIRS): $(IRQ_DEFN_FILES:=.genhdr)
|
||||||
$(Q)$(RM) .stamp_failure_$(subst /,_,$@)
|
$(Q)$(RM) .stamp_failure_$(subst /,_,$@)
|
||||||
@printf " BUILD $@\n";
|
@printf " BUILD $@\n";
|
||||||
$(Q)$(MAKE) --directory=$@ SRCLIBDIR="$(SRCLIBDIR)" || \
|
$(Q)$(MAKE) --directory=$@ SRCLIBDIR="$(SRCLIBDIR)" PREFIX="$(PREFIX)" || \
|
||||||
echo "Failure building: $@: code: $$?" > .stamp_failure_$(subst /,_,$@)
|
echo "Failure building: $@: code: $$?" > .stamp_failure_$(subst /,_,$@)
|
||||||
|
|
||||||
lib: $(LIB_DIRS)
|
lib: $(LIB_DIRS)
|
||||||
|
@ -24,10 +24,8 @@ SRCLIBDIR ?= ../..
|
|||||||
FAMILY = EZR32WG
|
FAMILY = EZR32WG
|
||||||
|
|
||||||
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
#PREFIX ?= arm-elf
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -22,10 +22,8 @@ LIBNAME = libopencm3_efm32g
|
|||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
FAMILY = EFM32G
|
FAMILY = EFM32G
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
#PREFIX ?= arm-elf
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -22,10 +22,8 @@ LIBNAME = libopencm3_efm32gg
|
|||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
FAMILY = EFM32GG
|
FAMILY = EFM32GG
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
#PREFIX ?= arm-elf
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -24,10 +24,8 @@ LIBNAME = libopencm3_efm32hg
|
|||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
FAMILY = EFM32HG
|
FAMILY = EFM32HG
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
#PREFIX ?= arm-elf
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -23,10 +23,8 @@ LIBNAME = libopencm3_efm32lg
|
|||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
FAMILY = EFM32LG
|
FAMILY = EFM32LG
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
#PREFIX ?= arm-elf
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -22,10 +22,8 @@ LIBNAME = libopencm3_efm32tg
|
|||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
FAMILY = EFM32TG
|
FAMILY = EFM32TG
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
#PREFIX ?= arm-elf
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -24,10 +24,8 @@ SRCLIBDIR ?= ../..
|
|||||||
FAMILY = EFM32WG
|
FAMILY = EFM32WG
|
||||||
|
|
||||||
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
#PREFIX ?= arm-elf
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
LIBNAME = libopencm3_gd32f1x0
|
LIBNAME = libopencm3_gd32f1x0
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
LIBNAME = libopencm3_lm3s
|
LIBNAME = libopencm3_lm3s
|
||||||
SRCLIBDIR ?= ..
|
SRCLIBDIR ?= ..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -22,10 +22,8 @@ LIBNAME = libopencm3_lm4f
|
|||||||
SRCLIBDIR ?= ..
|
SRCLIBDIR ?= ..
|
||||||
|
|
||||||
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
LIBNAME = libopencm3_lpc13xx
|
LIBNAME = libopencm3_lpc13xx
|
||||||
SRCLIBDIR ?= ..
|
SRCLIBDIR ?= ..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
LIBNAME = libopencm3_lpc17xx
|
LIBNAME = libopencm3_lpc17xx
|
||||||
SRCLIBDIR ?= ..
|
SRCLIBDIR ?= ..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -22,10 +22,8 @@
|
|||||||
LIBNAME = libopencm3_lpc43xx_m0
|
LIBNAME = libopencm3_lpc43xx_m0
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
#PREFIX ?= arm-elf
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -O2 -Wall -Wextra -I../../../include -fno-common \
|
TGT_CFLAGS = -O2 -Wall -Wextra -I../../../include -fno-common \
|
||||||
-mcpu=cortex-m0 -mthumb -Wstrict-prototypes \
|
-mcpu=cortex-m0 -mthumb -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DLPC43XX -DLPC43XX_M0
|
-ffunction-sections -fdata-sections -MD -DLPC43XX -DLPC43XX_M0
|
||||||
|
@ -24,10 +24,8 @@ LIBNAME = libopencm3_lpc43xx
|
|||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -O2 \
|
TGT_CFLAGS = -O2 \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -23,10 +23,8 @@ LIBNAME = libopencm3_msp432e4
|
|||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
LIBNAME = libopencm3_sam3a
|
LIBNAME = libopencm3_sam3a
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSAM3A
|
-ffunction-sections -fdata-sections -MD -DSAM3A
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
LIBNAME = libopencm3_sam3n
|
LIBNAME = libopencm3_sam3n
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSAM3N
|
-ffunction-sections -fdata-sections -MD -DSAM3N
|
||||||
|
@ -21,10 +21,8 @@
|
|||||||
LIBNAME = libopencm3_sam3s
|
LIBNAME = libopencm3_sam3s
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSAM3S
|
-ffunction-sections -fdata-sections -MD -DSAM3S
|
||||||
|
@ -21,10 +21,8 @@
|
|||||||
LIBNAME = libopencm3_sam3u
|
LIBNAME = libopencm3_sam3u
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSAM3U
|
-ffunction-sections -fdata-sections -MD -DSAM3U
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
LIBNAME = libopencm3_sam3x
|
LIBNAME = libopencm3_sam3x
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
-mcpu=cortex-m3 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSAM3X
|
-ffunction-sections -fdata-sections -MD -DSAM3X
|
||||||
|
@ -18,11 +18,9 @@
|
|||||||
LIBNAME = libopencm3_sam4l
|
LIBNAME = libopencm3_sam4l
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
|
||||||
FP_FLAGS ?= -msoft-float
|
FP_FLAGS ?= -msoft-float
|
||||||
|
CC = $(PREFIX)gcc
|
||||||
CC = $(PREFIX)-gcc
|
AR = $(PREFIX)ar
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
||||||
-mcpu=cortex-m4 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
-mcpu=cortex-m4 -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSAM4L
|
-ffunction-sections -fdata-sections -MD -DSAM4L
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
LIBNAME = libopencm3_samd
|
LIBNAME = libopencm3_samd
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
TGT_CFLAGS = -Os -Wall -Wextra -I../../../include -fno-common \
|
||||||
-mcpu=cortex-m0plus -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
-mcpu=cortex-m0plus -mthumb $(FP_FLAGS) -Wstrict-prototypes \
|
||||||
-ffunction-sections -fdata-sections -MD -DSAMD
|
-ffunction-sections -fdata-sections -MD -DSAMD
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
LIBNAME = libopencm3_stm32f0
|
LIBNAME = libopencm3_stm32f0
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
#PREFIX ?= arm-elf
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
LIBNAME = libopencm3_stm32f1
|
LIBNAME = libopencm3_stm32f1
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
LIBNAME = libopencm3_stm32f2
|
LIBNAME = libopencm3_stm32f2
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -21,10 +21,8 @@ LIBNAME = libopencm3_stm32f3
|
|||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -22,10 +22,8 @@ LIBNAME = libopencm3_stm32f4
|
|||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -21,10 +21,8 @@
|
|||||||
LIBNAME = libopencm3_stm32f7
|
LIBNAME = libopencm3_stm32f7
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
|
|
||||||
# STM32F7 only supports single precision FPU
|
# STM32F7 only supports single precision FPU
|
||||||
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv5-sp-d16
|
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv5-sp-d16
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
LIBNAME = libopencm3_stm32g0
|
LIBNAME = libopencm3_stm32g0
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
LIBNAME = libopencm3_stm32l0
|
LIBNAME = libopencm3_stm32l0
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
#PREFIX ?= arm-elf
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
LIBNAME = libopencm3_stm32l1
|
LIBNAME = libopencm3_stm32l1
|
||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -21,10 +21,8 @@ LIBNAME = libopencm3_stm32l4
|
|||||||
SRCLIBDIR ?= ../..
|
SRCLIBDIR ?= ../..
|
||||||
|
|
||||||
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -20,10 +20,8 @@
|
|||||||
LIBNAME = libopencm3_swm050
|
LIBNAME = libopencm3_swm050
|
||||||
SRCLIBDIR ?= ..
|
SRCLIBDIR ?= ..
|
||||||
|
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
@ -22,10 +22,8 @@ LIBNAME = libopencm3_vf6xx
|
|||||||
SRCLIBDIR ?= ..
|
SRCLIBDIR ?= ..
|
||||||
|
|
||||||
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
FP_FLAGS ?= -mfloat-abi=hard -mfpu=fpv4-sp-d16
|
||||||
PREFIX ?= arm-none-eabi
|
CC = $(PREFIX)gcc
|
||||||
|
AR = $(PREFIX)ar
|
||||||
CC = $(PREFIX)-gcc
|
|
||||||
AR = $(PREFIX)-ar
|
|
||||||
TGT_CFLAGS = -Os \
|
TGT_CFLAGS = -Os \
|
||||||
-Wall -Wextra -Wimplicit-function-declaration \
|
-Wall -Wextra -Wimplicit-function-declaration \
|
||||||
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
-Wredundant-decls -Wmissing-prototypes -Wstrict-prototypes \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user