You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/10/01 13:50:13 UTC
(nuttx-apps) branch master updated (9cc9a830e -> 3eb2124ca)
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
from 9cc9a830e ostest/smpcall: add smp call from interrupt test
new 8e6b13489 system/fdt: add cmake support
new 3eb2124ca system/dhcpc: fix cmake program name
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
system/dhcpc/CMakeLists.txt | 2 +-
system/fdt/CMakeLists.txt | 97 +++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 98 insertions(+), 1 deletion(-)
create mode 100644 system/fdt/CMakeLists.txt
(nuttx-apps) 01/02: system/fdt: add cmake support
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 8e6b13489f7d4450f767375539a0c1c57360d6ea
Author: xuxingliang <xu...@xiaomi.com>
AuthorDate: Fri Jun 21 16:32:27 2024 +0800
system/fdt: add cmake support
Signed-off-by: xuxingliang <xu...@xiaomi.com>
---
system/fdt/CMakeLists.txt | 97 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 97 insertions(+)
diff --git a/system/fdt/CMakeLists.txt b/system/fdt/CMakeLists.txt
new file mode 100644
index 000000000..b11f732ca
--- /dev/null
+++ b/system/fdt/CMakeLists.txt
@@ -0,0 +1,97 @@
+# ##############################################################################
+# apps/system/fdt/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_SYSTEM_FDT)
+ nuttx_add_library(sytem_fdt STATIC)
+
+ set(LIBC_FDT_DIR ${NUTTX_DIR}/libs/libc/fdt/)
+ set(CSRCS ${LIBC_FDT_DIR}/dtc/util.c)
+
+ set(INCDIR ${LIBC_FDT_DIR})
+ list(APPEND INCDIR ${LIBC_FDT_DIR}/dtc/libfdt)
+
+ target_sources(sytem_fdt PRIVATE ${CSRCS})
+ target_include_directories(sytem_fdt PRIVATE ${INCDIR})
+
+ if(CONFIG_SYSTEM_FDTDUMP)
+ nuttx_add_application(
+ NAME
+ fdtdump
+ SRCS
+ ${LIBC_FDT_DIR}/dtc/fdtdump.c
+ INCLUDE_DIRECTORIES
+ ${INCDIR}
+ STACKSIZE
+ ${CONFIG_SYSTEM_FDTDUMP_STACKSIZE}
+ PRIORITY
+ ${CONFIG_SYSTEM_FDTDUMP_PRIORITY}
+ DEPENDS
+ sytem_fdt)
+ endif()
+
+ if(CONFIG_SYSTEM_FDTGET)
+ nuttx_add_application(
+ NAME
+ fdtget
+ SRCS
+ ${LIBC_FDT_DIR}/dtc/fdtget.c
+ INCLUDE_DIRECTORIES
+ ${INCDIR}
+ STACKSIZE
+ ${CONFIG_SYSTEM_FDTGET_STACKSIZE}
+ PRIORITY
+ ${CONFIG_SYSTEM_FDTGET_PRIORITY}
+ DEPENDS
+ sytem_fdt)
+ endif()
+
+ if(CONFIG_SYSTEM_FDTPUT)
+ nuttx_add_application(
+ NAME
+ fdtput
+ SRCS
+ ${LIBC_FDT_DIR}/dtc/fdtput.c
+ INCLUDE_DIRECTORIES
+ ${INCDIR}
+ STACKSIZE
+ ${CONFIG_SYSTEM_FDTPUT_STACKSIZE}
+ PRIORITY
+ ${CONFIG_SYSTEM_FDTPUT_PRIORITY}
+ DEPENDS
+ sytem_fdt)
+ endif()
+
+ if(CONFIG_SYSTEM_FDTOVERLAY)
+ nuttx_add_application(
+ NAME
+ fdtoverlay
+ SRCS
+ ${LIBC_FDT_DIR}/dtc/fdtoverlay.c
+ INCLUDE_DIRECTORIES
+ ${INCDIR}
+ STACKSIZE
+ ${CONFIG_SYSTEM_FDTOVERLAY_STACKSIZE}
+ PRIORITY
+ ${CONFIG_SYSTEM_FDTOVERLAY_PRIORITY}
+ DEPENDS
+ sytem_fdt)
+ endif()
+
+endif()
(nuttx-apps) 02/02: system/dhcpc: fix cmake program name
Posted by xi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
commit 3eb2124ca9a668d9ca871135c6556c074772183e
Author: xuxingliang <xu...@xiaomi.com>
AuthorDate: Fri Jun 21 15:50:43 2024 +0800
system/dhcpc: fix cmake program name
Signed-off-by: xuxingliang <xu...@xiaomi.com>
---
system/dhcpc/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/system/dhcpc/CMakeLists.txt b/system/dhcpc/CMakeLists.txt
index 5cd8995c7..63d8c7613 100644
--- a/system/dhcpc/CMakeLists.txt
+++ b/system/dhcpc/CMakeLists.txt
@@ -21,7 +21,7 @@
if(CONFIG_SYSTEM_DHCPC_RENEW)
nuttx_add_application(
NAME
- dhcpc
+ ${CONFIG_DHCPC_RENEW_PROGNAME}
SRCS
renew_main.c
STACKSIZE