Implemented smart build for Tiva platform.
This commit is contained in:
parent
81c70f5ce6
commit
1853428c80
|
@ -43,6 +43,12 @@ ifeq ($(USE_VERBOSE_COMPILE),)
|
||||||
USE_VERBOSE_COMPILE = no
|
USE_VERBOSE_COMPILE = no
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# If enabled, this option makes the build process faster by not compiling
|
||||||
|
# modules not used in the current configuration.
|
||||||
|
ifeq ($(USE_SMART_BUILD),)
|
||||||
|
USE_SMART_BUILD = yes
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build global options
|
# Build global options
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
|
@ -43,6 +43,12 @@ ifeq ($(USE_VERBOSE_COMPILE),)
|
||||||
USE_VERBOSE_COMPILE = no
|
USE_VERBOSE_COMPILE = no
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# If enabled, this option makes the build process faster by not compiling
|
||||||
|
# modules not used in the current configuration.
|
||||||
|
ifeq ($(USE_SMART_BUILD),)
|
||||||
|
USE_SMART_BUILD = yes
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build global options
|
# Build global options
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
|
@ -43,6 +43,12 @@ ifeq ($(USE_VERBOSE_COMPILE),)
|
||||||
USE_VERBOSE_COMPILE = no
|
USE_VERBOSE_COMPILE = no
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# If enabled, this option makes the build process faster by not compiling
|
||||||
|
# modules not used in the current configuration.
|
||||||
|
ifeq ($(USE_SMART_BUILD),)
|
||||||
|
USE_SMART_BUILD = yes
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build global options
|
# Build global options
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
|
@ -1,25 +1,58 @@
|
||||||
# List of all the TM4C123x platform files.
|
# List of all the TM4C123x platform files.
|
||||||
PLATFORMSRC = ${CHIBIOS}/os/hal/ports/common/ARMCMx/nvic.c \
|
ifeq ($(USE_SMART_BUILD),yes)
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/TM4C123x/hal_lld.c \
|
HALCONF := $(strip $(shell cat halconf.h | egrep -e "\#define"))
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPIO/hal_ext_lld.c \
|
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPIO/hal_pal_lld.c \
|
PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPTM/hal_gpt_lld.c \
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/TM4C123x/hal_lld.c \
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPTM/hal_st_lld.c \
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/uDMA/tiva_udma.c \
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/I2C/hal_i2c_lld.c \
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPTM/hal_st_lld.c
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/PWM/hal_pwm_lld.c \
|
ifneq ($(findstring HAL_USE_EXT TRUE,$(HALCONF)),)
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/SSI/hal_spi_lld.c \
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPIO/hal_ext_lld.c
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/UART/hal_serial_lld.c \
|
endif
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/uDMA/tiva_udma.c \
|
ifneq ($(findstring HAL_USE_PAL TRUE,$(HALCONF)),)
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/WDT/hal_wdg_lld.c
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPIO/hal_pal_lld.c
|
||||||
|
endif
|
||||||
|
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/I2C/hal_i2c_lld.c
|
||||||
|
endif
|
||||||
|
ifneq ($(findstring HAL_USE_SPI TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/SSI/hal_spi_lld.c
|
||||||
|
endif
|
||||||
|
ifneq ($(findstring HAL_USE_GPT TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPTM/hal_gpt_lld.c
|
||||||
|
endif
|
||||||
|
ifneq ($(findstring HAL_USE_PWM TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/PWM/hal_pwm_lld.c
|
||||||
|
endif
|
||||||
|
ifneq ($(findstring HAL_USE_SERIAL TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/UART/hal_serial_lld.c
|
||||||
|
endif
|
||||||
|
ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/WDT/hal_wdg_lld.c
|
||||||
|
endif
|
||||||
|
else
|
||||||
|
PLATFORMSRC := ${CHIBIOS}/os/hal/ports/common/ARMCMx/nvic.c \
|
||||||
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/TM4C123x/hal_lld.c \
|
||||||
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPIO/hal_ext_lld.c \
|
||||||
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPIO/hal_pal_lld.c \
|
||||||
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPTM/hal_gpt_lld.c \
|
||||||
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPTM/hal_st_lld.c \
|
||||||
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/I2C/hal_i2c_lld.c \
|
||||||
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/PWM/hal_pwm_lld.c \
|
||||||
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/SSI/hal_spi_lld.c \
|
||||||
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/UART/hal_serial_lld.c \
|
||||||
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/uDMA/tiva_udma.c \
|
||||||
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/WDT/hal_wdg_lld.c
|
||||||
|
endif
|
||||||
|
|
||||||
# Required include directories
|
# Required include directories
|
||||||
PLATFORMINC = ${CHIBIOS}/os/hal/ports/common/ARMCMx \
|
PLATFORMINC := ${CHIBIOS}/os/hal/ports/common/ARMCMx \
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/TM4C123x \
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/TM4C123x \
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPIO \
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPIO \
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPTM \
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPTM \
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/I2C \
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/I2C \
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/PWM \
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/PWM \
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/SSI \
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/SSI \
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/UART \
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/UART \
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/uDMA \
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/uDMA \
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/WDT
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/WDT
|
||||||
|
|
|
@ -1,4 +1,39 @@
|
||||||
# List of all the TM4C129x platform files.
|
# List of all the TM4C129x platform files.
|
||||||
|
ifeq ($(USE_SMART_BUILD),yes)
|
||||||
|
HALCONF := $(strip $(shell cat halconf.h | egrep -e "\#define"))
|
||||||
|
|
||||||
|
PLATFORMSRC := $(CHIBIOS)/os/hal/ports/common/ARMCMx/nvic.c \
|
||||||
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/TM4C129x/hal_lld.c \
|
||||||
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/uDMA/tiva_udma.c \
|
||||||
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPTM/hal_st_lld.c
|
||||||
|
ifneq ($(findstring HAL_USE_EXT TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPIO/hal_ext_lld.c
|
||||||
|
endif
|
||||||
|
ifneq ($(findstring HAL_USE_PAL TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPIO/hal_pal_lld.c
|
||||||
|
endif
|
||||||
|
ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/I2C/hal_i2c_lld.c
|
||||||
|
endif
|
||||||
|
ifneq ($(findstring HAL_USE_MAC TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += $(CHIBIOS_CONTRIB)/os/hal/ports/TIVA/LLD/MAC/hal_mac_lld.c
|
||||||
|
endif
|
||||||
|
ifneq ($(findstring HAL_USE_SPI TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/SSI/hal_spi_lld.c
|
||||||
|
endif
|
||||||
|
ifneq ($(findstring HAL_USE_GPT TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPTM/hal_gpt_lld.c
|
||||||
|
endif
|
||||||
|
ifneq ($(findstring HAL_USE_PWM TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/PWM/hal_pwm_lld.c
|
||||||
|
endif
|
||||||
|
ifneq ($(findstring HAL_USE_SERIAL TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/UART/hal_serial_lld.c
|
||||||
|
endif
|
||||||
|
ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
|
||||||
|
PLATFORMSRC += ${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/WDT/hal_wdg_lld.c
|
||||||
|
endif
|
||||||
|
else
|
||||||
PLATFORMSRC = ${CHIBIOS}/os/hal/ports/common/ARMCMx/nvic.c \
|
PLATFORMSRC = ${CHIBIOS}/os/hal/ports/common/ARMCMx/nvic.c \
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/TM4C129x/hal_lld.c \
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/TM4C129x/hal_lld.c \
|
||||||
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPIO/hal_ext_lld.c \
|
${CHIBIOS_CONTRIB}/os/hal/ports/TIVA/LLD/GPIO/hal_ext_lld.c \
|
||||||
|
|
|
@ -43,6 +43,12 @@ ifeq ($(USE_VERBOSE_COMPILE),)
|
||||||
USE_VERBOSE_COMPILE = no
|
USE_VERBOSE_COMPILE = no
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# If enabled, this option makes the build process faster by not compiling
|
||||||
|
# modules not used in the current configuration.
|
||||||
|
ifeq ($(USE_SMART_BUILD),)
|
||||||
|
USE_SMART_BUILD = yes
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build global options
|
# Build global options
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
|
@ -43,6 +43,12 @@ ifeq ($(USE_VERBOSE_COMPILE),)
|
||||||
USE_VERBOSE_COMPILE = no
|
USE_VERBOSE_COMPILE = no
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# If enabled, this option makes the build process faster by not compiling
|
||||||
|
# modules not used in the current configuration.
|
||||||
|
ifeq ($(USE_SMART_BUILD),)
|
||||||
|
USE_SMART_BUILD = yes
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build global options
|
# Build global options
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
|
@ -43,6 +43,12 @@ ifeq ($(USE_VERBOSE_COMPILE),)
|
||||||
USE_VERBOSE_COMPILE = no
|
USE_VERBOSE_COMPILE = no
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# If enabled, this option makes the build process faster by not compiling
|
||||||
|
# modules not used in the current configuration.
|
||||||
|
ifeq ($(USE_SMART_BUILD),)
|
||||||
|
USE_SMART_BUILD = yes
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build global options
|
# Build global options
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
|
@ -43,6 +43,12 @@ ifeq ($(USE_VERBOSE_COMPILE),)
|
||||||
USE_VERBOSE_COMPILE = no
|
USE_VERBOSE_COMPILE = no
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# If enabled, this option makes the build process faster by not compiling
|
||||||
|
# modules not used in the current configuration.
|
||||||
|
ifeq ($(USE_SMART_BUILD),)
|
||||||
|
USE_SMART_BUILD = yes
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build global options
|
# Build global options
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
|
@ -43,6 +43,12 @@ ifeq ($(USE_VERBOSE_COMPILE),)
|
||||||
USE_VERBOSE_COMPILE = no
|
USE_VERBOSE_COMPILE = no
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# If enabled, this option makes the build process faster by not compiling
|
||||||
|
# modules not used in the current configuration.
|
||||||
|
ifeq ($(USE_SMART_BUILD),)
|
||||||
|
USE_SMART_BUILD = yes
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build global options
|
# Build global options
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
# Compiler options here.
|
# Compiler options here.
|
||||||
ifeq ($(USE_OPT),)
|
ifeq ($(USE_OPT),)
|
||||||
USE_OPT = -O0 -ggdb -fomit-frame-pointer -falign-functions=16
|
USE_OPT = -O2 -ggdb -fomit-frame-pointer -falign-functions=16
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# C specific options here (added to USE_OPT).
|
# C specific options here (added to USE_OPT).
|
||||||
|
@ -43,6 +43,12 @@ ifeq ($(USE_VERBOSE_COMPILE),)
|
||||||
USE_VERBOSE_COMPILE = no
|
USE_VERBOSE_COMPILE = no
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# If enabled, this option makes the build process faster by not compiling
|
||||||
|
# modules not used in the current configuration.
|
||||||
|
ifeq ($(USE_SMART_BUILD),)
|
||||||
|
USE_SMART_BUILD = yes
|
||||||
|
endif
|
||||||
|
|
||||||
#
|
#
|
||||||
# Build global options
|
# Build global options
|
||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
Loading…
Reference in New Issue