acrn-config: always generate .clos boilerplate code in vm_configurations.c
so that vm_configurations.h/vm_configurations.c are consistent for different boards The boilerplate code is protected by #ifdef CONFIG_RDT_ENABLED/#endif, so it will not hurt if we always produce the .clos code. Tracked-On: #5229 Signed-off-by: dongshen <dongsheng.x.zhang@intel.com>
This commit is contained in:
parent
9f43d200d6
commit
f438ab5a04
|
@ -187,10 +187,9 @@ def clos_output(scenario_items, i, config):
|
||||||
"""
|
"""
|
||||||
hv_info = scenario_items['hv']
|
hv_info = scenario_items['hv']
|
||||||
|
|
||||||
if board_cfg_lib.is_rdt_supported():
|
print("#ifdef CONFIG_RDT_ENABLED", file=config)
|
||||||
print("#ifdef CONFIG_RDT_ENABLED", file=config)
|
print("\t\t.clos = VM{}_VCPU_CLOS,".format(i), file=config)
|
||||||
print("\t\t.clos = VM{}_VCPU_CLOS,".format(i), file=config)
|
print("#endif", file=config)
|
||||||
print("#endif", file=config)
|
|
||||||
|
|
||||||
def get_guest_flag(flags):
|
def get_guest_flag(flags):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue