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 @@ -86,8 +86,7 @@ setup_variables() {
86
86
image_name=Image.gz
87
87
qemu=" qemu-system-aarch64"
88
88
qemu_ram=512m
89
- qemu_cmdline=( -machine virt
90
- -cpu cortex-a57
89
+ qemu_cmdline=( -cpu cortex-a57
91
90
-drive " file=images/arm64/rootfs.ext4,format=raw"
92
91
-append " console=ttyAMA0 root=/dev/vda" )
93
92
export CROSS_COMPILE=aarch64-linux-gnu- ;;
@@ -262,11 +261,18 @@ build_linux() {
262
261
boot_qemu () {
263
262
local kernel_image=${tree} /arch/${ARCH} /boot/${image_name}
264
263
test -e ${kernel_image}
265
- timeout 2m unbuffer ${qemu} \
266
- -m ${qemu_ram} \
267
- " ${qemu_cmdline[@]} " \
268
- -nographic \
269
- -kernel ${kernel_image}
264
+ qemu=( timeout 2m unbuffer " ${qemu} "
265
+ -m " ${qemu_ram} "
266
+ " ${qemu_cmdline[@]} "
267
+ -nographic
268
+ -kernel " ${kernel_image} " )
269
+ # For arm64, we want to test booting at both EL1 and EL2
270
+ if [[ ${ARCH} = " arm64" ]]; then
271
+ " ${qemu[@]} " -machine virt
272
+ " ${qemu[@]} " -machine " virt,virtualization=true"
273
+ else
274
+ " ${qemu[@]} "
275
+ fi
270
276
}
271
277
272
278
setup_variables " ${@ } "
You can’t perform that action at this time.
0 commit comments