Skip to content

Commit 7def098

Browse files
xuxin930xiaoxiang781216
authored andcommitted
cmake:sync arm sub arch CMake scripts missing sources
Signed-off-by: xuxin19 <[email protected]>
1 parent 4667163 commit 7def098

File tree

4 files changed

+48
-12
lines changed

4 files changed

+48
-12
lines changed

arch/arm/src/arm/CMakeLists.txt

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# ##############################################################################
2+
# arch/arm/src/arm/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+
set(SRCS arm_head.S)
22+
23+
list(
24+
APPEND
25+
SRCS
26+
arm_dataabort.c
27+
arm_doirq.c
28+
arm_initialstate.c
29+
arm_prefetchabort.c
30+
arm_schedulesigaction.c
31+
arm_sigdeliver.c
32+
arm_syscall.c
33+
arm_tcbinfo.c
34+
arm_undefinedinsn.c
35+
arm_cache.S
36+
arm_vectors.S
37+
arm_vectortab.S
38+
arm_saveusercontext.S)
39+
40+
if(CONFIG_PAGING)
41+
list(APPEND SRCS arm_pginitialize.c arm_checkmapping.c arm_allocpage.c
42+
arm_va2pte.c)
43+
endif()
44+
45+
target_sources(arch PRIVATE ${SRCS})

arch/arm/src/armv7-a/CMakeLists.txt

+1-4
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,9 @@ list(
4646
arm_syscall.c
4747
arm_tcbinfo.c
4848
arm_undefinedinsn.c
49+
arm_perf.c
4950
cp15_cacheops.c)
5051

51-
if(CONFIG_ARCH_PERF_EVENTS)
52-
list(APPEND SRCS arm_perf.c)
53-
endif()
54-
5552
if(CONFIG_ARMV7A_GICv2M)
5653
list(APPEND SRCS arm_gicv2m.c)
5754
endif()

arch/arm/src/armv7-m/CMakeLists.txt

+1-4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ set(SRCS
3232
arm_initialstate.c
3333
arm_itm.c
3434
arm_memfault.c
35+
arm_perf.c
3536
arm_schedulesigaction.c
3637
arm_sigdeliver.c
3738
arm_svcall.c
@@ -41,10 +42,6 @@ set(SRCS
4142
arm_usagefault.c
4243
arm_vectors.c)
4344

44-
if(CONFIG_ARCH_PERF_EVENTS)
45-
list(APPEND SRCS arm_perf.c)
46-
endif()
47-
4845
if(CONFIG_ARMV7M_SYSTICK)
4946
list(APPEND SRCS arm_systick.c)
5047
endif()

arch/arm/src/armv8-m/CMakeLists.txt

+1-4
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ set(SRCS
3030
arm_initialstate.c
3131
arm_itm.c
3232
arm_memfault.c
33+
arm_perf.c
3334
arm_sau.c
3435
arm_schedulesigaction.c
3536
arm_securefault.c
@@ -42,10 +43,6 @@ set(SRCS
4243
arm_usagefault.c
4344
arm_vectors.c)
4445

45-
if(CONFIG_ARCH_PERF_EVENTS)
46-
list(APPEND SRCS arm_perf.c)
47-
endif()
48-
4946
if(CONFIG_ARMV8M_SYSTICK)
5047
list(APPEND SRCS arm_systick.c)
5148
endif()

0 commit comments

Comments
 (0)