mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-01 17:35:19 +00:00
docs: Update documentation for new kernel configuration
Replace the use of a reference kernel configuration file from this repository with the use of a defconfig from the linux fork. Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
parent
f96554cbe9
commit
f892789481
@ -181,14 +181,9 @@ To build the kernel:
|
|||||||
|
|
||||||
```shell
|
```shell
|
||||||
# Clone the Cloud Hypervisor Linux branch
|
# Clone the Cloud Hypervisor Linux branch
|
||||||
$ git clone --depth 1 https://github.com/cloud-hypervisor/linux.git -b ch-6.2 linux-cloud-hypervisor
|
$ git clone --depth 1 https://github.com/cloud-hypervisor/linux.git -b ch-6.12.8 linux-cloud-hypervisor
|
||||||
$ pushd linux-cloud-hypervisor
|
$ pushd linux-cloud-hypervisor
|
||||||
# Use the x86-64 cloud-hypervisor kernel config to build your kernel for x86-64
|
$ make ch_defconfig
|
||||||
$ wget https://raw.githubusercontent.com/cloud-hypervisor/cloud-hypervisor/main/resources/linux-config-x86_64
|
|
||||||
# Use the AArch64 cloud-hypervisor kernel config to build your kernel for AArch64
|
|
||||||
$ wget https://raw.githubusercontent.com/cloud-hypervisor/cloud-hypervisor/main/resources/linux-config-aarch64
|
|
||||||
$ cp linux-config-x86_64 .config # x86-64
|
|
||||||
$ cp linux-config-aarch64 .config # AArch64
|
|
||||||
# Do native build of the x86-64 kernel
|
# Do native build of the x86-64 kernel
|
||||||
$ KCFLAGS="-Wa,-mx86-used-note=no" make bzImage -j `nproc`
|
$ KCFLAGS="-Wa,-mx86-used-note=no" make bzImage -j `nproc`
|
||||||
# Do native build of the AArch64 kernel
|
# Do native build of the AArch64 kernel
|
||||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -46,16 +46,14 @@ checkout_repo() {
|
|||||||
# Not actively used by CI
|
# Not actively used by CI
|
||||||
build_custom_linux() {
|
build_custom_linux() {
|
||||||
ARCH=$(uname -m)
|
ARCH=$(uname -m)
|
||||||
SRCDIR=$PWD
|
|
||||||
LINUX_CUSTOM_DIR="$WORKLOADS_DIR/linux-custom"
|
LINUX_CUSTOM_DIR="$WORKLOADS_DIR/linux-custom"
|
||||||
LINUX_CUSTOM_BRANCH="ch-6.12"
|
LINUX_CUSTOM_BRANCH="ch-6.12.8"
|
||||||
LINUX_CUSTOM_URL="https://github.com/cloud-hypervisor/linux.git"
|
LINUX_CUSTOM_URL="https://github.com/cloud-hypervisor/linux.git"
|
||||||
|
|
||||||
checkout_repo "$LINUX_CUSTOM_DIR" "$LINUX_CUSTOM_URL" "$LINUX_CUSTOM_BRANCH"
|
checkout_repo "$LINUX_CUSTOM_DIR" "$LINUX_CUSTOM_URL" "$LINUX_CUSTOM_BRANCH"
|
||||||
|
|
||||||
cp "$SRCDIR"/resources/linux-config-"${ARCH}" "$LINUX_CUSTOM_DIR"/.config
|
|
||||||
|
|
||||||
pushd "$LINUX_CUSTOM_DIR" || exit
|
pushd "$LINUX_CUSTOM_DIR" || exit
|
||||||
|
make ch_defconfig
|
||||||
make -j "$(nproc)"
|
make -j "$(nproc)"
|
||||||
if [ "${ARCH}" == "x86_64" ]; then
|
if [ "${ARCH}" == "x86_64" ]; then
|
||||||
cp vmlinux "$WORKLOADS_DIR/" || exit 1
|
cp vmlinux "$WORKLOADS_DIR/" || exit 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user