Skip to contentSkip to conversation

scripts: container.sh: reexport KBUILD_OUTPUT LG_BUILDDIR envvars

PATCH Applied Ahmad Fatoum 2 participants 2 messages Jun 19, 2023 – Jun 21, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts: container.sh: reexport KBUILD_OUTPUT LG_BUILDDIR envvars

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
---
 scripts/container.sh | 1 +
 1 file changed, 1 insertion(+)
scripts/container.sh +1 -0
index eb1e87b59baa..fa5810fb464e 100755
@@ -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}"
Signature · 1 line
2.39.2
Applied
#1 lore raw
Quoted 4 lines · 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:

Quoted 8 lines
  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
---
 scripts/container.sh | 1 +
 1 file changed, 1 insertion(+)

Applied, thanks

Sascha

Quoted 17 lines
scripts/container.sh +1 -0
index eb1e87b59baa..fa5810fb464e 100755
@@ -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}"
Signature · 1 line
2.39.2
Signature · 4 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |