generate .build.env as part of configure script

This commit is contained in:
Borna Šoštarić
2025-12-19 23:41:32 +01:00
parent 649a227e41
commit 45acbb5c04
2 changed files with 11 additions and 1 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
.build.env
build build
cross cross

11
configure vendored
View File

@@ -153,8 +153,17 @@ fi
cd "$SCRIPT_DIR" 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 ""
echo "=== Build Complete ===" echo "=== Build Complete ==="
echo "Toolchain installed to: $PREFIX" 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 "======================" echo "======================"