mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2025-12-17 00:35:13 -06:00
668 B
668 B
To get a compile_commands.json:
- Call the kmod source dir (where this file is located)
$KMOD_DIR - Download some version of the linux source (I used
linux-5.4.237to be in line with Ubuntu 20.20), say$LINUX_DIR cd $LINUX_DIR && make LLVM=1 defconfig && make LLVM=1 -jcd $KMOD_DIR && make KDIR=$LINUX_DIR LLVM=1 kmod$LINUX_DIR/scripts/gen_compile_commands.py -d $KMOD_DIRto generatecompile_commands.json- Replace all occurrences of
"directory": $KMOD_DIRwith"directory": $LINUX_DIRin the generated$KMOD_DIR/compile_commands.json