mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-22 11:22:26 +00:00
README.md: Update kernel instructions to use branch
Update the kernel build instructions to use the configuration and branch that we test and develop against. Fixes: #521 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
0042f1de75
commit
d5d4053795
13
README.md
13
README.md
@ -129,18 +129,19 @@ Multiple arguments can be given to the `--disk` parameter.
|
|||||||
#### Building your kernel
|
#### Building your kernel
|
||||||
|
|
||||||
`cloud-hypervisor` also supports direct kernel boot into a `vmlinux` ELF kernel
|
`cloud-hypervisor` also supports direct kernel boot into a `vmlinux` ELF kernel
|
||||||
image. You want to build such an image first:
|
image. In order to support virtio-fs and virtio-iommu we have our own development branch. You are of course able to use your own kernel but these instructions will continue with the version that we develop and test against.
|
||||||
|
|
||||||
|
To build the kernel:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
|
||||||
# Clone a 5.0 Linux kernel
|
# Clone the Cloud Hypervisor Linux branch
|
||||||
$ pushd $CLOUDH
|
$ pushd $CLOUDH
|
||||||
$ git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git linux-cloud-hypervisor
|
$ git clone --depth 1 https://github.com/cloud-hypervisor/linux.git -b virtio-fs-virtio-iommu-5.5-rc1 linux-cloud-hypervisor
|
||||||
$ cd linux-cloud-hypervisor
|
$ pushd linux-cloud-hypervisor
|
||||||
$ git reset --hard v5.0
|
|
||||||
|
|
||||||
# Use the cloud-hypervisor kernel config to build your kernel
|
# Use the cloud-hypervisor kernel config to build your kernel
|
||||||
$ cp $CLOUDH/cloud-hypervisor/resources/linux-5.0-config .config
|
$ cp $CLOUDH/cloud-hypervisor/resources/linux-virtio-fs-virtio-iommu-config .config
|
||||||
$ make bzImage -j `nproc`
|
$ make bzImage -j `nproc`
|
||||||
$ popd
|
$ popd
|
||||||
```
|
```
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user