No description
  • Makefile 67.7%
  • Shell 28.4%
  • C++ 3.9%
Find a file
2021-10-31 22:56:45 +01:00
src add c rules 2021-10-11 18:29:28 +02:00
.gitignore MacOS building and bugfixes 2021-10-11 19:20:57 +02:00
disk.sh module template 2021-10-11 18:12:44 +02:00
LICENSE Create LICENSE 2021-10-11 18:13:23 +02:00
limine.cfg MacOS building and bugfixes 2021-10-11 19:20:57 +02:00
mac-disk.sh MacOS building and bugfixes 2021-10-11 19:20:57 +02:00
Makefile added more make rules 2021-10-31 22:56:45 +01:00
README.md added more make rules 2021-10-31 22:56:45 +01:00

FoxOS-module

This is a template for a FoxOS-module.

Building

make build

This will download the kernel headers and compile the module. The final module will be placed in the bin/module.o file.

Making an img file

On linux:

make img

On MacOS:

make mac-img

Development

make run-bios
make run-bios-local

This command can be used to run the module in a virtual machine.

Debugging

Make sure you have a working copy of the FoxOS source tree in the ~/FoxOS directory or override the default in the Makefile.

To launch qemu in debug mode:

make run-bios-debug

To attach gdb to the running qemu (in the FoxOS directory):

make debug

Make sure to not enable the boot vm option. Also note that you can only debug the kernel in qemu.