b9de373b31
Restore all bootprocess branch files that were overwritten by later 0.2.0 commits. This overlay brings back the complete boot infrastructure: - Configs: redbear-full, redbear-mini, redbear-device-services, driver .d files - Kernel: IRQ affinity, x2APIC, C-states, NUMA (SLIT/SRAT), MCS locks, cpuidle - Base patches: P0-P55 + new P6 (lived block_size=512) + P57 (fbbootlogd graceful init) - Driver infra: driver-manager, udev-shim, thermald, cpufreqd, iommu, redox-driver-sys/core - GPU: redox-drm with improved connector handling - System: redbear-info, redbear-hwutils phase-timer-check - Build system: fetch.rs improvements, build-iso.sh, run_full.sh - Kernel source: new ACPI (SLIT, SRAT), cpuidle, cstate, MCS lock modules 83 files changed, +3966/-1248 lines
99 lines
2.3 KiB
Bash
Executable File
99 lines
2.3 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
# Ensure cargo bin (cbindgen, rustup, etc.) is in PATH
|
|
case ":${PATH}:" in
|
|
*":$HOME/.cargo/bin:"*) ;;
|
|
*) export PATH="$HOME/.cargo/bin:$PATH" ;;
|
|
esac
|
|
|
|
CONFIG_NAME="redbear-mini"
|
|
ARCH="x86_64"
|
|
ALLOW_UPSTREAM=0
|
|
|
|
usage() {
|
|
cat <<EOF
|
|
Usage: $(basename "$0") [OPTIONS] [CONFIG_NAME] [ARCH]
|
|
|
|
Build a Red Bear OS live ISO for real bare metal.
|
|
|
|
Options:
|
|
--upstream Allow Redox/upstream recipe source refresh during build
|
|
-h, --help Show this help
|
|
|
|
Supported targets:
|
|
redbear-full Full desktop ISO (Wayland + KDE + GPU drivers)
|
|
redbear-mini Text-only ISO (default)
|
|
redbear-grub Text-only ISO with GRUB boot manager
|
|
|
|
Defaults:
|
|
CONFIG_NAME=redbear-mini
|
|
ARCH=x86_64
|
|
EOF
|
|
}
|
|
|
|
POSITIONAL=()
|
|
while [ $# -gt 0 ]; do
|
|
case "$1" in
|
|
--upstream)
|
|
ALLOW_UPSTREAM=1
|
|
;;
|
|
-h|--help)
|
|
usage
|
|
exit 0
|
|
;;
|
|
--)
|
|
shift
|
|
POSITIONAL+=("$@")
|
|
break
|
|
;;
|
|
-*)
|
|
echo "Unknown option: $1" >&2
|
|
usage >&2
|
|
exit 1
|
|
;;
|
|
*)
|
|
POSITIONAL+=("$1")
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
if [ ${#POSITIONAL[@]} -gt 2 ]; then
|
|
echo "ERROR: Too many positional arguments" >&2
|
|
usage >&2
|
|
exit 1
|
|
fi
|
|
|
|
[ ${#POSITIONAL[@]} -ge 1 ] && CONFIG_NAME="${POSITIONAL[0]}"
|
|
[ ${#POSITIONAL[@]} -ge 2 ] && ARCH="${POSITIONAL[1]}"
|
|
|
|
case "$CONFIG_NAME" in
|
|
redbear-full|redbear-mini|redbear-grub)
|
|
;;
|
|
*)
|
|
echo "ERROR: Unsupported target '$CONFIG_NAME'" >&2
|
|
echo "Supported: redbear-full, redbear-mini, redbear-grub" >&2
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
if [ -z "${CI:-}" ] && { [ ! -t 0 ] || [ ! -t 1 ]; }; then
|
|
export CI=1
|
|
fi
|
|
|
|
echo "Building Red Bear OS ISO for real bare metal"
|
|
echo " config: ${CONFIG_NAME}"
|
|
echo " arch: ${ARCH}"
|
|
if [ "$ALLOW_UPSTREAM" -eq 1 ]; then
|
|
echo " upstream recipe refresh: enabled"
|
|
REPO_OFFLINE=0 COOKBOOK_OFFLINE=false make live CONFIG_NAME="${CONFIG_NAME}" ARCH="${ARCH}"
|
|
else
|
|
echo " upstream recipe refresh: disabled (pass --upstream to enable)"
|
|
REPO_OFFLINE=1 COOKBOOK_OFFLINE=true make live CONFIG_NAME="${CONFIG_NAME}" ARCH="${ARCH}"
|
|
fi
|
|
|
|
echo ""
|
|
echo "Done: build/${ARCH}/${CONFIG_NAME}.iso"
|