[gentlenav] r3657 committed - MatrixPilot_helicalTurns: move the makefile support modules into a new...

4 views
Skip to first unread message

gent...@googlecode.com

unread,
Jun 15, 2015, 4:09:43 AM6/15/15
to uavdevboa...@googlegroups.com
Revision: 3657
Author: robert.d...@gmail.com
Date: Mon Jun 15 08:08:57 2015 UTC
Log: MatrixPilot_helicalTurns: move the makefile support modules into
a new home under ./Tools, second pass after tortoise fail..
https://code.google.com/p/gentlenav/source/detail?r=3657

Added:
/branches/MatrixPilot_helicalTurns/Tools/makefiles
/branches/MatrixPilot_helicalTurns/Tools/makefiles/device-AUAV3.mk
/branches/MatrixPilot_helicalTurns/Tools/makefiles/device-PX4.mk
/branches/MatrixPilot_helicalTurns/Tools/makefiles/device-SIL.mk
/branches/MatrixPilot_helicalTurns/Tools/makefiles/device-SILSIM.mk
/branches/MatrixPilot_helicalTurns/Tools/makefiles/device-UDB4.mk
/branches/MatrixPilot_helicalTurns/Tools/makefiles/device-UDB5.mk
/branches/MatrixPilot_helicalTurns/Tools/makefiles/target-LedTest.mk
/branches/MatrixPilot_helicalTurns/Tools/makefiles/target-MatrixPilot.mk
/branches/MatrixPilot_helicalTurns/Tools/makefiles/target-RollPitchYaw.mk
/branches/MatrixPilot_helicalTurns/Tools/makefiles/toolchain-ARM.mk
/branches/MatrixPilot_helicalTurns/Tools/makefiles/toolchain-C30.mk
/branches/MatrixPilot_helicalTurns/Tools/makefiles/toolchain-GCC.mk
/branches/MatrixPilot_helicalTurns/Tools/makefiles/toolchain-XC16.mk
Deleted:
/branches/MatrixPilot_helicalTurns/device-AUAV3.mk
/branches/MatrixPilot_helicalTurns/device-PX4.mk
/branches/MatrixPilot_helicalTurns/device-SIL.mk
/branches/MatrixPilot_helicalTurns/device-SILSIM.mk
/branches/MatrixPilot_helicalTurns/device-UDB4.mk
/branches/MatrixPilot_helicalTurns/device-UDB5.mk
/branches/MatrixPilot_helicalTurns/target-LedTest.mk
/branches/MatrixPilot_helicalTurns/target-MatrixPilot.mk
/branches/MatrixPilot_helicalTurns/target-RollPitchYaw.mk
/branches/MatrixPilot_helicalTurns/toolchain-ARM.mk
/branches/MatrixPilot_helicalTurns/toolchain-C30.mk
/branches/MatrixPilot_helicalTurns/toolchain-GCC.mk
/branches/MatrixPilot_helicalTurns/toolchain-XC16.mk

