WKern
Loading...
Searching...
No Matches
files.py File Reference

Defines file organization and module structure for the build system. More...

Go to the source code of this file.

Namespaces

namespace  files

Variables

list files.SRCS
list files.NASMSRCS
dict files.MODULES
list files.OBJS = [f"objs/modules/{mod}.o" for mod in MODULES]
str files.OUT = "kernel.elf"
str files.OUTARG = "iso/boot/" + OUT
str files.ISO = "mykern.iso"
str files.GRUBCFG = "grub/grub.cfg"
str files.GRUBCFGTARG = "iso/boot/" + GRUBCFG
list files.HEADS
list files.CLEANTARGS = [*OBJS, ISO, OUTARG, OUT, GRUBCFGTARG, "didconf", *glob.glob("objs/**/*.o", recursive=True) ]

Detailed Description

Defines file organization and module structure for the build system.

This file contains lists of source files (C and ASM), grouped into modules. It also defines output targets, build metadata, and clean targets used by other parts of the build system.

The build system uses this file to:

  • Track all C source files (SRCS)
  • Track all NASM source files (NASMSRCS)
  • Define how C source files are grouped into logical modules (MODULES)
  • Generate output ELF files and ISO builds
  • Determine which object files need to be cleaned (CLEANTARGS)

This file is imported by other scripts such as build.py, brules.py, and frules.py to control compilation, linking, and packaging.

Author
Will
Date
2025
Version
1.0
Note
You must update this file whenever a new source file or module is added to the project.

Definition in file files.py.