mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] scripts: container.sh: reexport KBUILD_OUTPUT LG_BUILDDIR envvars
@ 2023-06-19  9:46 Ahmad Fatoum
  2023-06-21  7:56 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2023-06-19  9:46 UTC (permalink / raw)
  To: barebox; +Cc: Ahmad Fatoum

These variables are evaluted by pytest to find the location of the
barebox build directory, so pass them along to the container for easier
use. Example usage:

  export LG_BUILDDIR=build-x86
  scripts/container.sh ./MAKEALL -a x86  -O $LG_BUILDDIR efi_defconfig
  scripts/container.sh pytest --lg-env test/x86/efi_defconfig.yaml test/py

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
 scripts/container.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/scripts/container.sh b/scripts/container.sh
index eb1e87b59baa..fa5810fb464e 100755
--- a/scripts/container.sh
+++ b/scripts/container.sh
@@ -35,5 +35,6 @@ pwd_real=$(realpath $PWD)
 
 exec podman run -it -v "$PWD:$PWD:z" -v "$pwd_real:$pwd_real:z" --rm \
 	-e TERM -e ARCH -e CONFIG -e JOBS -e LOGDIR -e REGEX \
+	-e KBUILD_OUTPUT -e LG_BUILDDIR \
 	-e KCONFIG_ADD -w "$PWD" --userns=keep-id \
 	-- "$CONTAINER" "${@:-/bin/bash}"
-- 
2.39.2




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-06-21  7:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-19  9:46 [PATCH] scripts: container.sh: reexport KBUILD_OUTPUT LG_BUILDDIR envvars Ahmad Fatoum
2023-06-21  7:56 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox