acrn-config: fix csme passthrough issue for launch setting

minor_ver should be le 2 when major_ver == 2.

Tracked-On: #5276

Signed-off-by: Shuang Zheng <shuang.zheng@intel.com>
Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
Shuang Zheng
2020-09-04 12:06:06 +08:00
committed by wenlingz
parent 0461ac209f
commit 84c4c43833
4 changed files with 4 additions and 4 deletions

View File

@@ -98,7 +98,7 @@ def cse_pt(sel, vmid, config):
print("major_ver=`echo $hbm_ver | cut -d '.' -f1`", file=config)
print("minor_ver=`echo $hbm_ver | cut -d '.' -f2`", file=config)
print('if [[ "$major_ver" -lt "2" ]] || \\', file=config)
print(' [[ "$major_ver" == "2" && "$minor_ver" -lt "2" ]]; then', file=config)
print(' [[ "$major_ver" == "2" && "$minor_ver" -le "2" ]]; then', file=config)
print(" cse_passthrough=1", file=config)
print("fi", file=config)
print('boot_cse_option=""', file=config)