提交 a6dfa035 编写于 作者: O openharmony_ci 提交者: Gitee

!109 HDF-I2S makefile adapter

Merge pull request !109 from susha/master
......@@ -187,6 +187,13 @@ hdf_driver(module_name) {
]
}
if (defined(LOSCFG_DRIVERS_HDF_PLATFORM_I2S)) {
sources += [
"$HDF_FRAMEWORKS_PATH/support/platform/src/i2s_if.c",
"$HDF_FRAMEWORKS_PATH/support/platform/src/i2s_core.c",
]
}
if (defined(LOSCFG_NET_LWIP_SACK)) {
sources += [ "network/src/netbuf_adapter.c" ]
......
......@@ -132,6 +132,13 @@ config DRIVERS_HDF_PLATFORM_SPI
help
Answer Y to enable HDF platform spi driver.
config DRIVERS_HDF_PLATFORM_I2S
bool "Enable HDF platform i2s driver"
default n
depends on DRIVERS_HDF_PLATFORM
help
Answer Y to enable HDF platform i2s driver.
config DRIVERS_HDF_PLATFORM_WATCHDOG
bool "Enable HDF platform watchdog driver"
default n
......
......@@ -166,6 +166,11 @@ ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_UART), y)
LOCAL_SRCS += ./platform/src/uart_dev.c
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_I2S), y)
LOCAL_SRCS += $(HDF_FRAMEWORKS)/support/platform/src/i2s_if.c \
$(HDF_FRAMEWORKS)/support/platform/src/i2s_core.c
endif
ifeq ($(LOSCFG_NET_LWIP_SACK), y)
LOCAL_SRCS += ./network/src/netbuf_adapter.c
ifeq ($(LOSCFG_DRIVERS_HDF_WIFI), y)
......
......@@ -123,6 +123,13 @@ hdf_driver(module_name) {
]
}
if (defined(LOSCFG_DRIVERS_HDF_PLATFORM_I2S)) {
sources += [
"$HDF_TEST_FRAMWORK_ROOT/platform/common/i2s_test.c",
"$HDF_TEST_FRAMWORK_ROOT/platform/hdf_i2s_entry_test.c",
]
}
if (defined(LOSCFG_DRIVERS_HDF_PLATFORM_RTC)) {
sources += [ "$HDF_TEST_FRAMWORK_ROOT/platform/hdf_rtc_entry_test.c" ]
}
......
......@@ -70,6 +70,10 @@ LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/common/i2c_test.c
LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/common/i2c_driver_test.c
LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/hdf_i2c_entry_test.c
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_I2S), y)
LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/common/i2s_test.c
LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/hdf_i2s_entry_test.c
endif
ifeq ($(LOSCFG_DRIVERS_HDF_PLATFORM_ADC), y)
LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/common/adc_test.c
LOCAL_SRCS += $(HDF_TEST_FRAMWORK_ROOT)/platform/common/adc_driver_test.c
......
......@@ -41,6 +41,7 @@ if (board_name == "hi3516dv300" || board_name == "hispark_taurus") {
"//drivers/framework/support/platform/test/unittest/common/hdf_pwm_test.cpp",
"//drivers/framework/support/platform/test/unittest/common/hdf_rtc_test.cpp",
"//drivers/framework/support/platform/test/unittest/common/hdf_spi_test.cpp",
"//drivers/framework/support/platform/test/unittest/common/hdf_i2s_test.cpp",
"//drivers/framework/support/platform/test/unittest/common/hdf_uart_test.cpp",
"//drivers/framework/support/platform/test/unittest/common/hdf_watchdog_test.cpp",
]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册