mirror of
https://github.com/blazblue547-afk/ForgeOS-ARM64.git
synced 2026-12-02 14:44:17 -05:00
Use an ARM64 Debian rootfs bootstrap because the original source-built userspace path depends on native x86_64 host runtime libraries.
17 lines
371 B
Bash
Executable File
17 lines
371 B
Bash
Executable File
#!/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"
|
|
download "$NIX_URL" "$DOWNLOAD_DIR/$NIX_TARBALL"
|
|
|
|
extract_tarball "$DOWNLOAD_DIR/$KERNEL_TARBALL" "$KERNEL_SRC_DIR"
|
|
extract_tarball_into "$DOWNLOAD_DIR/$NIX_TARBALL" "$NIX_SRC_DIR"
|
|
|
|
msg "sources are ready"
|