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 2026/01/14 15:07:38 UTC
(nuttx) branch master updated (a174dbb2f7e -> f6db05a94fd)
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.git
from a174dbb2f7e bugfix:k28_usbhshost.c:380:47: error: 'errcode' undeclared
new bca7d17a1d0 cmake(enhance):make CMake extensions include path inherit PUBLIC
new f6db05a94fd cmake(enhance):add target we can dump all CMake lib targets
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:
cmake/nuttx_add_library.cmake | 6 ++++++
cmake/nuttx_extensions.cmake | 17 ++++++++++++++++-
2 files changed, 22 insertions(+), 1 deletion(-)
(nuttx) 02/02: cmake(enhance):add target we can dump all CMake lib targets
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.git
commit f6db05a94fd3ccf72fe6f46e54cc4e433c2a6ede
Author: xuxin19 <xu...@xiaomi.com>
AuthorDate: Thu Dec 5 20:30:18 2024 +0800
cmake(enhance):add target we can dump all CMake lib targets
`cmake --build -t dump_targets`
list all lib target current generator need to build
Signed-off-by: xuxin19 <xu...@xiaomi.com>
---
cmake/nuttx_add_library.cmake | 6 ++++++
cmake/nuttx_extensions.cmake | 15 +++++++++++++++
2 files changed, 21 insertions(+)
diff --git a/cmake/nuttx_add_library.cmake b/cmake/nuttx_add_library.cmake
index 1b9b409f6b5..2b4c1172bf1 100644
--- a/cmake/nuttx_add_library.cmake
+++ b/cmake/nuttx_add_library.cmake
@@ -62,6 +62,12 @@ function(nuttx_add_library_internal target)
# Set install config for all library
install(TARGETS ${target})
+ # Set target information for debug and dump
+ set_property(
+ TARGET nuttx_target_interface
+ APPEND
+ PROPERTY ALL_TARGETS ${target})
+ file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/targets "${target}\n")
endfunction()
# Auxiliary libraries
diff --git a/cmake/nuttx_extensions.cmake b/cmake/nuttx_extensions.cmake
index c10b97b5848..89594dcdcfa 100644
--- a/cmake/nuttx_extensions.cmake
+++ b/cmake/nuttx_extensions.cmake
@@ -28,6 +28,10 @@ include(nuttx_parse_function_args)
# compiler options and include path needed by all apps libraries.
add_custom_target(nuttx_apps_interface)
+# "nuttx_target_interface" is a source-less target that hold target information
+# for target debug and dump
+add_custom_target(nuttx_target_interface)
+
# Macro: nuttx_library
#
# Creates a library target with the given name and mode. If MODE is "KERNEL", it
@@ -298,3 +302,14 @@ function(nuttx_link_libraries)
endforeach()
endif()
endfunction()
+
+# dump targets information
+add_custom_target(
+ dump_targets
+ COMMAND ${CMAKE_COMMAND} -E remove target_dump
+ COMMAND ${CMAKE_COMMAND} -E echo
+ "'$<TARGET_PROPERTY:nuttx_target_interface,ALL_TARGETS>'"
+ COMMAND
+ ${CMAKE_COMMAND} -E echo
+ "'$<TARGET_PROPERTY:nuttx_target_interface,ALL_TARGETS>'" >> target_dump
+ WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
(nuttx) 01/02: cmake(enhance):make CMake extensions include path inherit PUBLIC
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.git
commit bca7d17a1d08115a84bf1279bba8dcf74c768841
Author: xuxin19 <xu...@xiaomi.com>
AuthorDate: Wed Dec 18 15:21:02 2024 +0800
cmake(enhance):make CMake extensions include path inherit PUBLIC
since we imply nuttx_link_libraries, nuttx_lib target can
inherit include path
Signed-off-by: xuxin19 <xu...@xiaomi.com>
---
cmake/nuttx_extensions.cmake | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmake/nuttx_extensions.cmake b/cmake/nuttx_extensions.cmake
index 9eeb1164a5a..c10b97b5848 100644
--- a/cmake/nuttx_extensions.cmake
+++ b/cmake/nuttx_extensions.cmake
@@ -153,7 +153,7 @@ endfunction()
# Usage: nuttx_include_directories("include/path1" "include/path2")
function(nuttx_include_directories)
if(TARGET ${NX_CURRENT_LIBRARY})
- target_include_directories(${NX_CURRENT_LIBRARY} PRIVATE ${ARGN})
+ target_include_directories(${NX_CURRENT_LIBRARY} PUBLIC ${ARGN})
endif()
endfunction()