WKern
Loading...
Searching...
No Matches
build Namespace Reference

Functions

 build ()
 Main build routine.
 clean ()
 Remove build output files and Python caches.
 main ()
 CLI entrypoint for build.py.

Function Documentation

◆ build()

build.build ( )

Main build routine.

Calls the build pipeline in order:

  • format output directory
  • compile ASM
  • compile C
  • partial link
  • final link
  • generate ISO
  • check multiboot

Definition at line 38 of file build.py.

◆ clean()

build.clean ( )

Remove build output files and Python caches.

Deletes files listed in CLEANTARGS and __pycache__ directories.

Definition at line 55 of file build.py.

◆ main()

build.main ( )

CLI entrypoint for build.py.

Parses arguments and dispatches to the correct build system action:

  • No args: Build after configuring if necessary
  • -clean: Clean build output
  • -git: Clean output and call git() (likely to prepare for commit)
  • -run: Run the kernel via QEMU
  • -test: Validate environment with configure.py
  • -loc: Run loc.sh to count lines of code
  • -mkd: Create and format a blank FAT16 image using mkfs.fat

Definition at line 81 of file build.py.