Skip to content

Commit 4667163

Browse files
xuxin930xiaoxiang781216
authored andcommitted
cmake:add driver thermal CMake scripts
Signed-off-by: xuxin19 <[email protected]>
1 parent 351781d commit 4667163

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

drivers/thermal/CMakeLists.txt

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# ##############################################################################
2+
# drivers/thermal/CMakeLists.txt
3+
#
4+
# Licensed to the Apache Software Foundation (ASF) under one or more contributor
5+
# license agreements. See the NOTICE file distributed with this work for
6+
# additional information regarding copyright ownership. The ASF licenses this
7+
# file to you under the Apache License, Version 2.0 (the "License"); you may not
8+
# use this file except in compliance with the License. You may obtain a copy of
9+
# the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16+
# License for the specific language governing permissions and limitations under
17+
# the License.
18+
#
19+
# ##############################################################################
20+
# ##############################################################################
21+
22+
# Include thermal sources
23+
24+
if(CONFIG_THERMAL)
25+
list(APPEND SRCS thermal_core.c)
26+
endif()
27+
28+
if(CONFIG_THERMAL_GOVERNOR_STEP_WISE)
29+
list(APPEND SRCS thermal_step_wise.c)
30+
endif()
31+
32+
if(CONFIG_THERMAL_CDEV_CPUFREQ)
33+
list(APPEND SRCS thermal_cpufreq_cooling.c)
34+
endif()
35+
36+
if(CONFIG_THERMAL_PROCFS)
37+
list(APPEND SRCS thermal_procfs.c)
38+
endif()
39+
40+
if(CONFIG_THERMAL_DUMMY)
41+
list(APPEND SRCS thermal_dummy.c)
42+
endif()
43+
44+
target_sources(drivers PRIVATE ${SRCS})

0 commit comments

Comments
 (0)