X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=boards%2Fstm32-p103%2Ftemplates%2Fstm32-p103_empty%2Fstm32-p103_empty.mk;h=d8d255bedcac707653fff18ad5120ed29f3a9789;hb=1a8a2b9b57118be3f52d1261ebefac3875e67bcf;hp=3010634fd9a0451fc682e5dfbcb4ce15b9f8d5d1;hpb=871052ad067d8afb08745171e7ba4e13a71bc45f;p=bertos.git diff --git a/boards/stm32-p103/templates/stm32-p103_empty/stm32-p103_empty.mk b/boards/stm32-p103/templates/stm32-p103_empty/stm32-p103_empty.mk index 3010634f..d8d255be 100644 --- a/boards/stm32-p103/templates/stm32-p103_empty/stm32-p103_empty.mk +++ b/boards/stm32-p103/templates/stm32-p103_empty/stm32-p103_empty.mk @@ -1,92 +1,88 @@ # # Wizard autogenerated makefile. -# DO NOT EDIT, use the empty_user.mk file instead. +# DO NOT EDIT, use the stm32-p103_empty_user.mk file instead. # # Constants automatically defined by the selected modules -empty_DEBUG = 1 +stm32-p103_empty_DEBUG = 1 # Our target application -TRG += empty +TRG += stm32-p103_empty -empty_PREFIX = "arm-none-eabi-" +stm32-p103_empty_PREFIX = "arm-none-eabi-" -empty_SUFFIX = "" +stm32-p103_empty_SUFFIX = "" -empty_SRC_PATH = boards/stm32-p103/templates/empty +stm32-p103_empty_SRC_PATH = boards/stm32-p103/templates/stm32-p103_empty -empty_HW_PATH = boards/stm32-p103 +stm32-p103_empty_HW_PATH = boards/stm32-p103 -# Files automatically generated by the wizard. DO NOT EDIT, USE empty_USER_CSRC INSTEAD! -empty_WIZARD_CSRC = \ - bertos/cpu/cortex-m3/hw/switch_ctx_cm3.c \ - bertos/mware/event.c \ - bertos/kern/sem.c \ +# Files automatically generated by the wizard. DO NOT EDIT, USE stm32-p103_empty_USER_CSRC INSTEAD! +stm32-p103_empty_WIZARD_CSRC = \ bertos/cpu/cortex-m3/drv/timer_cm3.c \ - bertos/struct/heap.c \ - bertos/mware/formatwr.c \ bertos/drv/timer.c \ bertos/io/kfile.c \ - bertos/kern/proc.c \ + bertos/mware/event.c \ + bertos/mware/formatwr.c \ bertos/mware/hex.c \ - bertos/kern/signal.c \ + bertos/struct/heap.c \ # -# Files automatically generated by the wizard. DO NOT EDIT, USE empty_USER_PCSRC INSTEAD! -empty_WIZARD_PCSRC = \ +# Files automatically generated by the wizard. DO NOT EDIT, USE stm32-p103_empty_USER_PCSRC INSTEAD! +stm32-p103_empty_WIZARD_PCSRC = \ \ # -# Files automatically generated by the wizard. DO NOT EDIT, USE empty_USER_CPPASRC INSTEAD! -empty_WIZARD_CPPASRC = \ +# Files automatically generated by the wizard. DO NOT EDIT, USE stm32-p103_empty_USER_CPPASRC INSTEAD! +stm32-p103_empty_WIZARD_CPPASRC = \ \ # -# Files automatically generated by the wizard. DO NOT EDIT, USE empty_USER_CXXSRC INSTEAD! -empty_WIZARD_CXXSRC = \ +# Files automatically generated by the wizard. DO NOT EDIT, USE stm32-p103_empty_USER_CXXSRC INSTEAD! +stm32-p103_empty_WIZARD_CXXSRC = \ \ # -# Files automatically generated by the wizard. DO NOT EDIT, USE empty_USER_ASRC INSTEAD! -empty_WIZARD_ASRC = \ +# Files automatically generated by the wizard. DO NOT EDIT, USE stm32-p103_empty_USER_ASRC INSTEAD! +stm32-p103_empty_WIZARD_ASRC = \ \ # -empty_CPPFLAGS = -D'CPU_FREQ=(72000000UL)' -D'ARCH=(ARCH_DEFAULT)' -D'WIZ_AUTOGEN' -I$(empty_HW_PATH) -I$(empty_SRC_PATH) $(empty_CPU_CPPFLAGS) $(empty_USER_CPPFLAGS) +stm32-p103_empty_CPPFLAGS = -D'CPU_FREQ=(72000000UL)' -D'ARCH=(ARCH_DEFAULT)' -D'WIZ_AUTOGEN' -I$(stm32-p103_empty_HW_PATH) -I$(stm32-p103_empty_SRC_PATH) $(stm32-p103_empty_CPU_CPPFLAGS) $(stm32-p103_empty_USER_CPPFLAGS) # Automatically generated by the wizard. PLEASE DO NOT EDIT! -empty_LDFLAGS = $(empty_CPU_LDFLAGS) $(empty_WIZARD_LDFLAGS) $(empty_USER_LDFLAGS) +stm32-p103_empty_LDFLAGS = $(stm32-p103_empty_CPU_LDFLAGS) $(stm32-p103_empty_WIZARD_LDFLAGS) $(stm32-p103_empty_USER_LDFLAGS) # Automatically generated by the wizard. PLEASE DO NOT EDIT! -empty_CPPAFLAGS = $(empty_CPU_CPPAFLAGS) $(empty_WIZARD_CPPAFLAGS) $(empty_USER_CPPAFLAGS) +stm32-p103_empty_CPPAFLAGS = $(stm32-p103_empty_CPU_CPPAFLAGS) $(stm32-p103_empty_WIZARD_CPPAFLAGS) $(stm32-p103_empty_USER_CPPAFLAGS) # Automatically generated by the wizard. PLEASE DO NOT EDIT! -empty_CSRC = $(empty_CPU_CSRC) $(empty_WIZARD_CSRC) $(empty_USER_CSRC) +stm32-p103_empty_CSRC = $(stm32-p103_empty_CPU_CSRC) $(stm32-p103_empty_WIZARD_CSRC) $(stm32-p103_empty_USER_CSRC) # Automatically generated by the wizard. PLEASE DO NOT EDIT! -empty_PCSRC = $(empty_CPU_PCSRC) $(empty_WIZARD_PCSRC) $(empty_USER_PCSRC) +stm32-p103_empty_PCSRC = $(stm32-p103_empty_CPU_PCSRC) $(stm32-p103_empty_WIZARD_PCSRC) $(stm32-p103_empty_USER_PCSRC) # Automatically generated by the wizard. PLEASE DO NOT EDIT! -empty_CPPASRC = $(empty_CPU_CPPASRC) $(empty_WIZARD_CPPASRC) $(empty_USER_CPPASRC) +stm32-p103_empty_CPPASRC = $(stm32-p103_empty_CPU_CPPASRC) $(stm32-p103_empty_WIZARD_CPPASRC) $(stm32-p103_empty_USER_CPPASRC) # Automatically generated by the wizard. PLEASE DO NOT EDIT! -empty_CXXSRC = $(empty_CPU_CXXSRC) $(empty_WIZARD_CXXSRC) $(empty_USER_CXXSRC) +stm32-p103_empty_CXXSRC = $(stm32-p103_empty_CPU_CXXSRC) $(stm32-p103_empty_WIZARD_CXXSRC) $(stm32-p103_empty_USER_CXXSRC) # Automatically generated by the wizard. PLEASE DO NOT EDIT! -empty_ASRC = $(empty_CPU_ASRC) $(empty_WIZARD_ASRC) $(empty_USER_ASRC) +stm32-p103_empty_ASRC = $(stm32-p103_empty_CPU_ASRC) $(stm32-p103_empty_WIZARD_ASRC) $(stm32-p103_empty_USER_ASRC) # CPU specific flags and options, defined in the CPU definition files. # Automatically generated by the wizard. PLEASE DO NOT EDIT! -empty_CPU_CPPASRC = bertos/cpu/cortex-m3/hw/crt_cm3.S bertos/cpu/cortex-m3/hw/vectors_cm3.S -empty_CPU_CPPAFLAGS = -g -gdwarf-2 -mthumb -mno-thumb-interwork -empty_CPU_CPPFLAGS = -O0 -g3 -gdwarf-2 -mthumb -mno-thumb-interwork -fno-strict-aliasing -fwrapv -fverbose-asm -Ibertos/cpu/cortex-m3/ -D__ARM_STM32P103__ -empty_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 -empty_PROGRAMMER_CPU = stm32 -empty_CPU_LDFLAGS = -mthumb -mno-thumb-interwork -nostartfiles -Wl,--no-warn-mismatch -T bertos/cpu/cortex-m3/scripts/stm32p103_rom.ld -empty_STOPFLASH_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh -empty_CPU = cortex-m3 -empty_STOPDEBUG_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh -empty_DEBUG_SCRIPT = bertos/prg_scripts/arm/debug.sh -empty_FLASH_SCRIPT = bertos/prg_scripts/arm/flash-stm32.sh - -include $(empty_SRC_PATH)/empty_user.mk +stm32-p103_empty_CPU_CPPASRC = bertos/cpu/cortex-m3/hw/crt_cm3.S bertos/cpu/cortex-m3/hw/vectors_cm3.S +stm32-p103_empty_CPU_CPPAFLAGS = -g -gdwarf-2 -mthumb -mno-thumb-interwork +stm32-p103_empty_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_empty_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_empty_PROGRAMMER_CPU = stm32 +stm32-p103_empty_CPU_LDFLAGS = -mthumb -mno-thumb-interwork -nostartfiles -Wl,--no-warn-mismatch -Wl,-dT bertos/cpu/cortex-m3/scripts/stm32f103rb_rom.ld +stm32-p103_empty_STOPFLASH_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh +stm32-p103_empty_CPU = cortex-m3 +stm32-p103_empty_STOPDEBUG_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh +stm32-p103_empty_DEBUG_SCRIPT = bertos/prg_scripts/arm/debug.sh +stm32-p103_empty_FLASH_SCRIPT = bertos/prg_scripts/arm/flash-stm32.sh + +include $(stm32-p103_empty_SRC_PATH)/stm32-p103_empty_user.mk