aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorITWOI <fff000147369@gmail.com>2019-09-03 19:27:41 +0800
committerAndrey Konovalov <andreyknvl@google.com>2019-09-03 13:27:41 +0200
commit48448e715bd41cc032e3421b568eabd07d2fa055 (patch)
tree931066fc6054d62e528bebe12f5ca76695364617 /docs
parent14544a569e7d56e60cba4c0451613bad8e1d18e0 (diff)
docs: add CC="$GCC/bin/gcc" to setup_ubuntu-host_qemu-vm_x86-64-kernel.md (#1368)
Use the same GCC version when configuring and building Linux kernel.
Diffstat (limited to 'docs')
-rw-r--r--docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md b/docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md
index e6e473d13..4b2cb8b5e 100644
--- a/docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md
+++ b/docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md
@@ -25,8 +25,8 @@ git clone https://github.com/torvalds/linux.git $KERNEL
Generate default configs:
``` bash
cd $KERNEL
-make defconfig
-make kvmconfig
+make CC="$GCC/bin/gcc" defconfig
+make CC="$GCC/bin/gcc" kvmconfig
```
Now we need to enable some config options required for syzkaller.
@@ -48,7 +48,7 @@ You might also want to enable some other kernel configs as described [here](kern
Since enabling these options results in more sub options being available, we need to regenerate config. Run this and press enter each time when prompted for some config value to leave it as default:
``` bash
-make oldconfig
+make CC="$GCC/bin/gcc" oldconfig
```
Build the kernel with previously built GCC: