From 1137ed6ee76251180dc12b8db59768382fdd3023 Mon Sep 17 00:00:00 2001 From: inmarket Date: Fri, 10 Jul 2015 18:11:36 +1000 Subject: Makefile additions for stm32m7 and raw32 --- tools/gmake_scripts/cpu_stm32m7.mk | 24 ++++++++++++++++++++++++ tools/gmake_scripts/os_raw32.mk | 13 +++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 tools/gmake_scripts/cpu_stm32m7.mk create mode 100644 tools/gmake_scripts/os_raw32.mk (limited to 'tools') diff --git a/tools/gmake_scripts/cpu_stm32m7.mk b/tools/gmake_scripts/cpu_stm32m7.mk new file mode 100644 index 00000000..0a59e24f --- /dev/null +++ b/tools/gmake_scripts/cpu_stm32m7.mk @@ -0,0 +1,24 @@ +# +# This file is subject to the terms of the GFX License. If a copy of +# the license was not distributed with this file, you can obtain one at: +# +# http://ugfx.org/license.html +# + +# +# See readme.txt for the make API +# + +# Requirements: +# +# NONE +# + +#SRCFLAGS += -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -falign-functions=16 +#LDFLAGS += -mcpu=cortex-m4 -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -falign-functions=16 +#DEFS += CORTEX_USE_FPU=TRUE +#LIBS += m +SRCFLAGS += -mcpu=cortex-m7 -falign-functions=16 +LDFLAGS += -mcpu=cortex-m7 +DEFS += CORTEX_USE_FPU=FALSE + diff --git a/tools/gmake_scripts/os_raw32.mk b/tools/gmake_scripts/os_raw32.mk new file mode 100644 index 00000000..1c96c8ec --- /dev/null +++ b/tools/gmake_scripts/os_raw32.mk @@ -0,0 +1,13 @@ +# +# This file is subject to the terms of the GFX License. If a copy of +# the license was not distributed with this file, you can obtain one at: +# +# http://ugfx.org/license.html +# + +# See readme.txt for the make API + +# Requirements: +# +# NONE +# -- cgit v1.2.3 From daab60de98bcb5b97d7ae75e0da5d2646cadbba0 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Fri, 10 Jul 2015 16:42:06 +0200 Subject: Improving formatting of makefile verbose output --- tools/gmake_scripts/compiler_gcc.mk | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'tools') diff --git a/tools/gmake_scripts/compiler_gcc.mk b/tools/gmake_scripts/compiler_gcc.mk index c6225d4d..ca029b30 100644 --- a/tools/gmake_scripts/compiler_gcc.mk +++ b/tools/gmake_scripts/compiler_gcc.mk @@ -196,24 +196,34 @@ builddirs: $(FAKEFILE): ifneq ($(OPT_VERBOSE_COMPILE),yes) - @echo . + @echo ifneq ($(filter %.cpp,$(SRC) $(SRC_NOTHUMB) $(SRC_THUMB)),) - @echo C++ Compiler Options.. $(XCXX) -c $(CPPFLAGS) $(CXXFLAGS) $(SRCFLAGS) $(@:.o=.cpp) -o $(OBJDIR)/$@ + @echo + @echo C++ Compiler Options.. + @echo $(XCXX) -c $(CPPFLAGS) $(CXXFLAGS) $(SRCFLAGS) $(@:.o=.cpp) -o $(OBJDIR)/$@ else ifneq ($(filter %.c++,$(SRC) $(SRC_NOTHUMB) $(SRC_THUMB)),) - @echo C++ Compiler Options.. $(XCXX) -c $(CPPFLAGS) $(CXXFLAGS) $(SRCFLAGS) $(@:.o=.c++) -o $(OBJDIR)/$@ + @echo + @echo C++ Compiler Options.. + @echo $(XCXX) -c $(CPPFLAGS) $(CXXFLAGS) $(SRCFLAGS) $(@:.o=.c++) -o $(OBJDIR)/$@ endif endif ifneq ($(filter %.c,$(SRC) $(SRC_NOTHUMB) $(SRC_THUMB)),) - @echo C Compiler Options.... $(XCC) -c $(CPPFLAGS) $(CFLAGS) $(SRCFLAGS) $(@:.o=.c) -o $(OBJDIR)/$@ + @echo + @echo C Compiler Options.... + @echo $(XCC) -c $(CPPFLAGS) $(CFLAGS) $(SRCFLAGS) $(@:.o=.c) -o $(OBJDIR)/$@ endif ifneq ($(filter %.s,$(SRC) $(SRC_NOTHUMB) $(SRC_THUMB)),) - @echo Assembler Options..... $(XCC) -c $(CPPFLAGS) $(CFLAGS) $(SRCFLAGS) $(@:.o=.s) -o $(OBJDIR)/$@ + @echo + @echo Assembler Options..... + @echo $(XCC) -c $(CPPFLAGS) $(CFLAGS) $(SRCFLAGS) $(@:.o=.s) -o $(OBJDIR)/$@ endif ifneq ($(OPT_MAKE_LIB),yes) - @echo Linker Options........ $(XLD) $(LDFLAGS) $(OBJDIR)/$@ -o $(EXEFILE) + @echo + @echo Linker Options........ + @echo $(XLD) $(LDFLAGS) $(OBJDIR)/$@ -o $(EXEFILE) endif - @echo . + @echo endif fakethumbfile.o $(OBJS_THUMB): SRCFLAGS += -mthumb -DTHUMB -- cgit v1.2.3 From 38b0cdd5e8d0783489fae0f23e2b748d787c7b4c Mon Sep 17 00:00:00 2001 From: inmarket Date: Sat, 11 Jul 2015 16:13:05 +1000 Subject: Working STM32F746G-Discovery board + example for raw32 Working STM32LTDC video driver --- tools/gmake_scripts/compiler_gcc.mk | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'tools') diff --git a/tools/gmake_scripts/compiler_gcc.mk b/tools/gmake_scripts/compiler_gcc.mk index ca029b30..23912992 100644 --- a/tools/gmake_scripts/compiler_gcc.mk +++ b/tools/gmake_scripts/compiler_gcc.mk @@ -196,34 +196,33 @@ builddirs: $(FAKEFILE): ifneq ($(OPT_VERBOSE_COMPILE),yes) - @echo ifneq ($(filter %.cpp,$(SRC) $(SRC_NOTHUMB) $(SRC_THUMB)),) - @echo + @echo . @echo C++ Compiler Options.. @echo $(XCXX) -c $(CPPFLAGS) $(CXXFLAGS) $(SRCFLAGS) $(@:.o=.cpp) -o $(OBJDIR)/$@ else ifneq ($(filter %.c++,$(SRC) $(SRC_NOTHUMB) $(SRC_THUMB)),) - @echo + @echo . @echo C++ Compiler Options.. @echo $(XCXX) -c $(CPPFLAGS) $(CXXFLAGS) $(SRCFLAGS) $(@:.o=.c++) -o $(OBJDIR)/$@ endif endif ifneq ($(filter %.c,$(SRC) $(SRC_NOTHUMB) $(SRC_THUMB)),) - @echo + @echo . @echo C Compiler Options.... @echo $(XCC) -c $(CPPFLAGS) $(CFLAGS) $(SRCFLAGS) $(@:.o=.c) -o $(OBJDIR)/$@ endif ifneq ($(filter %.s,$(SRC) $(SRC_NOTHUMB) $(SRC_THUMB)),) - @echo + @echo . @echo Assembler Options..... @echo $(XCC) -c $(CPPFLAGS) $(CFLAGS) $(SRCFLAGS) $(@:.o=.s) -o $(OBJDIR)/$@ endif ifneq ($(OPT_MAKE_LIB),yes) - @echo + @echo . @echo Linker Options........ @echo $(XLD) $(LDFLAGS) $(OBJDIR)/$@ -o $(EXEFILE) endif - @echo + @echo . endif fakethumbfile.o $(OBJS_THUMB): SRCFLAGS += -mthumb -DTHUMB -- cgit v1.2.3