move firmware source into source folder

master
Clyne 4 years ago
parent 9b926b81ef
commit d7285a20d9

5
.gitignore vendored

@ -1,6 +1,7 @@
build
**/.*
gui/stmdspgui
**/*.o
**/*.so
perf*
build
eagle/*#*
gui/stmdspgui

@ -102,7 +102,7 @@ endif
# Imported source files and paths.
CHIBIOS := ./ChibiOS_20.3.2
CONFDIR := ./cfg
CONFDIR := ./source/cfg
BUILDDIR := ./build
DEPDIR := ./.dep
@ -121,13 +121,16 @@ ifeq ($(TARGET_PLATFORM),H7)
else
include $(CHIBIOS)/os/hal/ports/STM32/STM32L4xx/platform.mk
endif
include ./board/board.mk
include ./source/board/board.mk
include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
# RTOS files (optional).
include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Auto-build files in ./source recursively.
include $(CHIBIOS)/tools/mk/autobuild.mk
#include $(CHIBIOS)/tools/mk/autobuild.mk
ALLCSRC += $(wildcard source/*.c)
ALLCPPSRC += $(wildcard source/*.cpp)
ALLASMSRC += $(wildcard source/*.s)
# Other files (optional).
#include $(CHIBIOS)/test/lib/test.mk
#include $(CHIBIOS)/test/rt/rt_test.mk
@ -135,9 +138,9 @@ include $(CHIBIOS)/tools/mk/autobuild.mk
# Define linker script file here
ifeq ($(TARGET_PLATFORM),H7)
LDSCRIPT = STM32H723xG.ld
LDSCRIPT = source/ld/STM32H723xG.ld
else
LDSCRIPT = STM32L476xG.ld
LDSCRIPT = source/ld/STM32L476xG.ld
endif
# C sources that can be compiled in ARM or THUMB mode depending on the global

@ -1,15 +1,15 @@
# List of all the board related files.
ifeq ($(TARGET_PLATFORM),H7)
BOARDSRC = ./board/board_h7.c
BOARDSRC = ./source/board/board_h7.c
else
BOARDSRC = ./board/board_l4.c
BOARDSRC = ./source/board/board_l4.c
endif
# Required include directories
ifeq ($(TARGET_PLATFORM),H7)
BOARDINC = ./board/h7
BOARDINC = ./source/board/h7
else
BOARDINC = ./board/l4
BOARDINC = ./source/board/l4
endif
# Shared variables
Loading…
Cancel
Save