diff options
| author | ITWOI <fff000147369@gmail.com> | 2019-09-03 19:27:41 +0800 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2019-09-03 13:27:41 +0200 |
| commit | 48448e715bd41cc032e3421b568eabd07d2fa055 (patch) | |
| tree | 931066fc6054d62e528bebe12f5ca76695364617 /docs/linux | |
| parent | 14544a569e7d56e60cba4c0451613bad8e1d18e0 (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/linux')
| -rw-r--r-- | docs/linux/setup_ubuntu-host_qemu-vm_x86-64-kernel.md | 6 |
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: |
