mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-15 03:40:03 +00:00
If the MAX_MSIX_TABLE_NUM is specified in scenario.xml. Return the largest number from count of MSI, table_size of MSIX or MAX_MSIX_TABLE_NUM of scenario.xml. Tracked-On: #6235 Signed-off-by: Yang,Yu-chu <yu-chu.yang@intel.com>
73 lines
2.1 KiB
XML
73 lines
2.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!-- Copyright (C) 2021 Intel Corporation. All rights reserved. -->
|
|
<!-- SPDX-License-Identifier: BSD-3-Clause -->
|
|
|
|
<xsl:stylesheet
|
|
version="1.0"
|
|
xmlns:xi="http://www.w3.org/2003/XInclude"
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:acrn="http://projectacrn.org">
|
|
<xsl:include href="lib.xsl" />
|
|
<xsl:output method="text" />
|
|
|
|
<xsl:variable name="integer-suffix" select="''" />
|
|
|
|
<xi:include href="config_common.xsl" xpointer="xpointer(id('config_common')/*)" />
|
|
|
|
<xsl:template match="/acrn-offline-data">
|
|
<xsl:apply-templates select="board-data/acrn-config" />
|
|
<xsl:apply-templates select="config-data/acrn-config" />
|
|
</xsl:template>
|
|
|
|
<xsl:template name="entry-by-key-value">
|
|
<xsl:param name="key" />
|
|
<xsl:param name="value" />
|
|
<xsl:param name="default" />
|
|
|
|
<xsl:text>CONFIG_</xsl:text>
|
|
<xsl:value-of select="$key" />
|
|
<xsl:text>=</xsl:text>
|
|
<xsl:choose>
|
|
<xsl:when test="$value != ''">
|
|
<xsl:value-of select="$value" />
|
|
<xsl:text>
</xsl:text>
|
|
</xsl:when>
|
|
<xsl:when test="($value = '') and ($default != '')">
|
|
<xsl:value-of select="$default" />
|
|
<xsl:text>
</xsl:text>
|
|
</xsl:when>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="boolean-by-key-value">
|
|
<xsl:param name="key" />
|
|
<xsl:param name="value" />
|
|
|
|
<xsl:choose>
|
|
<xsl:when test="($value = 'y') or ($key = 'RELEASE')">
|
|
<xsl:call-template name="entry-by-key-value">
|
|
<xsl:with-param name="key" select="$key" />
|
|
<xsl:with-param name="value" select="$value" />
|
|
</xsl:call-template>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:text># CONFIG_</xsl:text>
|
|
<xsl:value-of select="$key" />
|
|
<xsl:text> is not set
</xsl:text>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
<xsl:template name="string-by-key-value">
|
|
<xsl:param name="key" />
|
|
<xsl:param name="value" />
|
|
|
|
<xsl:call-template name="entry-by-key-value">
|
|
<xsl:with-param name="key" select="$key" />
|
|
<xsl:with-param name="value" select="$value" />
|
|
</xsl:call-template>
|
|
</xsl:template>
|
|
|
|
</xsl:stylesheet>
|