From 45acbb5c040700022dff198fe2d65bb0ff949afd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Borna=20=C5=A0o=C5=A1tari=C4=87?= Date: Fri, 19 Dec 2025 23:41:32 +0100 Subject: [PATCH] generate .build.env as part of configure script --- .gitignore | 1 + configure | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 26b8d0d..7012c23 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +.build.env build cross diff --git a/configure b/configure index d53fd78..2ba63c2 100755 --- a/configure +++ b/configure @@ -153,8 +153,17 @@ fi cd "$SCRIPT_DIR" +# Generate .build.env file +cat > .build.env << EOF +# Generated by configure on $(date) +# Source this file to add the cross-compiler toolchain to your PATH +export PATH="$PREFIX/bin:\$PATH" +EOF + echo "" echo "=== Build Complete ===" echo "Toolchain installed to: $PREFIX" -echo "Add to PATH: export PATH=\"$PREFIX/bin:\$PATH\"" +echo "" +echo "To use the toolchain, run:" +echo " source .build.env" echo "======================"