This repository was archived by the owner on Apr 13, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,7 @@ setup_variables() {
85
85
image_name=Image.gz
86
86
qemu=" qemu-system-aarch64"
87
87
qemu_ram=512m
88
- qemu_cmdline=( -machine virt
89
- -cpu cortex-a57
88
+ qemu_cmdline=( -cpu cortex-a57
90
89
-drive " file=images/arm64/rootfs.ext4,format=raw"
91
90
-append " console=ttyAMA0 root=/dev/vda" )
92
91
export CROSS_COMPILE=aarch64-linux-gnu- ;;
@@ -202,11 +201,18 @@ build_linux() {
202
201
boot_qemu () {
203
202
local kernel_image=${tree} /arch/${ARCH} /boot/${image_name}
204
203
test -e ${kernel_image}
205
- timeout 2m unbuffer ${qemu} \
206
- -m ${qemu_ram} \
207
- " ${qemu_cmdline[@]} " \
208
- -nographic \
209
- -kernel ${kernel_image}
204
+ qemu=( timeout 2m unbuffer " ${qemu} "
205
+ -m " ${qemu_ram} "
206
+ " ${qemu_cmdline[@]} "
207
+ -nographic
208
+ -kernel " ${kernel_image} " )
209
+ # For arm64, we want to test booting at both EL1 and EL2
210
+ if [[ ${ARCH} = " arm64" ]]; then
211
+ " ${qemu[@]} " -machine virt
212
+ " ${qemu[@]} " -machine " virt,virtualization=true"
213
+ else
214
+ " ${qemu[@]} "
215
+ fi
210
216
}
211
217
212
218
setup_variables " ${@ } "
You can’t perform that action at this time.
0 commit comments