Move chibios board files to allow tmk_core platform migration (#13777)
* Move board files * fix up after rebasemaster
parent
4c4f632378
commit
4c9003b177
|
@ -151,7 +151,7 @@ ifeq ($(strip $(CTPC)), yes)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes)
|
ifeq ($(strip $(CONVERT_TO_PROTON_C)), yes)
|
||||||
include platforms/chibios/QMK_PROTON_C/convert_to_proton_c.mk
|
include platforms/chibios/boards/QMK_PROTON_C/convert_to_proton_c.mk
|
||||||
endif
|
endif
|
||||||
|
|
||||||
include quantum/mcu_selection.mk
|
include quantum/mcu_selection.mk
|
||||||
|
|
|
@ -67,9 +67,9 @@ else ifneq ("$(wildcard $(KEYBOARD_PATH_2)/boards/$(BOARD)/board.mk)","")
|
||||||
else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/boards/$(BOARD)/board.mk)","")
|
else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/boards/$(BOARD)/board.mk)","")
|
||||||
BOARD_PATH = $(KEYBOARD_PATH_1)
|
BOARD_PATH = $(KEYBOARD_PATH_1)
|
||||||
BOARD_MK += $(KEYBOARD_PATH_1)/boards/$(BOARD)/board.mk
|
BOARD_MK += $(KEYBOARD_PATH_1)/boards/$(BOARD)/board.mk
|
||||||
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/$(BOARD)/board/board.mk)","")
|
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/boards/$(BOARD)/board/board.mk)","")
|
||||||
BOARD_PATH = $(TOP_DIR)/platforms/chibios/$(BOARD)
|
BOARD_PATH = $(TOP_DIR)/platforms/chibios/boards/$(BOARD)
|
||||||
BOARD_MK += $(TOP_DIR)/platforms/chibios/$(BOARD)/board/board.mk
|
BOARD_MK += $(TOP_DIR)/platforms/chibios/boards/$(BOARD)/board/board.mk
|
||||||
KEYBOARD_PATHS += $(BOARD_PATH)/configs
|
KEYBOARD_PATHS += $(BOARD_PATH)/configs
|
||||||
ifneq ("$(wildcard $(BOARD_PATH)/rules.mk)","")
|
ifneq ("$(wildcard $(BOARD_PATH)/rules.mk)","")
|
||||||
include $(BOARD_PATH)/rules.mk
|
include $(BOARD_PATH)/rules.mk
|
||||||
|
@ -124,10 +124,10 @@ else ifneq ("$(wildcard $(KEYBOARD_PATH_2)/chconf.h)","")
|
||||||
CHCONFDIR = $(KEYBOARD_PATH_2)
|
CHCONFDIR = $(KEYBOARD_PATH_2)
|
||||||
else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/chconf.h)","")
|
else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/chconf.h)","")
|
||||||
CHCONFDIR = $(KEYBOARD_PATH_1)
|
CHCONFDIR = $(KEYBOARD_PATH_1)
|
||||||
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/$(BOARD)/configs/chconf.h)","")
|
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/boards/$(BOARD)/configs/chconf.h)","")
|
||||||
CHCONFDIR = $(TOP_DIR)/platforms/chibios/$(BOARD)/configs
|
CHCONFDIR = $(TOP_DIR)/platforms/chibios/boards/$(BOARD)/configs
|
||||||
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/common/configs/chconf.h)","")
|
else ifneq ("$(wildcard $(TOP_DIR)/platforms/boards/chibios/common/configs/chconf.h)","")
|
||||||
CHCONFDIR = $(TOP_DIR)/platforms/chibios/common/configs
|
CHCONFDIR = $(TOP_DIR)/platforms/chibios/boards/common/configs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ("$(wildcard $(KEYBOARD_PATH_5)/halconf.h)","")
|
ifneq ("$(wildcard $(KEYBOARD_PATH_5)/halconf.h)","")
|
||||||
|
@ -140,10 +140,10 @@ else ifneq ("$(wildcard $(KEYBOARD_PATH_2)/halconf.h)","")
|
||||||
HALCONFDIR = $(KEYBOARD_PATH_2)
|
HALCONFDIR = $(KEYBOARD_PATH_2)
|
||||||
else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/halconf.h)","")
|
else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/halconf.h)","")
|
||||||
HALCONFDIR = $(KEYBOARD_PATH_1)
|
HALCONFDIR = $(KEYBOARD_PATH_1)
|
||||||
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/$(BOARD)/configs/halconf.h)","")
|
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/boards/$(BOARD)/configs/halconf.h)","")
|
||||||
HALCONFDIR = $(TOP_DIR)/platforms/chibios/$(BOARD)/configs
|
HALCONFDIR = $(TOP_DIR)/platforms/chibios/boards/$(BOARD)/configs
|
||||||
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/common/configs/halconf.h)","")
|
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/boards/common/configs/halconf.h)","")
|
||||||
HALCONFDIR = $(TOP_DIR)/platforms/chibios/common/configs
|
HALCONFDIR = $(TOP_DIR)/platforms/chibios/boards/common/configs
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# HAL-OSAL files (optional).
|
# HAL-OSAL files (optional).
|
||||||
|
@ -190,11 +190,11 @@ else ifneq ("$(wildcard $(KEYBOARD_PATH_2)/ld/$(MCU_LDSCRIPT).ld)","")
|
||||||
LDSCRIPT = $(KEYBOARD_PATH_2)/ld/$(MCU_LDSCRIPT).ld
|
LDSCRIPT = $(KEYBOARD_PATH_2)/ld/$(MCU_LDSCRIPT).ld
|
||||||
else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/ld/$(MCU_LDSCRIPT).ld)","")
|
else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/ld/$(MCU_LDSCRIPT).ld)","")
|
||||||
LDSCRIPT = $(KEYBOARD_PATH_1)/ld/$(MCU_LDSCRIPT).ld
|
LDSCRIPT = $(KEYBOARD_PATH_1)/ld/$(MCU_LDSCRIPT).ld
|
||||||
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/$(BOARD)/ld/$(MCU_LDSCRIPT).ld)","")
|
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/boards/$(BOARD)/ld/$(MCU_LDSCRIPT).ld)","")
|
||||||
LDFLAGS += -L$(TOP_DIR)/platforms/chibios/$(BOARD)/ld
|
LDFLAGS += -L$(TOP_DIR)/platforms/chibios/boards/$(BOARD)/ld
|
||||||
LDSCRIPT = $(TOP_DIR)/platforms/chibios/$(BOARD)/ld/$(MCU_LDSCRIPT).ld
|
LDSCRIPT = $(TOP_DIR)/platforms/chibios/boards/$(BOARD)/ld/$(MCU_LDSCRIPT).ld
|
||||||
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/common/ld/$(MCU_LDSCRIPT).ld)","")
|
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/boards/common/ld/$(MCU_LDSCRIPT).ld)","")
|
||||||
LDSCRIPT = $(TOP_DIR)/platforms/chibios/common/ld/$(MCU_LDSCRIPT).ld
|
LDSCRIPT = $(TOP_DIR)/platforms/chibios/boards/common/ld/$(MCU_LDSCRIPT).ld
|
||||||
else ifneq ("$(wildcard $(STARTUPLD_CONTRIB)/$(MCU_LDSCRIPT).ld)","")
|
else ifneq ("$(wildcard $(STARTUPLD_CONTRIB)/$(MCU_LDSCRIPT).ld)","")
|
||||||
LDSCRIPT = $(STARTUPLD_CONTRIB)/$(MCU_LDSCRIPT).ld
|
LDSCRIPT = $(STARTUPLD_CONTRIB)/$(MCU_LDSCRIPT).ld
|
||||||
USE_CHIBIOS_CONTRIB = yes
|
USE_CHIBIOS_CONTRIB = yes
|
||||||
|
@ -219,8 +219,8 @@ QUANTUM_LIB_SRC += $(STARTUPASM) $(PORTASM) $(OSALASM) $(PLATFORMASM)
|
||||||
CHIBISRC := $(patsubst $(TOP_DIR)/%,%,$(CHIBISRC))
|
CHIBISRC := $(patsubst $(TOP_DIR)/%,%,$(CHIBISRC))
|
||||||
|
|
||||||
EXTRAINCDIRS += $(CHIBIOS)/os/license $(CHIBIOS)/os/oslib/include \
|
EXTRAINCDIRS += $(CHIBIOS)/os/license $(CHIBIOS)/os/oslib/include \
|
||||||
$(TOP_DIR)/platforms/chibios/$(BOARD)/configs \
|
$(TOP_DIR)/platforms/chibios/boards/$(BOARD)/configs \
|
||||||
$(TOP_DIR)/platforms/chibios/common/configs \
|
$(TOP_DIR)/platforms/chibios/boards/common/configs \
|
||||||
$(HALCONFDIR) $(CHCONFDIR) \
|
$(HALCONFDIR) $(CHCONFDIR) \
|
||||||
$(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
|
$(STARTUPINC) $(KERNINC) $(PORTINC) $(OSALINC) \
|
||||||
$(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \
|
$(HALINC) $(PLATFORMINC) $(BOARDINC) $(TESTINC) \
|
||||||
|
@ -241,7 +241,7 @@ else ifneq ("$(wildcard $(KEYBOARD_PATH_2)/halconf_community.h)","")
|
||||||
USE_CHIBIOS_CONTRIB = yes
|
USE_CHIBIOS_CONTRIB = yes
|
||||||
else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/halconf_community.h)","")
|
else ifneq ("$(wildcard $(KEYBOARD_PATH_1)/halconf_community.h)","")
|
||||||
USE_CHIBIOS_CONTRIB = yes
|
USE_CHIBIOS_CONTRIB = yes
|
||||||
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/$(BOARD)/configs/halconf_community.h)","")
|
else ifneq ("$(wildcard $(TOP_DIR)/platforms/chibios/boards/$(BOARD)/configs/halconf_community.h)","")
|
||||||
USE_CHIBIOS_CONTRIB = yes
|
USE_CHIBIOS_CONTRIB = yes
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue