deb-pkg: Support hybrid_rt scenario

Debian package adds support for hybrid_rt scenario.

Tracked-On: #6688

Signed-off-by: Hu Fenglin <fenglin.hu@intel.com>
This commit is contained in:
Hu Fenglin 2021-12-22 10:07:18 +08:00 committed by wenlingz
parent 27f0d2969a
commit 57360ad8d1
1 changed files with 21 additions and 0 deletions

View File

@ -45,6 +45,8 @@ $kernelimg
EOF
elif [ $SCENARIO == hybrid ];then
echo -e "\E[32m Please put zephyr64.elf in the /boot/ directory"
tput sgr0
cat>"${filename}"<<EOF
#!/bin/sh
exec tail -n +3 \$0
@ -60,6 +62,25 @@ module2 /boot/zephyr64.elf Zephyr_ElfImage
module2 /boot/ACPI_VM0.bin ACPI_VM0
}
EOF
elif [ $SCENARIO == hybrid_rt ];then
echo -e "\E[32m Please put bzImage_RT in the /boot/ directory"
tput sgr0
cat>"${filename}"<<EOF
#!/bin/sh
exec tail -n +3 \$0
menuentry 'ACRN multiboot2 ' --id ACRN_deb_multiboot2 {
load_video
insmod gzio
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set $uuid
multiboot2 $ACRNBIN root=PARTUUID=$partuuid
$kernelimg
module2 /boot/bzImage_RT RT_bzImage
module2 /boot/ACPI_VM0.bin ACPI_VM0
}
EOF
elif [ $SCENARIO == partitioned ];then
cat>"${filename}"<<EOF