Skip to contentSkip to conversation

build: output source and build dirs at end of config

PATCH Applied Bruce Richardson 2 participants 3 messages Oct 30, 2024 – Nov 19, 2024 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: output source and build dirs at end of config

The configuration run of meson produces a lot of output. When running test-meson-builds script, or any other script which does multiple builds, it can be useful to see the directory in which ninja is being run. Currently this requires scrolling back to the top of the output, so to simplify things print out the source and build directories at the end of the config run, so they are on-screen while ninja is printing its output immediately underneath.

---
 meson.build | 4 ++++
 1 file changed, 4 insertions(+)
meson.build +4 -0
index c59ab7430a..8436d1dff8 100644
@@ -179,3 +179,7 @@ foreach drv:dpdk_drvs_disabled
     output_message += drv + ':\t' + reason + '\n\t'
 endforeach
 message(output_message + '\n')
+
+message('DPDK build config complete:\n' +
+        '  source path = "' + dpdk_source_root + '"\n' +
+        '  build path  = "' + dpdk_build_root + '"')
Signature · 1 line
2.43.0
#1 lore raw
Quoted 9 lines · Bruce Richardson

The configuration run of meson produces a lot of output. When running test-meson-builds script, or any other script which does multiple builds, it can be useful to see the directory in which ninja is being run. Currently this requires scrolling back to the top of the output, so to simplify things print out the source and build directories at the end of the config run, so they are on-screen while ninja is printing its output immediately underneath.

Ping for feedback on this minor patch. It "scratches and itch" for me in my build testing anyway...

Thanks,
/Bruce

Quoted 19 lines
---
 meson.build | 4 ++++
 1 file changed, 4 insertions(+)
meson.build +4 -0
index c59ab7430a..8436d1dff8 100644
@@ -179,3 +179,7 @@ foreach drv:dpdk_drvs_disabled
     output_message += drv + ':\t' + reason + '\n\t'
 endforeach
 message(output_message + '\n')
+
+message('DPDK build config complete:\n' +
+        '  source path = "' + dpdk_source_root + '"\n' +
+        '  build path  = "' + dpdk_build_root + '"')
Signature · 1 line
2.43.0
#2 lore raw

19/11/2024 13:08, Bruce Richardson:

Quoted 9 lines · Bruce Richardson
Quoted 8 lines

The configuration run of meson produces a lot of output. When running test-meson-builds script, or any other script which does multiple builds, it can be useful to see the directory in which ninja is being run. Currently this requires scrolling back to the top of the output, so to simplify things print out the source and build directories at the end of the config run, so they are on-screen while ninja is printing its output immediately underneath.

Quoted 4 lines
Quoted 1 line

Ping for feedback on this minor patch. It "scratches and itch" for me in my build testing anyway...

Me too.

Applied, thanks.