mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 14:53:47 +08:00
cmake:refine nuttx cmake build system fix CMake build missing part
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
@@ -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()
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user