-context_switch_CPU_CPPASRC = bertos/cpu/cortex-m3/hw/crt_cm3.S bertos/cpu/cortex-m3/hw/vectors_cm3.S
-context_switch_CPU_CPPAFLAGS = -g -gdwarf-2 -mthumb -mno-thumb-interwork
-context_switch_CPU_CPPFLAGS = -O0 -g3 -gdwarf-2 -mthumb -mno-thumb-interwork -fno-strict-aliasing -fwrapv -fverbose-asm -Ibertos/cpu/cortex-m3/ -D__ARM_STM32F103RB__
-context_switch_CPU_CSRC = bertos/cpu/cortex-m3/hw/init_cm3.c bertos/cpu/cortex-m3/drv/irq_cm3.c bertos/cpu/cortex-m3/drv/gpio_stm32.c bertos/cpu/cortex-m3/drv/clock_stm32.c
-context_switch_PROGRAMMER_CPU = stm32
-context_switch_CPU_LDFLAGS = -mthumb -mno-thumb-interwork -nostartfiles -Wl,--no-warn-mismatch -T bertos/cpu/cortex-m3/scripts/stm32f103rb_rom.ld
-context_switch_STOPFLASH_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
-context_switch_CPU = cortex-m3
-context_switch_STOPDEBUG_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
-context_switch_DEBUG_SCRIPT = bertos/prg_scripts/arm/debug.sh
-context_switch_FLASH_SCRIPT = bertos/prg_scripts/arm/flash-stm32.sh
-
-include $(context_switch_SRC_PATH)/context_switch_user.mk
+stm32-p103_context_switch_CPU_CPPASRC = bertos/cpu/cortex-m3/hw/crt_cm3.S bertos/cpu/cortex-m3/hw/vectors_cm3.S
+stm32-p103_context_switch_CPU_CPPAFLAGS = -g -gdwarf-2 -mthumb -mno-thumb-interwork
+stm32-p103_context_switch_CPU_CPPFLAGS = -O0 -g3 -gdwarf-2 -mthumb -mno-thumb-interwork -fno-strict-aliasing -fwrapv -fverbose-asm -Ibertos/cpu/cortex-m3/ -D__ARM_STM32F103RB__
+stm32-p103_context_switch_CPU_CSRC = bertos/cpu/cortex-m3/hw/init_cm3.c bertos/cpu/cortex-m3/drv/irq_cm3.c bertos/cpu/cortex-m3/drv/gpio_stm32.c bertos/cpu/cortex-m3/drv/clock_stm32.c
+stm32-p103_context_switch_PROGRAMMER_CPU = stm32
+stm32-p103_context_switch_CPU_LDFLAGS = -mthumb -mno-thumb-interwork -nostartfiles -Wl,--no-warn-mismatch -Wl,-dT bertos/cpu/cortex-m3/scripts/stm32f103rb_rom.ld
+stm32-p103_context_switch_STOPFLASH_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
+stm32-p103_context_switch_CPU = cortex-m3
+stm32-p103_context_switch_STOPDEBUG_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
+stm32-p103_context_switch_DEBUG_SCRIPT = bertos/prg_scripts/arm/debug.sh
+stm32-p103_context_switch_FLASH_SCRIPT = bertos/prg_scripts/arm/flash-stm32.sh
+
+include $(stm32-p103_context_switch_SRC_PATH)/stm32-p103_context_switch_user.mk