mirror of
https://github.com/apache/nuttx.git
synced 2026-09-23 16:22:23 +08:00
fs/procfs: fix cmake no mm_pressure, fix kernel build error
Signed-off-by: buxiasen <buxiasen@xiaomi.com>
This commit is contained in:
+20
-15
@@ -17,23 +17,28 @@
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
if(NOT CONFIG_DISABLE_MOUNTPOINT)
|
||||
if(CONFIG_FS_PROCFS)
|
||||
|
||||
if(CONFIG_FS_PROCFS)
|
||||
set(SRCS
|
||||
fs_procfs.c
|
||||
fs_procfscpuinfo.c
|
||||
fs_procfscpuload.c
|
||||
fs_procfscritmon.c
|
||||
fs_procfsfdt.c
|
||||
fs_procfsiobinfo.c
|
||||
fs_procfsmeminfo.c
|
||||
fs_procfsproc.c
|
||||
fs_procfstcbinfo.c
|
||||
fs_procfsuptime.c
|
||||
fs_procfsutil.c
|
||||
fs_procfsversion.c)
|
||||
|
||||
set(SRCS
|
||||
fs_procfs.c
|
||||
fs_procfscpuinfo.c
|
||||
fs_procfscpuload.c
|
||||
fs_procfscritmon.c
|
||||
fs_procfsfdt.c
|
||||
fs_procfsiobinfo.c
|
||||
fs_procfsmeminfo.c
|
||||
fs_procfsproc.c
|
||||
fs_procfstcbinfo.c
|
||||
fs_procfsuptime.c
|
||||
fs_procfsutil.c
|
||||
fs_procfsversion.c)
|
||||
if(CONFIG_FS_PROCFS_INCLUDE_PRESSURE)
|
||||
list(APPEND SRCS fs_procfspressure.c)
|
||||
endif()
|
||||
|
||||
target_sources(fs PRIVATE ${SRCS})
|
||||
target_sources(fs PRIVATE ${SRCS})
|
||||
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user