This repository is a template for developing Linux kernel and/or modules on macOS running on a Mac with Apple Silicon (arm64) using VS Code.
Each part of this equation is optional, but it's what I used in the tutorial for compiling the kernel on macOS.
This repository assumes you have cloned the kernel source (v6.5.7)
into a sibling directory, i.e.:
.
├── kernel-dev
└── linuxClone this repository
git clone https://github.com/mastermakrela/kernel-dev.gitClone the kernel and compile it
get an image for the VM
- how? Development VM
run the VM
./qemu-run.sh- questions? Running the development VM
C/C++ from Microsoft
Corresponding config file:
c_cpp_properties.jsonCorresponding config file:
.clang-formatIt's a symlink to file that will exist after you get the kernel source.automatically checks your code for kernel style violations