This is a template for a FoxOS-module.
make buildThis will download the kernel headers and compile the module. The final module will be placed in the bin/module.o file.
On linux:
make imgOn MacOS:
make mac-imgmake run-bios
make run-bios-localThis command can be used to run the module in a virtual machine.
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-debugTo attach gdb to the running qemu (in the FoxOS directory):
make debugMake sure to not enable the boot vm option. Also note that you can only debug the kernel in qemu.