From 380f0d3a0517dc73bf53366b3dd32c3045f9837b Mon Sep 17 00:00:00 2001 From: gaowei Date: Wed, 27 Jan 2021 15:47:52 +0800 Subject: [PATCH] microvm_image: fix the build kernel arch in aarch64 platform. --- script/step/make_microvm_image.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/script/step/make_microvm_image.sh b/script/step/make_microvm_image.sh index 0700a33..90cc9b8 100644 --- a/script/step/make_microvm_image.sh +++ b/script/step/make_microvm_image.sh @@ -149,7 +149,15 @@ make_micro_kernel(){ pushd /usr/src/linux${kernel_src_version} cp ${microvm_dir}/${kernel_config} .config - make -j + if [ ${arch} == "x86_64" ]; then + make ARCH=x86_64 -j + elif [ ${arch} == "aarch64" ]; then + make ARCH=arm64 -j + else + LOG "${arch} is not supported yet." + return 0 + fi + objcopy -O binary vmlinux ${kernel_file} popd -- Gitee