Skip to content

Commit 73529c7

Browse files
committed
build: export final DTS and Kconfig files used in the build
This commit exports the merged device tree source (DTS) and Kconfig files as used by the build process to the 'firmwares/' directory for documentation purposes. Signed-off-by: Luca Burelli <[email protected]>
1 parent e30c16f commit 73529c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extra/build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,15 @@ line_comment_only='^\s*\/\*' # match lines starting with comment
8282
line_continuation='\\$' # match lines ending with '\'
8383
c_comment='\s*\/\*.*?\*\/' # match C-style comments and any preceding space
8484
perl -i -pe "s/${c_comment}//gs unless /${line_preproc_ok}/ || (/${line_comment_only}/ && !/${line_continuation}/)" $(find ${VARIANT_DIR}/llext-edk/include/ -type f)
85+
8586
for ext in elf bin hex; do
8687
rm -f firmwares/zephyr-$variant.$ext
8788
if [ -f ${BUILD_DIR}/zephyr/zephyr.$ext ]; then
8889
cp ${BUILD_DIR}/zephyr/zephyr.$ext firmwares/zephyr-$variant.$ext
8990
fi
9091
done
92+
cp ${BUILD_DIR}/zephyr/zephyr.dts firmwares/zephyr-$variant.dts
93+
cp ${BUILD_DIR}/zephyr/.config firmwares/zephyr-$variant.config
9194

9295
# Generate the provides.ld file for linked builds
9396
echo "Generating exported symbol scripts"

0 commit comments

Comments
 (0)