Files
ForgeOS-ARM64/scripts/fetch-sources.sh
T

16 lines
371 B
Bash
Raw Normal View History

2026-06-16 14:07:52 -04:00
#!/usr/bin/env bash
set -euo pipefail
source "$(dirname "$0")/common.sh"
require_cmd curl tar
ensure_dirs
download "$KERNEL_URL" "$DOWNLOAD_DIR/$KERNEL_TARBALL"
2026-06-16 18:26:55 -04:00
download "$NIX_URL" "$DOWNLOAD_DIR/$NIX_TARBALL"
2026-06-16 14:07:52 -04:00
extract_tarball "$DOWNLOAD_DIR/$KERNEL_TARBALL" "$KERNEL_SRC_DIR"
2026-06-16 18:26:55 -04:00
extract_tarball_into "$DOWNLOAD_DIR/$NIX_TARBALL" "$NIX_SRC_DIR"
2026-06-16 14:07:52 -04:00
msg "sources are ready"