2016-11-16 23:57:05 +08:00
|
|
|
ifdef CONFIG_QMSI
|
|
|
|
|
2016-10-27 05:32:44 +08:00
|
|
|
KBUILD_CPPFLAGS +=-DENABLE_EXTERNAL_ISR_HANDLING
|
2016-11-16 23:57:05 +08:00
|
|
|
|
2016-05-25 21:03:33 +08:00
|
|
|
ifdef CONFIG_QMSI_LIBRARY
|
2016-07-07 22:08:57 +08:00
|
|
|
ZEPHYRINCLUDE += -I$(CONFIG_QMSI_INSTALL_PATH)/include
|
2016-05-25 21:03:33 +08:00
|
|
|
LIB_INCLUDE_DIR += -L$(CONFIG_QMSI_INSTALL_PATH:"%"=%)/lib
|
|
|
|
ALL_LIBS += qmsi
|
2016-05-18 20:40:07 +08:00
|
|
|
endif
|
2016-07-07 22:08:57 +08:00
|
|
|
ifdef CONFIG_QMSI_BUILTIN
|
|
|
|
ZEPHYRINCLUDE +=-I$(srctree)/ext/hal/qmsi/include
|
|
|
|
ZEPHYRINCLUDE +=-I$(srctree)/ext/hal/qmsi/drivers/include
|
|
|
|
ifeq ($(CONFIG_ARC),y)
|
|
|
|
ZEPHYRINCLUDE +=-I$(srctree)/ext/hal/qmsi/drivers/sensor/include
|
|
|
|
endif
|
2016-08-30 20:27:26 +08:00
|
|
|
ZEPHYRINCLUDE +=-I$(srctree)/ext/hal/qmsi/soc/$(patsubst %_ss,%,$(SOC_SERIES))/include/
|
2016-07-07 22:08:57 +08:00
|
|
|
endif
|
2016-10-20 02:27:00 +08:00
|
|
|
|
|
|
|
ifdef CONFIG_SYS_POWER_DEEP_SLEEP
|
|
|
|
KBUILD_CPPFLAGS +=-DENABLE_RESTORE_CONTEXT
|
|
|
|
endif
|
2016-10-25 21:41:43 +08:00
|
|
|
|
|
|
|
SOC_WATCH_ENABLE ?= 0
|
|
|
|
ifeq ($(CONFIG_SOC_WATCH),y)
|
|
|
|
SOC_WATCH_ENABLE := 1
|
|
|
|
CFLAGS += -DSOC_WATCH_ENABLE
|
2016-11-16 23:57:05 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
endif
|