@@ -45,7 +45,6 @@ setup_variables() {
45
45
config=multi_v5_defconfig
46
46
image_name=zImage
47
47
qemu=" qemu-system-arm"
48
- qemu_ram=512m
49
48
qemu_cmdline=( -machine palmetto-bmc
50
49
-no-reboot
51
50
-dtb " ${tree} /arch/arm/boot/dts/aspeed-bmc-opp-palmetto.dtb"
@@ -57,7 +56,6 @@ setup_variables() {
57
56
config=aspeed_g5_defconfig
58
57
image_name=zImage
59
58
qemu=" qemu-system-arm"
60
- qemu_ram=512m
61
59
qemu_cmdline=( -machine romulus-bmc
62
60
-no-reboot
63
61
-dtb " ${tree} /arch/arm/boot/dts/aspeed-bmc-opp-romulus.dtb"
@@ -69,7 +67,6 @@ setup_variables() {
69
67
config=multi_v7_defconfig
70
68
image_name=zImage
71
69
qemu=" qemu-system-arm"
72
- qemu_ram=512m
73
70
qemu_cmdline=( -machine virt
74
71
-no-reboot
75
72
-drive " file=images/arm/rootfs.ext4,format=raw,id=rootfs,if=none"
@@ -85,7 +82,6 @@ setup_variables() {
85
82
esac
86
83
image_name=Image.gz
87
84
qemu=" qemu-system-aarch64"
88
- qemu_ram=512m
89
85
qemu_cmdline=( -cpu cortex-a57
90
86
-drive " file=images/arm64/rootfs.ext4,format=raw"
91
87
-append " console=ttyAMA0 root=/dev/vda" )
@@ -103,8 +99,7 @@ setup_variables() {
103
99
-append " console=ttyS0 root=/dev/sda" ) ;;
104
100
esac
105
101
image_name=bzImage
106
- qemu=" qemu-system-x86_64"
107
- qemu_ram=512m ;;
102
+ qemu=" qemu-system-x86_64" ;;
108
103
" ppc32" )
109
104
config=ppc44x_defconfig
110
105
image_name=zImage
@@ -272,7 +267,7 @@ boot_qemu() {
272
267
local kernel_image=${tree} /arch/${ARCH} /boot/${image_name}
273
268
test -e ${kernel_image}
274
269
qemu=( timeout 2m unbuffer " ${qemu} "
275
- -m " ${qemu_ram} "
270
+ -m " ${qemu_ram:= 512m } "
276
271
" ${qemu_cmdline[@]} "
277
272
-nographic
278
273
-kernel " ${kernel_image} " )
0 commit comments