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 "======================"