Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Environment Variables Reference

English | 한국어

English

VariableDefaultPurpose
ROOT_DIRrepo rootOverride repository root.
WORKSPACE_MANIFESTCargo.tomlOverride workspace manifest path.
CARGO_TARGET_DIRtargetOverride Cargo target dir.
CARGOcargoCargo executable.
RUSTUPrustuprustup executable.
CCgccC compiler.
MINGW_CCx86_64-w64-mingw32-gccWindows PE compiler.
QEMU_BINqemu-system-x86_64QEMU executable.
KERNEL_TARGETx86_64-unknown-linux-gnuKernel/userspace target.
GRUB_MKSTANDALONEgrub-mkstandaloneGRUB standalone EFI builder.
GRUB_FILEgrub-fileMultiboot2 artifact validator.
GPGgpgGPG executable used for detached kernel signatures.
RUSTOS_GRUB_PUBKEYbuild/dev-grub.pubBinary GPG public key file embedded into GRUB, produced with gpg --export.
RUSTOS_GRUB_SIGNING_KEYRustOS Dev GRUB <rustos-dev-grub@example.invalid>GPG key id or fingerprint used to sign nucleus.elf; xtask build creates the default development key when missing.
RUSTOS_GPG_HOMEbuild/dev-grub-gpgOptional GPG home for signing.
RUSTOS_GRUB_SBATemptyOptional SBAT metadata file passed to grub-mkstandalone.
RUSTOS_GRUB_MODULESsecure boot module setOptional GRUB module list override.
BUILD_DIRbuildBuild output root.
IMAGE_DIRbuild/imageStaged image root.
OVMF_PATHvendor/firmware/ovmf/OVMF.fdFirmware image.
RUSTOS_QEMU_PROFILEdefaultQEMU profile default.
RUSTOS_QEMU_ACCELemptyQEMU accelerator profile default.
RUSTOS_QEMU_NETWORKenabledSet 0, false, off, or no to disable default network.
RUSTOS_UI_BOOT_TRACEdisabledEnable uiserver local boot trace.
RUSTOS_UI_PROFILEdisabledEnable uiserver profiling lines.

Most build variables are parsed by tools/xtask/src/config.rs. QEMU run variables are parsed by tools/xtask/src/qemu.rs. For repeated KVM no-opt debugging, use cargo xtask run --profile nvme --accel-profile kvm --usb-input --debugcon file --timeout 35 --summarize-log -- --no-reboot.

한국어

VariableDefaultPurpose
ROOT_DIRrepo rootrepository root override
WORKSPACE_MANIFESTCargo.tomlworkspace manifest path override
CARGO_TARGET_DIRtargetCargo target dir override
CARGOcargoCargo executable
RUSTUPrustuprustup executable
CCgccC compiler
MINGW_CCx86_64-w64-mingw32-gccWindows PE compiler
QEMU_BINqemu-system-x86_64QEMU executable
KERNEL_TARGETx86_64-unknown-linux-gnukernel/userspace target
GRUB_MKSTANDALONEgrub-mkstandaloneGRUB standalone EFI builder
GRUB_FILEgrub-fileMultiboot2 artifact validator
GPGgpgdetached kernel signature 생성용 GPG executable
RUSTOS_GRUB_PUBKEYbuild/dev-grub.pubgpg --export로 만든 GRUB embed용 binary GPG public key file
RUSTOS_GRUB_SIGNING_KEYRustOS Dev GRUB <rustos-dev-grub@example.invalid>nucleus.elf 서명에 사용할 GPG key id/fingerprint. 없으면 xtask build가 기본 개발 키를 생성
RUSTOS_GPG_HOMEbuild/dev-grub-gpgsigning에 사용할 optional GPG home
RUSTOS_GRUB_SBATemptygrub-mkstandalone에 넘길 optional SBAT metadata file
RUSTOS_GRUB_MODULESsecure boot module setoptional GRUB module list override
BUILD_DIRbuildbuild output root
IMAGE_DIRbuild/imagestaged image root
OVMF_PATHvendor/firmware/ovmf/OVMF.fdfirmware image
RUSTOS_QEMU_PROFILEdefaultQEMU profile default
RUSTOS_QEMU_ACCELemptyQEMU accelerator profile default
RUSTOS_QEMU_NETWORKenabled0, false, off, no로 default network 비활성화
RUSTOS_UI_BOOT_TRACEdisableduiserver local boot trace 활성화
RUSTOS_UI_PROFILEdisableduiserver profiling line 활성화

대부분의 build variable은 tools/xtask/src/config.rs에서 읽습니다. QEMU run variable은 tools/xtask/src/qemu.rs에서 읽습니다. 반복 KVM no-opt 디버깅은 cargo xtask run --profile nvme --accel-profile kvm --usb-input --debugcon file --timeout 35 --summarize-log -- --no-reboot를 사용합니다.