130 lines
3.6 KiB
Makefile
130 lines
3.6 KiB
Makefile
|
|
CFLAGS_INC += -I$(TOP)/PLAT/driver/hal/common/inc \
|
|
-I$(TOP)/PLAT/driver/hal/$(CHIP)/$(CORE)/inc \
|
|
-I$(TOP)/PLAT/driver/hal/$(CHIP)/common/inc \
|
|
|
|
ifeq ($(TYPE), ec716s)
|
|
CFLAGS_INC += -I$(TOP)/PLAT/driver/hal/$(CHIP)/$(CORE)/inc/ec716
|
|
else ifeq ($(TYPE), ec716e)
|
|
CFLAGS_INC += -I$(TOP)/PLAT/driver/hal/$(CHIP)/$(CORE)/inc/ec716
|
|
else
|
|
CFLAGS_INC += -I$(TOP)/PLAT/driver/hal/$(CHIP)/$(CORE)/inc/ec718
|
|
endif
|
|
|
|
|
|
libdriverprivate-y += PLAT/driver/hal/$(CHIP)/common/src/acmsgtype.o
|
|
|
|
ifeq ($(CORE),ap)
|
|
|
|
ifeq ($(DRIVER_IPC_ENABLE), y)
|
|
libdriverprivate-y += PLAT/driver/hal/$(CHIP)/ap/src/acipcapi.o
|
|
endif
|
|
|
|
ifeq ($(DRIVER_CPADC_ENABLE), y)
|
|
libdriverprivate-y += PLAT/driver/hal/$(CHIP)/$(CORE)/src/hal_adcproxy.o
|
|
endif
|
|
|
|
ifeq ($(DRIVER_PWRKEY_ENABLE), y)
|
|
libdriver-y += PLAT/driver/hal/$(CHIP)/$(CORE)/src/hal_pwrkey.o
|
|
endif
|
|
|
|
ifeq ($(DRIVER_CHARGE_ENABLE), y)
|
|
libdriver-y += PLAT/driver/hal/$(CHIP)/$(CORE)/src/hal_charge.o
|
|
endif
|
|
|
|
ifeq ($(DRIVER_ALARM_ENABLE), y)
|
|
libdriver-y += PLAT/driver/hal/$(CHIP)/$(CORE)/src/hal_alarm.o
|
|
endif
|
|
|
|
|
|
libdriver-y += PLAT/driver/hal/$(CHIP)/$(CORE)/src/hal_misc.o
|
|
|
|
libdriver-$(BUILD_OS) += PLAT/driver/hal/common/src/ecuiccapi.o
|
|
|
|
libdriver-$(DRIVER_EXCP_ENABLE) += PLAT/driver/hal/common/src/exception_dump.o \
|
|
PLAT/driver/hal/$(CHIP)/$(CORE)/src/hal_dumpMedia.o \
|
|
PLAT/driver/hal/$(CHIP)/$(CORE)/src/hal_uartDump.o
|
|
|
|
|
|
ifeq ($(CHIP),ec7xx)
|
|
ifeq ($(TYPE), ec716s)
|
|
libdriverprivate-y += PLAT/driver/hal/$(CHIP)/ap/src/ec716/hal_trim.o
|
|
else ifeq ($(TYPE), ec716e)
|
|
libdriverprivate-y += PLAT/driver/hal/$(CHIP)/ap/src/ec716/hal_trim.o
|
|
else
|
|
libdriverprivate-y += PLAT/driver/hal/$(CHIP)/ap/src/ec718/hal_trim.o
|
|
endif
|
|
endif
|
|
ifeq ($(CHIP),ec618)
|
|
libdriverprivate-y += PLAT/driver/hal/$(CHIP)/ap/src/hal_trim.o
|
|
endif
|
|
|
|
libdriverprivate-$(DRIVER_RFCALI_ENABLE) += PLAT/driver/hal/$(CHIP)/ap/src/hal_rfCali.o
|
|
|
|
libdriverprivate-$(DRIVER_PHYHAL_ENABLE) += PLAT/driver/hal/$(CHIP)/ap/src/hal_phy.o
|
|
|
|
|
|
ifeq ($(CHIP), ec7xx)
|
|
libdriverprivate-$(DRIVER_ACVOICE_ENG_ENABLE) += PLAT/driver/hal/$(CHIP)/ap/src/hal_voice_eng.o
|
|
libdriver-$(DRIVER_ACVOICE_ENG_ENABLE) += PLAT/driver/hal/$(CHIP)/ap/src/hal_voice_eng_mem.o
|
|
endif
|
|
|
|
libusbprivate-$(BUILD_OS) += PLAT/driver/hal/common/src/sct_aes_sha.o \
|
|
PLAT/driver/hal/common/src/sct_eea_eia.o \
|
|
PLAT/driver/hal/common/src/sct_ip_cks.o \
|
|
PLAT/driver/hal/common/src/sct_usb_tx_parallel.o \
|
|
PLAT/driver/hal/common/src/sct_ppp_eea_crc.o
|
|
|
|
ifeq ($(CHIP), ec7xx)
|
|
libusbprivate-$(BUILD_OS) += PLAT/driver/hal/common/src/utfw_tx.o
|
|
endif
|
|
|
|
|
|
|
|
endif
|
|
|
|
ifeq ($(CORE),cp)
|
|
ifeq ($(DRIVER_IPC_ENABLE), y)
|
|
libdriverprivate-y += PLAT/driver/hal/$(CHIP)/cp/src/caipcapi.o
|
|
endif
|
|
|
|
ifeq ($(EXCEPTION_FLASH_DUMP_ENABLE), y)
|
|
libdriverprivate-y += PLAT/driver/hal/common/src/exception_dump.o
|
|
endif
|
|
endif
|
|
|
|
ifeq ($(DRIVER_EXCP_ENABLE), y)
|
|
CFLAGS += -DEC_ASSERT_FLAG
|
|
libdriverprivate-y += PLAT/driver/hal/common/src/exception_process.o
|
|
endif
|
|
|
|
libdriver-y += PLAT/driver/hal/common/src/ec_string.o
|
|
|
|
libdriverprivate-$(BUILD_OS) +=PLAT/driver/hal/common/src/sys_record.o
|
|
|
|
ifeq ($(DRIVER_HAL_ADC_ENABLE), y)
|
|
libdriver-y += PLAT/driver/hal/$(CHIP)/$(CORE)/src/hal_adc.o
|
|
endif
|
|
|
|
ifeq ($(DRIVER_I2S_ENABLE), y)
|
|
libdriver-y += PLAT/driver/hal/$(CHIP)/$(CORE)/src/hal_i2s.o
|
|
endif
|
|
|
|
ifeq ($(CHIP), ec7xx)
|
|
ifeq ($(DRIVER_I2C_ENABLE), y)
|
|
libdriver-y += PLAT/driver/hal/$(CHIP)/$(CORE)/src/hal_i2c.o
|
|
endif
|
|
|
|
ifeq ($(DRIVER_POWBACKOFF_ENABLE), y)
|
|
libdriver-y += PLAT/driver/hal/$(CHIP)/$(CORE)/src/hal_powBackOff.o
|
|
endif
|
|
|
|
endif
|
|
|
|
ifeq ($(THIRDPARTY_DHCPD_ENABLE),y)
|
|
CFLAGS += -DDHCPD_ENABLE_DEFINE=1
|
|
else
|
|
CFLAGS += -DDHCPD_ENABLE_DEFINE=0
|
|
endif
|
|
|