cmake: add newly added sources to cmake

These newly added files are missing from cmake.

Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
xuxingliang 2024-06-25 22:27:33 +08:00 committed by Xiang Xiao
parent f417d14fe7
commit d655569a7c
4 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,30 @@
# ##############################################################################
# arch/arm64/src/goldfish/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.
#
# ##############################################################################
set(SRCS goldfish_boot.c goldfish_serial.c goldfish_timer.c)
if(CONFIG_RTC_PL031)
list(APPEND SRCS goldfish_rtc.c)
endif()
if(CONFIG_ARCH_EARLY_PRINT)
list(APPEND SRCS goldfish_lowputc.S)
endif()
target_sources(arch PRIVATE ${SRCS})

View File

@ -120,5 +120,9 @@ if(CONFIG_INPUT)
list(APPEND SRCS spq10kbd.c)
endif()
if(CONFIG_INPUT_GOLDFISH_EVENTS)
list(APPEND SRCS goldfish_events.c)
endif()
target_sources(drivers PRIVATE ${SRCS})
endif()

View File

@ -71,4 +71,12 @@ if(CONFIG_BLK_RPMSG_SERVER)
list(APPEND SRCS rpmsgblk_server.c)
endif()
if(NOT CONFIG_DEV_OPTEE_NONE)
list(APPEND SRCS optee.c)
endif()
if(CONFIG_GOLDFISH_PIPE)
list(APPEND SRCS goldfish_pipe.c)
endif()
target_sources(drivers PRIVATE ${SRCS})

View File

@ -86,4 +86,8 @@ if(CONFIG_BATTERY_MONITOR)
endif()
endif()
if(CONFIG_GOLDFISH_BATTERY)
list(APPEND SRCS goldfish_battery.c)
endif()
target_sources(drivers PRIVATE ${SRCS})