Skip to content

Commit 6602fd9

Browse files
committed
chore(kernel): adapt kernel compilation to latest cloud-hypervisor
Signed-off-by: MorningTZH <morningtzh@yeah.net>
1 parent 8f58ebb commit 6602fd9

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
HYPERVISOR ?= cloud_hypervisor
22
GUESTOS_IMAGE ?= centos
33
WASM_RUNTIME ?= wasmedge
4-
KERNEL_VERSION ?= 6.2
4+
KERNEL_VERSION ?= 6.12.8
55
ARCH ?= x86_64
66
# DEST_DIR is used when built with RPM format
77
DEST_DIR ?= /

vmm/scripts/kernel/cloud_hypervisor/build.sh

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
# limitations under the License.
1515

1616
set -e
17+
set -x
1718

18-
readonly version=${1:-6.1.6}
19+
readonly version=${1:-6.12.8}
1920
readonly base_dir="$(dirname $(readlink -f $0))"
2021

2122
sudo apt-get update
@@ -25,12 +26,9 @@ sudo apt-get install -y libelf-dev elfutils
2526
rm -rf /tmp/linux-cloud-hypervisor
2627
git clone --depth 1 https://github.com/cloud-hypervisor/linux.git -b ch-${version} /tmp/linux-cloud-hypervisor
2728
pushd /tmp/linux-cloud-hypervisor
28-
wget --no-check-certificate https://raw.githubusercontent.com/cloud-hypervisor/cloud-hypervisor/main/resources/linux-config-x86_64
29-
# TODO support arm
30-
# wget https://raw.githubusercontent.com/cloud-hypervisor/cloud-hypervisor/main/resources/linux-config-aarch64
31-
cp linux-config-x86_64 .config # x86-64
32-
# TODO support arm
33-
# cp linux-config-aarch64 .config # AArch64
29+
make ch_defconfig
30+
31+
# Do native build of the x86-64 kernel
3432
KCFLAGS="-Wa,-mx86-used-note=no" make bzImage -j `nproc`
3533
# TODO support arm
3634
# make -j `nproc`

0 commit comments

Comments
 (0)