Files
HyperionOS/building.md
T

2.4 KiB
Raw Blame History

Building

Linux / make-compatible systems

Run:

make build

Optional variables:

  • ARCH= – Select bootloader type:

    • cct – Build using the CCT bootloader
    • oc – Build using the OC bootloader
    • ac – Build using the AC bootloader
    • nc – Build using the NeetComputers bootloader
  • DEV=1 – Enable development mode:

    • Bootloader does not start automatically on system startup

Default behavior (if DEV is not specified):

  • Builds in release mode
  • Bootloader starts automatically on system startup

Examples:

make build ARCH=cct
make build ARCH=oc DEV=1

Windows / Any system with Python 3.7+

Run:

python build.py build

Optional arguments:

  • --arch {cct|oc|ac|nc} – Select bootloader:

    • cct – Use the CCT bootloader
    • oc – Use the OC bootloader
    • ac – Use the AC bootloader
    • nc – Use the NeetComputers bootloader
  • --dev – Development mode:

    • Bootloader does not start automatically
    • You must run eeprom in CraftOS to start Hyperion
  • --release (default) – Release mode:

    • Bootloader starts automatically
  • --makeuser username password – Pre-create user accounts (only works with --dev builds):

    --makeuser root rootpass
    --makeuser root rootpass --makeuser alice alicepass
    
    • Example: The first command creates the root account with the given password on first boot
    • Example: The second command creates both root and alice accounts with defined passwords on first boot

Examples:

python build.py build --arch cct
python build.py build --arch oc --dev
python build.py build --arch nc

Build Requirements


NeetComputers (--arch nc)

python build.py build --arch nc
sh tools/nc-mkdisk.sh nc-disk
neetemu --disk nc-disk

On Windows, assemble the disk with tools\nc-mkdisk.bat nc-disk instead of the shell script (same output).

nc-mkdisk.sh assembles a two-partition disk image (hyperion boot + root system, entrypoint hyperion:nc/boot.lua) from ./Build. See docs/kernel/bootloaders/nc.md for the backend design.