2.4 KiB
2.4 KiB
Building
Linux / make-compatible systems
Run:
make build
Optional variables:
-
ARCH=– Select bootloader type:cct– Build using the CCT bootloaderoc– Build using the OC bootloaderac– Build using the AC bootloadernc– 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 bootloaderoc– Use the OC bootloaderac– Use the AC bootloadernc– Use the NeetComputers bootloader
-
--dev– Development mode:- Bootloader does not start automatically
- You must run
eepromin CraftOS to start Hyperion
-
--release(default) – Release mode:- Bootloader starts automatically
-
--makeuser username password– Pre-create user accounts (only works with--devbuilds):--makeuser root rootpass --makeuser root rootpass --makeuser alice alicepass- Example: The first command creates the
rootaccount with the given password on first boot - Example: The second command creates both
rootandaliceaccounts with defined passwords on first boot
- Example: The first command creates the
Examples:
python build.py build --arch cct
python build.py build --arch oc --dev
python build.py build --arch nc
Build Requirements
-
build– No additional requirements -
build-mini– Requiresluamin -
build-micro– Requires:
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.