cmake:fix drivers build block during cmake reforming
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
parent
6364fc6e69
commit
f2f0d7fbad
|
@ -51,6 +51,10 @@ if(CONFIG_ELF)
|
|||
list(APPEND SRCS elf.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_NXFLAT)
|
||||
list(APPEND SRCS nxflat.c)
|
||||
endif()
|
||||
|
||||
# Builtin application interfaces
|
||||
|
||||
if(CONFIG_BUILTIN)
|
||||
|
|
|
@ -48,6 +48,20 @@ if(CONFIG_DRIVERS_AUDIO)
|
|||
list(APPEND SRCS cs4344.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_AUDIO_ES8311)
|
||||
list(APPEND SRCS es8311.c)
|
||||
if(CONFIG_ES8311_REGDUMP)
|
||||
list(APPEND SRCS es8311_debug.c)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CONFIG_AUDIO_ES8388)
|
||||
list(APPEND SRCS es8388.c)
|
||||
if(CONFIG_ES8388_REGDUMP)
|
||||
list(APPEND SRCS es8388_debug.c)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(CONFIG_AUDIO_WM8994)
|
||||
list(APPEND SRCS wm8994.c)
|
||||
|
||||
|
@ -84,5 +98,8 @@ if(CONFIG_DRIVERS_AUDIO)
|
|||
list(APPEND SRCS audio_i2s.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_AUDIO_DMA)
|
||||
list(APPEND SRCS audio_dma.c)
|
||||
endif()
|
||||
target_sources(drivers PRIVATE ${SRCS})
|
||||
endif()
|
||||
|
|
|
@ -76,6 +76,10 @@ if(CONFIG_INPUT)
|
|||
list(APPEND SRCS cypress_mbr3108.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_INPUT_GT9XX)
|
||||
list(APPEND SRCS gt9xx.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_INPUT_BUTTONS)
|
||||
list(APPEND SRCS button_upper.c)
|
||||
|
||||
|
|
|
@ -50,10 +50,17 @@ if(CONFIG_IOEXPANDER)
|
|||
list(APPEND SRCS pcf8574.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_IOEXPANDER_PCF8575)
|
||||
list(APPEND SRCS pcf8575.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_IOEXPANDER_MCP23X17)
|
||||
list(APPEND SRCS mcp23x17.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_IOEXPANDER_SX1509)
|
||||
list(APPEND SRCS sx1509.c)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# GPIO test device driver (independent of IOEXPANDERS)
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
# ##############################################################################
|
||||
# drivers/ipcc/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_IPCC)
|
||||
|
||||
set(SRCS ipcc_poll.c ipcc_read.c ipcc_write.c ipcc_register.c ipcc_open.c
|
||||
ipcc_close.c)
|
||||
|
||||
if(NOT CONFIG_DISABLE_PSEUDOFS_OPERATIONS)
|
||||
list(APPEND SRCS ipcc_unlink.c)
|
||||
endif()
|
||||
|
||||
target_sources(drivers PRIVATE ${SRCS})
|
||||
|
||||
endif()
|
|
@ -147,6 +147,9 @@ if(CONFIG_LCD)
|
|||
list(APPEND SRCS gc9a01.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_LCD_JD9851)
|
||||
list(APPEND SRCS jd9851.c)
|
||||
endif()
|
||||
endif() # CONFIG_LCD
|
||||
|
||||
if(CONFIG_SLCD)
|
||||
|
|
|
@ -41,6 +41,10 @@ if(CONFIG_RGBLED)
|
|||
list(APPEND SRCS rgbled.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_LP503X)
|
||||
list(APPEND SRCS lp503x.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_PCA9635PW)
|
||||
list(APPEND SRCS pca9635pw.c)
|
||||
endif()
|
||||
|
|
|
@ -0,0 +1,45 @@
|
|||
# ##############################################################################
|
||||
# drivers/modem/alt1250/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_MODEM_ALT1250)
|
||||
set(SRCS
|
||||
alt1250.c
|
||||
altcom_pkt.c
|
||||
altcom_hdlr.c
|
||||
altcom_hdlr_pdn.c
|
||||
altcom_hdlr_radio.c
|
||||
altcom_hdlr_net.c
|
||||
altcom_hdlr_psave.c
|
||||
altcom_hdlr_sim.c
|
||||
altcom_hdlr_pin.c
|
||||
altcom_hdlr_socket.c
|
||||
altcom_hdlr_sms.c
|
||||
altcom_hdlr_firmware.c
|
||||
altcom_hdlr_log.c
|
||||
altcom_hdlr_other.c
|
||||
altcom_lwm2m_hdlr.c
|
||||
altcom_errno.c
|
||||
altmdm.c
|
||||
altmdm_event.c
|
||||
altmdm_spi.c
|
||||
altmdm_timer.c)
|
||||
|
||||
target_sources(drivers PRIVATE ${SRCS})
|
||||
endif()
|
|
@ -17,4 +17,10 @@
|
|||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
nuttx_add_subdirectory()
|
||||
if(CONFIG_MOTOR_FOC)
|
||||
nuttx_add_subdirectory()
|
||||
endif()
|
||||
|
||||
if(CONFIG_MOTOR_UPPER)
|
||||
target_sources(drivers PRIVATE motor.c)
|
||||
endif()
|
||||
|
|
|
@ -22,6 +22,10 @@
|
|||
|
||||
set(SRCS serial.c serial_io.c)
|
||||
|
||||
if(CONFIG_UART_PL011)
|
||||
list(APPEND SRCS serial_pl011.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_SERIAL_RXDMA)
|
||||
list(APPEND SRCS serial_dma.c)
|
||||
elseif(CONFIG_SERIAL_TXDMA)
|
||||
|
|
|
@ -49,10 +49,18 @@ if(CONFIG_RTC_PCF85263)
|
|||
list(APPEND SRCS pcf85263.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_RTC_PL031)
|
||||
list(APPEND SRCS pl031.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_RTC_MCP794XX)
|
||||
list(APPEND SRCS mcp794xx.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_RTC_RX8010SJ)
|
||||
list(APPEND SRCS rx8010.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_RTC_RPMSG)
|
||||
list(APPEND SRCS rpmsg_rtc.c)
|
||||
endif()
|
||||
|
@ -73,4 +81,8 @@ if(CONFIG_PWM)
|
|||
list(APPEND SRCS pwm.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_CAPTURE)
|
||||
list(APPEND SRCS capture.c)
|
||||
endif()
|
||||
|
||||
target_sources(drivers PRIVATE ${SRCS})
|
||||
|
|
|
@ -36,7 +36,7 @@ if(CONFIG_USBDEV)
|
|||
endif()
|
||||
|
||||
if(CONFIG_USBDEV_COMPOSITE)
|
||||
list(APPEND SRCS composite.c composite_desc.c)
|
||||
list(APPEND SRCS composite_desc.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_USBDEV_TRACE_STRINGS)
|
||||
|
@ -59,7 +59,7 @@ if(CONFIG_USBDEV)
|
|||
list(APPEND SRCS cdcecm.c)
|
||||
endif()
|
||||
|
||||
list(APPEND SRCS usbdev_req.c usbdev_trace.c usbdev_trprintf.c)
|
||||
list(APPEND SRCS composite.c usbdev_req.c usbdev_trace.c usbdev_trprintf.c)
|
||||
|
||||
target_sources(drivers PRIVATE ${SRCS})
|
||||
endif()
|
||||
|
|
|
@ -27,6 +27,10 @@ if(CONFIG_USBMISC)
|
|||
list(APPEND SRCS fusb301.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_FUSB302)
|
||||
list(APPEND SRCS fusb302.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_FUSB303)
|
||||
list(APPEND SRCS fusb303.c)
|
||||
endif()
|
||||
|
|
|
@ -50,6 +50,13 @@ if(CONFIG_DRIVERS_VIDEO)
|
|||
|
||||
endif()
|
||||
|
||||
if(CONFIG_GOLDFISH_FB)
|
||||
list(APPEND SRCS goldfish_fb.c)
|
||||
endif()
|
||||
|
||||
if(CONFIG_GOLDFISH_CAMERA)
|
||||
list(APPEND SRCS goldfish_camera.c)
|
||||
endif()
|
||||
# These video drivers depend on SPI support
|
||||
|
||||
if(CONFIG_SPI)
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
# ##############################################################################
|
||||
# drivers/video/mipidsi/CMakeLists.txt
|
||||
#
|
||||
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
|
||||
# license agreements. See the NOTICE file distributed with this work for
|
||||
# additional information regarding copyright ownership. The ASF licenses this
|
||||
# file to you under the Apache License, Version 2.0 (the "License"); you may not
|
||||
# use this file except in compliance with the License. You may obtain a copy of
|
||||
# the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
# License for the specific language governing permissions and limitations under
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_MIPI_DSI)
|
||||
set(SRCS mipi_dsi_device.c mipi_dsi_host.c mipi_dsi_packet.c)
|
||||
|
||||
if(CONFIG_MIPI_DSI_DRIVER)
|
||||
list(APPEND SRCS mipi_dsi_device_driver.c mipi_dsi_host_driver.c)
|
||||
endif()
|
||||
|
||||
target_sources(drivers PRIVATE ${SRCS})
|
||||
endif()
|
Loading…
Reference in New Issue