cmake:refine nuttx cmake build system fix CMake build missing part

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19
2024-04-07 16:42:38 +08:00
committed by Xiang Xiao
parent a5aea61537
commit 351781d601
29 changed files with 188 additions and 129 deletions
+23
View File
@@ -0,0 +1,23 @@
# ##############################################################################
# mm/kmap/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_MM_KMAP)
target_sources(mm PRIVATE kmm_map.c)
endif()
+2 -1
View File
@@ -37,7 +37,8 @@ if(CONFIG_MM_KERNEL_HEAP)
kmm_memalign.c
kmm_realloc.c
kmm_zalloc.c
kmm_heapmember.c)
kmm_heapmember.c
kmm_memdump.c)
if(CONFIG_DEBUG_MM)
list(APPEND SRCS kmm_checkcorruption.c)
+3 -3
View File
@@ -23,8 +23,10 @@
# User heap allocator
set(SRCS
umm_globals.c
umm_initialize.c
umm_addregion.c
umm_malloc_size.c
umm_brkaddr.c
umm_calloc.c
umm_extend.c
@@ -35,9 +37,7 @@ set(SRCS
umm_realloc.c
umm_zalloc.c
umm_heapmember.c
umm_globals.c
umm_memdump.c
umm_malloc_size.c)
umm_memdump.c)
if(CONFIG_BUILD_KERNEL)
list(APPEND SRCS umm_sbrk.c)