123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- # List of all the ChibiOS/HAL files, there is no need to remove the files
- # from this list, you can disable parts of the HAL by editing halconf.h.
- ifeq ($(USE_SMART_BUILD),yes)
- # Configuration files directory
- ifeq ($(HALCONFDIR),)
- ifeq ($(CONFDIR),)
- HALCONFDIR = .
- else
- HALCONFDIR := $(CONFDIR)
- endif
- endif
- HALCONF := $(strip $(shell cat $(HALCONFDIR)/halconf.h | egrep -e "\#define"))
- HALSRC := $(CHIBIOS)/os/hal/src/hal.c \
- $(CHIBIOS)/os/hal/src/hal_st.c \
- $(CHIBIOS)/os/hal/src/hal_buffers.c \
- $(CHIBIOS)/os/hal/src/hal_queues.c \
- $(CHIBIOS)/os/hal/src/hal_mmcsd.c
- ifneq ($(findstring HAL_USE_ADC TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_adc.c
- endif
- ifneq ($(findstring HAL_USE_CAN TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_can.c
- endif
- ifneq ($(findstring HAL_USE_CRY TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_crypto.c
- endif
- ifneq ($(findstring HAL_USE_DAC TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_dac.c
- endif
- ifneq ($(findstring HAL_USE_GPT TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_gpt.c
- endif
- ifneq ($(findstring HAL_USE_I2C TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_i2c.c
- endif
- ifneq ($(findstring HAL_USE_I2S TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_i2s.c
- endif
- ifneq ($(findstring HAL_USE_ICU TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_icu.c
- endif
- ifneq ($(findstring HAL_USE_EICU TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_eicu.c
- endif
- ifneq ($(findstring HAL_USE_MAC TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_mac.c
- endif
- ifneq ($(findstring HAL_USE_MMC_SPI TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_mmc_spi.c
- endif
- ifneq ($(findstring HAL_USE_PAL TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_pal.c
- endif
- ifneq ($(findstring HAL_USE_PWM TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_pwm.c
- endif
- ifneq ($(findstring HAL_USE_RTC TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_rtc.c
- endif
- ifneq ($(findstring HAL_USE_SDC TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_sdc.c
- endif
- ifneq ($(findstring HAL_USE_SERIAL TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_serial.c
- endif
- ifneq ($(findstring HAL_USE_SERIAL_USB TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_serial_usb.c
- endif
- ifneq ($(findstring HAL_USE_SIO TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_sio.c
- endif
- ifneq ($(findstring HAL_USE_SPI TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_spi.c
- endif
- ifneq ($(findstring HAL_USE_TRNG TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_trng.c
- endif
- ifneq ($(findstring HAL_USE_UART TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_uart.c
- endif
- ifneq ($(findstring HAL_USE_USB TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_usb.c
- endif
- ifneq ($(findstring HAL_USE_WDG TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_wdg.c
- endif
- ifneq ($(findstring HAL_USE_WSPI TRUE,$(HALCONF)),)
- HALSRC += $(CHIBIOS)/os/hal/src/hal_wspi.c
- endif
- else
- HALSRC = $(CHIBIOS)/os/hal/src/hal.c \
- $(CHIBIOS)/os/hal/src/hal_buffers.c \
- $(CHIBIOS)/os/hal/src/hal_queues.c \
- $(CHIBIOS)/os/hal/src/hal_mmcsd.c \
- $(CHIBIOS)/os/hal/src/hal_adc.c \
- $(CHIBIOS)/os/hal/src/hal_can.c \
- $(CHIBIOS)/os/hal/src/hal_crypto.c \
- $(CHIBIOS)/os/hal/src/hal_dac.c \
- $(CHIBIOS)/os/hal/src/hal_gpt.c \
- $(CHIBIOS)/os/hal/src/hal_i2c.c \
- $(CHIBIOS)/os/hal/src/hal_i2s.c \
- $(CHIBIOS)/os/hal/src/hal_icu.c \
- $(CHIBIOS)/os/hal/src/hal_eicu.c \
- $(CHIBIOS)/os/hal/src/hal_mac.c \
- $(CHIBIOS)/os/hal/src/hal_mmc_spi.c \
- $(CHIBIOS)/os/hal/src/hal_pal.c \
- $(CHIBIOS)/os/hal/src/hal_pwm.c \
- $(CHIBIOS)/os/hal/src/hal_rtc.c \
- $(CHIBIOS)/os/hal/src/hal_sdc.c \
- $(CHIBIOS)/os/hal/src/hal_serial.c \
- $(CHIBIOS)/os/hal/src/hal_serial_usb.c \
- $(CHIBIOS)/os/hal/src/hal_sio.c \
- $(CHIBIOS)/os/hal/src/hal_spi.c \
- $(CHIBIOS)/os/hal/src/hal_st.c \
- $(CHIBIOS)/os/hal/src/hal_trng.c \
- $(CHIBIOS)/os/hal/src/hal_uart.c \
- $(CHIBIOS)/os/hal/src/hal_usb.c \
- $(CHIBIOS)/os/hal/src/hal_wdg.c \
- $(CHIBIOS)/os/hal/src/hal_wspi.c
- endif
- # Required include directories
- HALINC = $(CHIBIOS)/os/hal/include
- # Shared variables
- ALLCSRC += $(HALSRC)
- ALLINC += $(HALINC)
|