Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,22 @@ ifeq ($(ARCH),STM32F0)
FP_FLAGS ?= -msoft-float
ARCH_FLAGS = -mthumb -mcpu=cortex-m0 $(FP_FLAGS)
OOCD_BOARD ?= target/stm32f0x.cfg
OPENCM3_TARGET = "stm32/f0"
endif
ifeq ($(ARCH),STM32F1)
LIBNAME = opencm3_stm32f1
DEFS += -DSTM32F1
FP_FLAGS ?= -msoft-float
ARCH_FLAGS = -mthumb -mcpu=cortex-m3 $(FP_FLAGS) -mfix-cortex-m3-ldrd
OOCD_BOARD ?= target/stm32f1x.cfg
OPENCM3_TARGET = "stm32/f1"
endif

LIBNAME ?= opencm3_stm32f0
DEFS ?= -DSTM32F0
FP_FLAGS ?= -msoft-float
ARCH_FLAGS ?= -mthumb -mcpu=cortex-m0 $(FP_FLAGS)
OPENCM3_TARGET ?= "stm32/f0"

####################################################################
# Semihosting support
Expand Down Expand Up @@ -156,7 +159,7 @@ $(OPENCM3_DIR)/Makefile:
$(Q)git submodule update --init $(OPENCM3_DIR)

$(LIB_DIR)/lib$(LIBNAME).a: $(OPENCM3_DIR)/Makefile
$(Q)$(MAKE) -C $(OPENCM3_DIR)
$(Q)$(MAKE) -C $(OPENCM3_DIR) TARGETS=$(OPENCM3_TARGET)

locm3: $(LIB_DIR)/lib$(LIBNAME).a

Expand Down