sn32: platform makefile fixes

This commit is contained in:
Dimitris Mantzouranis 2022-01-11 15:51:42 +02:00
parent 05ac8777a8
commit 6d7095947d
3 changed files with 21 additions and 63 deletions

View File

@ -1,26 +1,21 @@
# Required platform files. # Required platform files.
PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \ PLATFORMSRC_CONTRIB := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
$(CHIBIOS_CONTRIB)/os/hal/ports/SN32/SN32F240/hal_lld.c $(CHIBIOS_CONTRIB)/os/hal/ports/SN32/SN32F240/hal_lld.c
# Required include directories. # Required include directories.
PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \ PLATFORMINC_CONTRIB := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F24x \
$(CHIBIOS_CONTRIB)/os/hal/ports/SN32/SN32F240 $(CHIBIOS_CONTRIB)/os/hal/ports/SN32/SN32F240
# Optional platform files.
ifeq ($(USE_SMART_BUILD),yes) ifeq ($(USE_SMART_BUILD),yes)
# Configuration files directory # Configuration files directory
ifeq ($(HALCONFDIR),) ifeq ($(CONFDIR),)
ifeq ($(CONFDIR),) CONFDIR = .
HALCONFDIR = .
else
HALCONFDIR := $(CONFDIR)
endif
endif endif
HALCONF := $(strip $(shell cat $(HALCONFDIR)/halconf.h | egrep -e "\#define")) HALCONF := $(strip $(shell cat $(CONFDIR)/halconf.h $(CONFDIR)/halconf_community.h | egrep -e "\#define"))
else
endif endif
# Drivers compatible with the platform. # Drivers compatible with the platform.
@ -28,15 +23,6 @@ include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F24x/GPIO/driver.mk
include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F24x/USB/driver.mk include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F24x/USB/driver.mk
include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F24x/CT/driver.mk include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F24x/CT/driver.mk
# include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F24x/TIM/driver.mk
# include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F24x/GPIOv3/driver.mk
# include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F24x/USBv1/driver.mk
# include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F24x/TIMv1/driver.mk
# PLATFORMINC += $(CHIBIOS)/os/hal/templates/
# PLATFORMSRC += ${CHIBIOS}/os/hal/templates/hal_usb_lld.c
# Shared variables # Shared variables
ALLCSRC += $(PLATFORMSRC_CONTRIB) ALLCSRC += $(PLATFORMSRC_CONTRIB)
ALLINC += $(PLATFORMSRC_CONTRIB) ALLINC += $(PLATFORMINC_CONTRIB)

View File

@ -1,26 +1,21 @@
# Required platform files. # Required platform files.
PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \ PLATFORMSRC_CONTRIB := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
$(CHIBIOS_CONTRIB)/os/hal/ports/SN32/SN32F240B/hal_lld.c $(CHIBIOS_CONTRIB)/os/hal/ports/SN32/SN32F240B/hal_lld.c
# Required include directories. # Required include directories.
PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \ PLATFORMINC_CONTRIB := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx \
$(CHIBIOS_CONTRIB)/os/hal/ports/SN32/SN32F240B $(CHIBIOS_CONTRIB)/os/hal/ports/SN32/SN32F240B
# Optional platform files.
ifeq ($(USE_SMART_BUILD),yes) ifeq ($(USE_SMART_BUILD),yes)
# Configuration files directory # Configuration files directory
ifeq ($(HALCONFDIR),) ifeq ($(CONFDIR),)
ifeq ($(CONFDIR),) CONFDIR = .
HALCONFDIR = .
else
HALCONFDIR := $(CONFDIR)
endif
endif endif
HALCONF := $(strip $(shell cat $(HALCONFDIR)/halconf.h | egrep -e "\#define")) HALCONF := $(strip $(shell cat $(CONFDIR)/halconf.h $(CONFDIR)/halconf_community.h | egrep -e "\#define"))
else
endif endif
# Drivers compatible with the platform. # Drivers compatible with the platform.
@ -30,15 +25,6 @@ include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx/CT/driver.mk
include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx/FLASH/driver.mk include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx/FLASH/driver.mk
include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx/SysTick/driver.mk include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx/SysTick/driver.mk
# include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx/TIM/driver.mk
# include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx/GPIOv3/driver.mk
# include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx/USBv1/driver.mk
# include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx/TIMv1/driver.mk
# PLATFORMINC += $(CHIBIOS)/os/hal/templates/
# PLATFORMSRC += ${CHIBIOS}/os/hal/templates/hal_usb_lld.c
# Shared variables # Shared variables
ALLCSRC += $(PLATFORMSRC_CONTRIB) ALLCSRC += $(PLATFORMSRC_CONTRIB)
ALLINC += $(PLATFORMSRC_CONTRIB) ALLINC += $(PLATFORMINC_CONTRIB)

View File

@ -1,26 +1,21 @@
# Required platform files. # Required platform files.
PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \ PLATFORMSRC_CONTRIB := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
$(CHIBIOS_CONTRIB)/os/hal/ports/SN32/SN32F260/hal_lld.c $(CHIBIOS_CONTRIB)/os/hal/ports/SN32/SN32F260/hal_lld.c
# Required include directories. # Required include directories.
PLATFORMINC := $(CHIBIOS)/os/hal/ports/common/ARMCMx \ PLATFORMINC_CONTRIB := $(CHIBIOS)/os/hal/ports/common/ARMCMx \
${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx \
$(CHIBIOS_CONTRIB)/os/hal/ports/SN32/SN32F260 $(CHIBIOS_CONTRIB)/os/hal/ports/SN32/SN32F260
# Optional platform files.
ifeq ($(USE_SMART_BUILD),yes) ifeq ($(USE_SMART_BUILD),yes)
# Configuration files directory # Configuration files directory
ifeq ($(HALCONFDIR),) ifeq ($(CONFDIR),)
ifeq ($(CONFDIR),) CONFDIR = .
HALCONFDIR = .
else
HALCONFDIR := $(CONFDIR)
endif
endif endif
HALCONF := $(strip $(shell cat $(HALCONFDIR)/halconf.h | egrep -e "\#define")) HALCONF := $(strip $(shell cat $(CONFDIR)/halconf.h $(CONFDIR)/halconf_community.h | egrep -e "\#define"))
else
endif endif
# Drivers compatible with the platform. # Drivers compatible with the platform.
@ -30,15 +25,6 @@ include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx/CT/driver.mk
include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx/FLASH/driver.mk include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx/FLASH/driver.mk
include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx/SysTick/driver.mk include ${CHIBIOS_CONTRIB}/os/hal/ports/SN32/LLD/SN32F2xx/SysTick/driver.mk
# include $(CHIBIOS)/os/hal/ports/SN32/LLD/TIM/driver.mk
# include $(CHIBIOS)/os/hal/ports/SN32/LLD/GPIOv3/driver.mk
# include $(CHIBIOS)/os/hal/ports/SN32/LLD/USBv1/driver.mk
# include $(CHIBIOS)/os/hal/ports/SN32/LLD/TIMv1/driver.mk
# PLATFORMINC += $(CHIBIOS)/os/hal/templates/
# PLATFORMSRC += ${CHIBIOS}/os/hal/templates/hal_usb_lld.c
# Shared variables # Shared variables
ALLCSRC += $(PLATFORMSRC_CONTRIB) ALLCSRC += $(PLATFORMSRC_CONTRIB)
ALLINC += $(PLATFORMSRC_CONTRIB) ALLINC += $(PLATFORMINC_CONTRIB)