From a7652cebf2603007e01d3af166a5c17596e8f207 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 29 Nov 2011 14:31:31 -0500 Subject: Add build support for targeting multiple STM32 series. Add an MCU_SERIES variable to each of the files under support/make/board-includes, which declares the series as "stm32f1" in each case. Use this in target-config.mk when determining LD_SERIES_PATH (with a hack since we only support performance line) and LIBMAPLE_MODULE_SERIES. We must move support/ld/stm32/series/f1 to .../series/stm32f1 as a side-effect. Adding support for other series (e.g. "stm32f2") should now be a matter of filling in the contents of libmaple// and support/ld/stm32// appropriately (along with moving the rest of the nonportable code out of the libmaple core and into the STM32F1 series submodule). Signed-off-by: Marti Bolivar --- support/make/board-includes/maple_mini.mk | 1 + 1 file changed, 1 insertion(+) (limited to 'support/make/board-includes/maple_mini.mk') diff --git a/support/make/board-includes/maple_mini.mk b/support/make/board-includes/maple_mini.mk index b1afa4f..4a3e2ab 100644 --- a/support/make/board-includes/maple_mini.mk +++ b/support/make/board-includes/maple_mini.mk @@ -4,3 +4,4 @@ ERROR_LED_PORT := GPIOB ERROR_LED_PIN := 1 DENSITY := STM32_MEDIUM_DENSITY TARGET_FLAGS += -D$(DENSITY) +MCU_SERIES := stm32f1 -- cgit v1.2.3