mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-24 14:33:38 +00:00
config-tools: remove empty cache_region entry
Currently the empty cache_regions are saved to scenario file. It is useless, and unable to pass the load/build validation check, causing build fail. This patch add a filter to the empty cache_region entry, so that the load/build validation check may pass. Tracked-On: #7609 Signed-off-by: Wu Zhou <wu.zhou@intel.com>
This commit is contained in:
parent
c90eeb1e0c
commit
64ec3917e1
@ -597,6 +597,12 @@ export default {
|
||||
// return a['@id'] - b['@id']
|
||||
// });
|
||||
})
|
||||
|
||||
for (let i = 0; i < board_cat_info.length; i++) {
|
||||
if (board_cat_info[i].data.POLICY.length == 0) {
|
||||
board_cat_info.splice(i--, 1)
|
||||
}
|
||||
}
|
||||
return board_cat_info;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user