forked from FlorentRevest/linux-kernel-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocal.sh
39 lines (29 loc) · 1.23 KB
/
local.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# This file is sourced in the middle of tasks.sh, after environment variables
# are setup and before commands are run. It does not get updated by the update
# task so you can use it to plug-in arbitrary extra logic that is specific to
# your local needs and should not be part of the upstream tasks.sh. For example:
## Cross-compile/debug/emulate for arm64
# TARGET_ARCH=arm64
## Change PATH to use a different QEMU binary
# export PATH=$HOME/qemu/bin/:$PATH
## Generate objects in a subdirectory
# MAKE="$MAKE O=.vscode/build-$TARGET_ARCH/"
## Enable some random kernel CONFIG by default as part of the .config generation
# if [ $COMMAND = "defconfig" ]; then
# trap "scripts/config -e BPF_SYSCALL" EXIT
# fi
## Run make olddefconfig before a build (a bit slow)
# if [ $COMMAND = "build" ]; then
# eval ${MAKE} ARCH=${TARGET_ARCH} olddefconfig
# fi
## Make the build verbose
# SILENT_BUILD_FLAG=""
## Disable the build spinner
# SPINNER=0
## Don't clear the screen before each task
# unset CLEAR
## Boot without systemd (use the /sbin/init-minimal shell script instead)
# SKIP_SYSTEMD=1
## Add some args to the kernel cmdline when using the "start" task
## E.g.: Boot straight into a syzbot reproducer
# KERNEL_CMDLINE_EXTRA=init=/root/syzbot-repro