mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2025-12-17 00:35:13 -06:00
Add script to generate kmod/compile_commands.json
This commit is contained in:
11
kmod/gen_compile_commands.sh
Executable file
11
kmod/gen_compile_commands.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eu -o pipefail
|
||||
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
cd $SCRIPT_DIR
|
||||
|
||||
set -x
|
||||
|
||||
./linux/scripts/gen_compile_commands.py
|
||||
sed -i 's:-I .:-I ./linux:g' ./compile_commands.json
|
||||
sed -i 's:-include .:-include ./linux:g' ./compile_commands.json
|
||||
Reference in New Issue
Block a user