File tree Expand file tree Collapse file tree 7 files changed +32
-0
lines changed Expand file tree Collapse file tree 7 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -2234,3 +2234,10 @@ add_subdirectory_ifdef(
2234
2234
)
2235
2235
2236
2236
toolchain_linker_finalize ()
2237
+
2238
+ yaml_context (EXISTS NAME build_info result )
2239
+ if (result )
2240
+ build_info (zephyr version VALUE ${PROJECT_VERSION_STR} )
2241
+ build_info (zephyr zephyr-base VALUE ${ZEPHYR_BASE} )
2242
+ yaml_save (NAME build_info )
2243
+ endif ()
Original file line number Diff line number Diff line change @@ -114,3 +114,6 @@ set_ifndef(TOOLCHAIN_KCONFIG_DIR ${TOOLCHAIN_ROOT}/cmake/toolchain/${ZEPHYR_TOOL
114
114
115
115
set (HostTools_FOUND TRUE )
116
116
set (HOSTTOOLS_FOUND TRUE )
117
+ build_info (toolchain name VALUE ${ZEPHYR_TOOLCHAIN_VARIANT} )
118
+ string (TOUPPER ${ZEPHYR_TOOLCHAIN_VARIANT} zephyr_toolchain_variant_upper )
119
+ build_info (toolchain path VALUE "${${zephyr_toolchain_variant_upper} _TOOLCHAIN_PATH}" )
Original file line number Diff line number Diff line change @@ -353,3 +353,7 @@ if(BOARD_EXTENSIONS)
353
353
list (APPEND BOARD_EXTENSION_DIRS ${board_extension_dir} )
354
354
endforeach ()
355
355
endif ()
356
+ build_info (board name VALUE ${BOARD} )
357
+ string (REGEX REPLACE "^/" "" qualifiers "${BOARD_QUALIFIERS} " )
358
+ build_info (board qualifiers VALUE ${qualifiers} )
359
+ build_info (board revision VALUE ${BOARD_REVISION} )
Original file line number Diff line number Diff line change @@ -99,3 +99,5 @@ zephyr_boilerplate_watch(DTC_OVERLAY_FILE)
99
99
zephyr_get (EXTRA_CONF_FILE SYSBUILD LOCAL VAR EXTRA_CONF_FILE OVERLAY_CONFIG MERGE REVERSE )
100
100
zephyr_get (EXTRA_DTC_OVERLAY_FILE SYSBUILD LOCAL MERGE REVERSE )
101
101
zephyr_get (DTS_EXTRA_CPPFLAGS SYSBUILD LOCAL MERGE REVERSE )
102
+ build_info (application source -dir VALUE ${APPLICATION_SOURCE_DIR} )
103
+ build_info (application configuration -dir VALUE ${APPLICATION_CONFIG_DIR} )
Original file line number Diff line number Diff line change @@ -182,6 +182,7 @@ set(dts_files
182
182
if (DTC_OVERLAY_FILE )
183
183
zephyr_list (TRANSFORM DTC_OVERLAY_FILE NORMALIZE_PATHS
184
184
OUTPUT_VARIABLE DTC_OVERLAY_FILE_AS_LIST )
185
+ build_info (devicetree user-files VALUE ${DTC_OVERLAY_FILE_AS_LIST} )
185
186
list (APPEND
186
187
dts_files
187
188
${DTC_OVERLAY_FILE_AS_LIST}
@@ -191,6 +192,7 @@ endif()
191
192
if (EXTRA_DTC_OVERLAY_FILE )
192
193
zephyr_list (TRANSFORM EXTRA_DTC_OVERLAY_FILE NORMALIZE_PATHS
193
194
OUTPUT_VARIABLE EXTRA_DTC_OVERLAY_FILE_AS_LIST )
195
+ build_info (devicetree extra-user-files VALUE ${EXTRA_DTC_OVERLAY_FILE_AS_LIST} )
194
196
list (APPEND
195
197
dts_files
196
198
${EXTRA_DTC_OVERLAY_FILE_AS_LIST}
@@ -396,3 +398,7 @@ elseif(stderr)
396
398
message (WARNING "dtc raised one or more warnings:\n ${stderr} " )
397
399
endif ()
398
400
endif (DTC )
401
+
402
+ build_info (devicetree files VALUE ${dts_files} )
403
+ build_info (devicetree include -dirs VALUE ${DTS_ROOT_SYSTEM_INCLUDE_DIRS} )
404
+ build_info (devicetree bindings-dirs VALUE ${DTS_ROOT_BINDINGS} )
Original file line number Diff line number Diff line change @@ -98,11 +98,13 @@ set(PARSED_KCONFIG_SOURCES_TXT ${PROJECT_BINARY_DIR}/kconfig/sources.txt)
98
98
if (CONF_FILE )
99
99
string (CONFIGURE "${CONF_FILE} " CONF_FILE_EXPANDED )
100
100
string (REPLACE " " ";" CONF_FILE_AS_LIST "${CONF_FILE_EXPANDED} " )
101
+ build_info (kconfig user-files VALUE ${CONF_FILE_AS_LIST} )
101
102
endif ()
102
103
103
104
if (EXTRA_CONF_FILE )
104
105
string (CONFIGURE "${EXTRA_CONF_FILE} " EXTRA_CONF_FILE_EXPANDED )
105
106
string (REPLACE " " ";" EXTRA_CONF_FILE_AS_LIST "${EXTRA_CONF_FILE_EXPANDED} " )
107
+ build_info (kconfig extra-user-files VALUE ${EXTRA_CONF_FILE_AS_LIST} )
106
108
endif ()
107
109
108
110
zephyr_file (CONF_FILES ${BOARD_EXTENSION_DIRS} KCONF board_extension_conf_files SUFFIX ${FILE_SUFFIX} )
@@ -358,6 +360,7 @@ endif()
358
360
if (CREATE_NEW_DOTCONFIG )
359
361
set (input_configs_flags --handwritten-input-configs )
360
362
set (input_configs ${merge_config_files} ${FORCED_CONF_FILE} )
363
+ build_info (kconfig files VALUE ${input_configs} )
361
364
else ()
362
365
set (input_configs ${DOTCONFIG} ${FORCED_CONF_FILE} )
363
366
endif ()
Original file line number Diff line number Diff line change @@ -25,3 +25,10 @@ if(EXISTS ${APP_DIR}/sysbuild/CMakeLists.txt)
25
25
else ()
26
26
add_subdirectory (template _sysbuild )
27
27
endif ()
28
+
29
+ build_info (sysbuild VALUE true )
30
+ build_info (application source -dir VALUE ${CMAKE_CURRENT_SOURCE_DIR} )
31
+ yaml_context (EXISTS NAME build_info result )
32
+ if (result )
33
+ yaml_save (NAME build_info )
34
+ endif ()
You can’t perform that action at this time.
0 commit comments