=======================================
--- /dev/null
+++ /branches/MatrixPilot_helicalTurns/Tools/makefiles/device-AUAV3.mk Mon
Jun 15 08:08:57 2015 UTC
@@ -0,0 +1,12 @@
+# this file is included from makefile
+
+#TOOLCHAIN ?= C30
+TOOLCHAIN ?= XC16
+TARGET_TYPE := hex
+CPU := 33EP512MU810
+
+modules += libUDB libVectorMatrix libFlashFS Microchip
+incpath += Microchip Microchip/Include libVectorMatrix
+#cfgpath := Config
+
+#defines += USE_USB USE_CDC USE_MSD USE_FILESYS
=======================================
--- /dev/null
+++ /branches/MatrixPilot_helicalTurns/Tools/makefiles/device-PX4.mk Mon
Jun 15 08:08:57 2015 UTC
@@ -0,0 +1,18 @@
+# this file is included from makefile
+
+TOOLCHAIN ?= ARM
+TARGET_TYPE := px4
+ARCH := armv7e-m
+CPU := cortex-m4
+FPU := fpv4-sp-d16
+TARGET_ARCH := -mcpu=$(CPU) -march=$(ARCH) -mfpu=$(FPU) -mfloat-abi=hard
-mthumb -mlong-calls
+#TARGET_ARCH := -mcpu=$(CPU) -march=$(ARCH) -mfpu=$(FPU) -mfloat-abi=hard
-mthumb-interwork -mlong-calls
+
+modules += libSTM
+
+#incpath := Config FreeRTOS\include libUDB libSTM libSTM\inc libSTM\src
libSTM\cmsis libSTM\Drivers
libSTM\Drivers\CMSIS\Device\ST\STM32F4xx\Include
libSTM\Drivers\CMSIS\Include libSTM\Drivers\STM32F4xx_HAL_Driver\Inc
libSTM\Middlewares libSTM\Middlewares\Third_Party\FreeRTOS\Source\include
libSTM\Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS
libSTM\Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F
+#incpath := Config FreeRTOS/include libUDB libSTM
+incpath += libSTM
+#cfgpath := Config
+
+defines += ARM_MATH_CM4 __FPU_USED STM32F401RE STM32F4XX
USE_STDPERIPH_DRIVER STM32F401xE
=======================================
--- /dev/null
+++ /branches/MatrixPilot_helicalTurns/Tools/makefiles/device-SIL.mk Mon
Jun 15 08:08:57 2015 UTC
@@ -0,0 +1,13 @@
+# this file is included from makefile
+
+TOOLCHAIN := GCC
+ifeq ($(OS),Windows_NT)
+TARGET_TYPE := exe
+else
+TARGET_TYPE := out
+endif
+CPU :=
+
+modules += Tools/MatrixPilot-SIL
+incpath +=
+#cfgpath := Config
=======================================
--- /dev/null
+++ /branches/MatrixPilot_helicalTurns/Tools/makefiles/device-SILSIM.mk Mon
Jun 15 08:08:57 2015 UTC
@@ -0,0 +1,13 @@
+# this file is included from makefile
+
+TOOLCHAIN := GCC
+ifeq ($(OS),Windows_NT)
+TARGET_TYPE := exe
+else
+TARGET_TYPE := out
+endif
+CPU :=
+
+modules += Tools/MatrixPilot-SIL
+incpath +=
+#cfgpath := Config
=======================================
--- /dev/null
+++ /branches/MatrixPilot_helicalTurns/Tools/makefiles/device-UDB4.mk Mon
Jun 15 08:08:57 2015 UTC
@@ -0,0 +1,15 @@
+# this file is included from makefile
+
+TOOLCHAIN ?= XC16
+TARGET_TYPE := hex
+CPU := 33FJ256GP710A
+
+modules += libUDB libVectorMatrix
+incpath += Microchip Microchip/Include libVectorMatrix
+#cfgpath := Config
+
+defines += NOFS=1
+
+# mod_list
+# inc_list
+# def_list
=======================================
--- /dev/null
+++ /branches/MatrixPilot_helicalTurns/Tools/makefiles/device-UDB5.mk Mon
Jun 15 08:08:57 2015 UTC
@@ -0,0 +1,11 @@
+# this file is included from makefile
+
+TOOLCHAIN ?= XC16
+TARGET_TYPE := hex
+CPU := 33FJ256GP710A
+
+modules += libUDB libVectorMatrix
+incpath += Microchip Microchip/Include libVectorMatrix
+#cfgpath := Config
+
+defines += NOFS=1
=======================================
--- /dev/null
+++ /branches/MatrixPilot_helicalTurns/Tools/makefiles/target-LedTest.mk
Mon Jun 15 08:08:57 2015 UTC
@@ -0,0 +1,5 @@
+# this file is included from makefile
+
+modules := Tools/LedTest
+incpath :=
+cfgpath := Tools/LedTest/Config
=======================================
--- /dev/null
+++
/branches/MatrixPilot_helicalTurns/Tools/makefiles/target-MatrixPilot.mk
Mon Jun 15 08:08:57 2015 UTC
@@ -0,0 +1,5 @@
+# this file is included from makefile
+
+modules := MatrixPilot MAVLink libDCM
+incpath := MAVLink/include
+cfgpath := Config
=======================================
--- /dev/null
+++
/branches/MatrixPilot_helicalTurns/Tools/makefiles/target-RollPitchYaw.mk
Mon Jun 15 08:08:57 2015 UTC
@@ -0,0 +1,5 @@
+# this file is included from makefile
+
+modules := RollPitchYaw libDCM
+incpath :=
+cfgpath := RollPitchYaw/Config
=======================================
--- /dev/null
+++ /branches/MatrixPilot_helicalTurns/Tools/makefiles/toolchain-ARM.mk Mon
Jun 15 08:08:57 2015 UTC
@@ -0,0 +1,21 @@
+# this file is included from makefile
+
+CC := arm-none-eabi-gcc
+ASM := arm-none-eabi-as
+LINK := arm-none-eabi-gcc
+OBJCOPY := arm-none-eabi-objcopy
+MKFW := $(SOURCE_DIR)/libSTM/px_mkfw.py
+LSCRIPT := $(SOURCE_DIR)/libSTM/stm32f401xe.ld
+#LFLAGS := -T .\gcc.ld -Wl,-Map,$(BINDIR)\$(TARGET_NAME).map
+LFLAGS := -T $(LSCRIPT) -Wl,-Map,$(TARGET_MAP)
+LIBS := -lgcc -lc -lm -lrdimon
+#QT := "
+#LINKFLAGS = -T .\$(APP_NAME).ld -o $(BINDIR)\$(APP_NAME).elf
-Wl,-Map,$(BINDIR)\$(APP_NAME).map,--cref -lm
+
+# Define optimisation level here
+OPT = -O0
+#OPT = -O2 -falign-functions=16 -fno-inline -fomit-frame-pointer
+
+CFLAGS := $(OPT) -gdwarf-2 -Wall -Wstrict-prototypes
+CFLAGS += -fverbose-asm -ffunction-sections -fdata-sections
+#CFLAGS += -fverbose-asm -ffunction-sections -fdata-sections
-Wa,-ahlms=$(<:.c=.lst)
=======================================
--- /dev/null
+++ /branches/MatrixPilot_helicalTurns/Tools/makefiles/toolchain-C30.mk Mon
Jun 15 08:08:57 2015 UTC
@@ -0,0 +1,11 @@
+# this file is included from makefile
+
+CC := pic30-gcc.exe
+AR := pic30-ar.exe
+BIN2HEX := pic30-bin2hex.exe
+LIBS := -legacy-libc
+TARGET_ARCH := -mcpu=$(CPU)
+AFLAGS += -Wa,-g,--defsym=PSV_ERRATA=1
+CFLAGS += -x c -g -Wall -mlarge-code -mlarge-data -legacy-libc
+#LFLAGS += -Wl,-Tp$(CPU).gld,-Map="$(TARGET_MAP)",--report-mem
+LFLAGS += -Wl,-Tp$(CPU).gld,-Map="$(TARGET_MAP)"
=======================================
--- /dev/null
+++ /branches/MatrixPilot_helicalTurns/Tools/makefiles/toolchain-GCC.mk Mon
Jun 15 08:08:57 2015 UTC
@@ -0,0 +1,12 @@
+# this file is included from makefile
+
+CC := gcc
+ifeq ($(OS),Windows_NT)
+LIBS := -lws2_32
+TARGET_ARCH :=
+CFLAGS += -DWIN=1
+else
+LIBS := -lm
+TARGET_ARCH :=
+CFLAGS += -DNIX=1
+endif
=======================================
--- /dev/null
+++ /branches/MatrixPilot_helicalTurns/Tools/makefiles/toolchain-XC16.mk
Mon Jun 15 08:08:57 2015 UTC
@@ -0,0 +1,10 @@
+# this file is included from makefile
+
+CC := xc16-gcc
+AR := xc16-ar
+BIN2HEX := xc16-bin2hex
+LIBS := -legacy-libc
+TARGET_ARCH := -mcpu=$(CPU)
+AFLAGS += -Wa,-g,--defsym=PSV_ERRATA=1
+CFLAGS += -g -omf=elf -legacy-libc -msmart-io=1 -Wall -msfr-warn=off
-mlarge-code -mlarge-data
+LFLAGS += -omf=elf
-Wl,-script=p$(CPU).gld,--heap=256,--stack=16,--check-sections,--data-init,--pack-data,--handles,--isr,--no-gc-sections,--fill-upper=0,--stackguard=16,--no-force-link,--smart-io,-Map="$(TARGET_MAP)"
=======================================
--- /branches/MatrixPilot_helicalTurns/device-AUAV3.mk Sun Jun 14 13:43:17
2015 UTC
+++ /dev/null
@@ -1,12 +0,0 @@
-# this file is included from makefile
-
-#TOOLCHAIN ?= C30
-TOOLCHAIN ?= XC16
-TARGET_TYPE := hex
-CPU := 33EP512MU810
-
-modules += libUDB libVectorMatrix libFlashFS Microchip
-incpath += Microchip Microchip/Include libVectorMatrix
-#cfgpath := Config
-
-#defines += USE_USB USE_CDC USE_MSD USE_FILESYS
=======================================
--- /branches/MatrixPilot_helicalTurns/device-PX4.mk Sat Mar 14 12:37:08
2015 UTC
+++ /dev/null
@@ -1,18 +0,0 @@
-# this file is included from makefile
-
-TOOLCHAIN ?= ARM
-TARGET_TYPE := px4
-ARCH := armv7e-m
-CPU := cortex-m4
-FPU := fpv4-sp-d16
-TARGET_ARCH := -mcpu=$(CPU) -march=$(ARCH) -mfpu=$(FPU) -mfloat-abi=hard
-mthumb -mlong-calls
-#TARGET_ARCH := -mcpu=$(CPU) -march=$(ARCH) -mfpu=$(FPU) -mfloat-abi=hard
-mthumb-interwork -mlong-calls
-
-modules += libSTM
-
-#incpath := Config FreeRTOS\include libUDB libSTM libSTM\inc libSTM\src
libSTM\cmsis libSTM\Drivers
libSTM\Drivers\CMSIS\Device\ST\STM32F4xx\Include
libSTM\Drivers\CMSIS\Include libSTM\Drivers\STM32F4xx_HAL_Driver\Inc
libSTM\Middlewares libSTM\Middlewares\Third_Party\FreeRTOS\Source\include
libSTM\Middlewares\Third_Party\FreeRTOS\Source\CMSIS_RTOS
libSTM\Middlewares\Third_Party\FreeRTOS\Source\portable\GCC\ARM_CM4F
-#incpath := Config FreeRTOS/include libUDB libSTM
-incpath += libSTM
-#cfgpath := Config
-
-defines += ARM_MATH_CM4 __FPU_USED STM32F401RE STM32F4XX
USE_STDPERIPH_DRIVER STM32F401xE
=======================================
--- /branches/MatrixPilot_helicalTurns/device-SIL.mk Sat Mar 14 12:37:08
2015 UTC
+++ /dev/null
@@ -1,13 +0,0 @@
-# this file is included from makefile
-
-TOOLCHAIN := GCC
-ifeq ($(OS),Windows_NT)
-TARGET_TYPE := exe
-else
-TARGET_TYPE := out
-endif
-CPU :=
-
-modules += Tools/MatrixPilot-SIL
-incpath +=
-#cfgpath := Config
=======================================
--- /branches/MatrixPilot_helicalTurns/device-SILSIM.mk Sat Mar 14 12:37:08
2015 UTC
+++ /dev/null
@@ -1,13 +0,0 @@
-# this file is included from makefile
-
-TOOLCHAIN := GCC
-ifeq ($(OS),Windows_NT)
-TARGET_TYPE := exe
-else
-TARGET_TYPE := out
-endif
-CPU :=
-
-modules += Tools/MatrixPilot-SIL
-incpath +=
-#cfgpath := Config
=======================================
--- /branches/MatrixPilot_helicalTurns/device-UDB4.mk Fri May 1 02:12:19
2015 UTC
+++ /dev/null
@@ -1,15 +0,0 @@
-# this file is included from makefile
-
-TOOLCHAIN ?= XC16
-TARGET_TYPE := hex
-CPU := 33FJ256GP710A
-
-modules += libUDB libVectorMatrix
-incpath += Microchip Microchip/Include libVectorMatrix
-#cfgpath := Config
-
-defines += NOFS=1
-
-# mod_list
-# inc_list
-# def_list
=======================================
--- /branches/MatrixPilot_helicalTurns/device-UDB5.mk Fri May 1 02:12:19
2015 UTC
+++ /dev/null
@@ -1,11 +0,0 @@
-# this file is included from makefile
-
-TOOLCHAIN ?= XC16
-TARGET_TYPE := hex
-CPU := 33FJ256GP710A
-
-modules += libUDB libVectorMatrix
-incpath += Microchip Microchip/Include libVectorMatrix
-#cfgpath := Config
-
-defines += NOFS=1
=======================================
--- /branches/MatrixPilot_helicalTurns/target-LedTest.mk Sat Apr 18
15:53:51 2015 UTC
+++ /dev/null
@@ -1,5 +0,0 @@
-# this file is included from makefile
-
-modules := Tools/LedTest
-incpath :=
-cfgpath := Tools/LedTest/Config
=======================================
--- /branches/MatrixPilot_helicalTurns/target-MatrixPilot.mk Sat Apr 18
15:53:51 2015 UTC
+++ /dev/null
@@ -1,5 +0,0 @@
-# this file is included from makefile
-
-modules := MatrixPilot MAVLink libDCM
-incpath := MAVLink/include
-cfgpath := Config
=======================================
--- /branches/MatrixPilot_helicalTurns/target-RollPitchYaw.mk Sat Apr 18
15:53:51 2015 UTC
+++ /dev/null
@@ -1,5 +0,0 @@
-# this file is included from makefile
-
-modules := RollPitchYaw libDCM
-incpath :=
-cfgpath := RollPitchYaw/Config
=======================================
--- /branches/MatrixPilot_helicalTurns/toolchain-ARM.mk Fri May 1 02:25:27
2015 UTC
+++ /dev/null
@@ -1,21 +0,0 @@
-# this file is included from makefile
-
-CC := arm-none-eabi-gcc
-ASM := arm-none-eabi-as
-LINK := arm-none-eabi-gcc
-OBJCOPY := arm-none-eabi-objcopy
-MKFW := $(SOURCE_DIR)/libSTM/px_mkfw.py
-LSCRIPT := $(SOURCE_DIR)/libSTM/stm32f401xe.ld
-#LFLAGS := -T .\gcc.ld -Wl,-Map,$(BINDIR)\$(TARGET_NAME).map
-LFLAGS := -T $(LSCRIPT) -Wl,-Map,$(TARGET_MAP)
-LIBS := -lgcc -lc -lm -lrdimon
-#QT := "
-#LINKFLAGS = -T .\$(APP_NAME).ld -o $(BINDIR)\$(APP_NAME).elf
-Wl,-Map,$(BINDIR)\$(APP_NAME).map,--cref -lm
-
-# Define optimisation level here
-OPT = -O0
-#OPT = -O2 -falign-functions=16 -fno-inline -fomit-frame-pointer
-
-CFLAGS := $(OPT) -gdwarf-2 -Wall -Wstrict-prototypes
-CFLAGS += -fverbose-asm -ffunction-sections -fdata-sections
-#CFLAGS += -fverbose-asm -ffunction-sections -fdata-sections
-Wa,-ahlms=$(<:.c=.lst)
=======================================
--- /branches/MatrixPilot_helicalTurns/toolchain-C30.mk Sat Mar 14 12:37:08
2015 UTC
+++ /dev/null
@@ -1,11 +0,0 @@
-# this file is included from makefile
-
-CC := pic30-gcc.exe
-AR := pic30-ar.exe
-BIN2HEX := pic30-bin2hex.exe
-LIBS := -legacy-libc
-TARGET_ARCH := -mcpu=$(CPU)
-AFLAGS += -Wa,-g,--defsym=PSV_ERRATA=1
-CFLAGS += -x c -g -Wall -mlarge-code -mlarge-data -legacy-libc
-#LFLAGS += -Wl,-Tp$(CPU).gld,-Map="$(TARGET_MAP)",--report-mem
-LFLAGS += -Wl,-Tp$(CPU).gld,-Map="$(TARGET_MAP)"
=======================================
--- /branches/MatrixPilot_helicalTurns/toolchain-GCC.mk Sat Mar 14 12:37:08
2015 UTC
+++ /dev/null
@@ -1,12 +0,0 @@
-# this file is included from makefile
-
-CC := gcc
-ifeq ($(OS),Windows_NT)
-LIBS := -lws2_32
-TARGET_ARCH :=
-CFLAGS += -DWIN=1
-else
-LIBS := -lm
-TARGET_ARCH :=
-CFLAGS += -DNIX=1
-endif
=======================================
--- /branches/MatrixPilot_helicalTurns/toolchain-XC16.mk Sat Mar 14
12:37:08 2015 UTC
+++ /dev/null
@@ -1,10 +0,0 @@
-# this file is included from makefile
-
-CC := xc16-gcc
-AR := xc16-ar
-BIN2HEX := xc16-bin2hex
-LIBS := -legacy-libc
-TARGET_ARCH := -mcpu=$(CPU)
-AFLAGS += -Wa,-g,--defsym=PSV_ERRATA=1
-CFLAGS += -g -omf=elf -legacy-libc -msmart-io=1 -Wall -msfr-warn=off
-mlarge-code -mlarge-data
-LFLAGS += -omf=elf
-Wl,-script=p$(CPU).gld,--heap=256,--stack=16,--check-sections,--data-init,--pack-data,--handles,--isr,--no-gc-sections,--fill-upper=0,--stackguard=16,--no-force-link,--smart-io,-Map="$(TARGET_MAP)"
Reply all
Reply to author
Forward
0 new messages