Skip to content

Commit

Permalink
launch_zephyr.sh: remove guest cpu number
Browse files Browse the repository at this point in the history
Remove the '-c' option from all scripts as it has been removed from
dm code.

Reference:
projectacrn/acrn-hypervisor@0ea12a4

Signed-off-by: Naveen Saini <[email protected]>
  • Loading branch information
saininav committed Feb 7, 2020
1 parent 9eb5166 commit 96910d8
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions recipes-guests/yocto/zephyr-image-package/launch_zephyr.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
#!/bin/bash
# Copyright (C) 2019 Intel Corporation.
# SPDX-License-Identifier: BSD-3-Clause

function launch_zephyr()
{
vm_name=zephyr_vm$1

#check if the vm is running or not
vm_ps=$(pgrep -a -f acrn-dm)
result=$(echo $vm_ps | grep "${vm_name}")
result=$(echo $vm_ps | grep -w "${vm_name}")
if [[ "$result" != "" ]]; then
echo "$vm_name is running, can't create twice!"
exit
Expand All @@ -15,9 +17,9 @@ fi
#for memsize setting
mem_size=128M

acrn-dm -A -m $mem_size -c $2 -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \
acrn-dm -A -m $mem_size -s 0:0,hostbridge -s 1:0,lpc -l com1,stdio \
-s 5,virtio-console,@pty:pty_port \
-s 3,virtio-blk,/var/lib/machines/zephyr.img \
-s 3,virtio-blk,./zephyr.img \
--ovmf /usr/share/acrn/bios/OVMF.fd \
$vm_name
}
Expand All @@ -39,4 +41,4 @@ for i in `ls -d /sys/devices/system/cpu/cpu[1-99]`; do
fi
done

launch_zephyr 1 1
launch_zephyr 1

0 comments on commit 96910d8

Please sign in to comment.