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
└── linux
Clone this repository
git clone https://github.com/mastermakrela/kernel-dev.git
Clone the kernel and compile it
get an image for the VM
run the VM
./qemu-run.sh
C/C++ from Microsoft
Corresponding config file: c_cpp_properties.json
Corresponding config file: .clang-format
It's a symlink to file that will exist after you get the kernel source.
automatically checks your code for kernel style violations