From d655569a7c7d9aaca5d1642b7bbba76e941fcfbe Mon Sep 17 00:00:00 2001 From: xuxingliang Date: Tue, 25 Jun 2024 22:27:33 +0800 Subject: [PATCH] cmake: add newly added sources to cmake These newly added files are missing from cmake. Signed-off-by: xuxingliang --- arch/arm64/src/goldfish/CMakeLists.txt | 30 ++++++++++++++++++++++++++ drivers/input/CMakeLists.txt | 4 ++++ drivers/misc/CMakeLists.txt | 8 +++++++ drivers/power/battery/CMakeLists.txt | 4 ++++ 4 files changed, 46 insertions(+) create mode 100644 arch/arm64/src/goldfish/CMakeLists.txt diff --git a/arch/arm64/src/goldfish/CMakeLists.txt b/arch/arm64/src/goldfish/CMakeLists.txt new file mode 100644 index 0000000000..95c6a048c9 --- /dev/null +++ b/arch/arm64/src/goldfish/CMakeLists.txt @@ -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}) diff --git a/drivers/input/CMakeLists.txt b/drivers/input/CMakeLists.txt index 48a04ba4a5..55e718dd56 100644 --- a/drivers/input/CMakeLists.txt +++ b/drivers/input/CMakeLists.txt @@ -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() diff --git a/drivers/misc/CMakeLists.txt b/drivers/misc/CMakeLists.txt index ad85c35e9d..a6dc2deae6 100644 --- a/drivers/misc/CMakeLists.txt +++ b/drivers/misc/CMakeLists.txt @@ -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}) diff --git a/drivers/power/battery/CMakeLists.txt b/drivers/power/battery/CMakeLists.txt index b782fd502b..282c8deacb 100644 --- a/drivers/power/battery/CMakeLists.txt +++ b/drivers/power/battery/CMakeLists.txt @@ -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})