~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/openbios/config/xml/fcode.xsl

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="ISO-8859-15" ?>
 
2
 
 
3
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
4
 
 
5
  <xsl:template match="/" mode="fcode">
 
6
 
 
7
    <xsl:text>&#10;#&#10;# fcode rules&#10;#&#10;&#10;</xsl:text>
 
8
 
 
9
    <!-- Create linker targets for FCode roms -->
 
10
    <xsl:for-each select="//fcode">
 
11
     <xsl:variable name="outer-conditions">
 
12
      <xsl:text>0</xsl:text>
 
13
       <xsl:for-each select="(ancestor-or-self::*)[@condition!='']">
 
14
        <xsl:call-template name="resolve-condition">
 
15
         <xsl:with-param select="@condition" name="expression"/>
 
16
        </xsl:call-template>
 
17
       </xsl:for-each>
 
18
     </xsl:variable>
 
19
 
 
20
     <xsl:if test="$outer-conditions = 0">
 
21
      <xsl:if test="(ancestor-or-self::*)">
 
22
 
 
23
       <xsl:variable name="path">
 
24
        <xsl:for-each select="ancestor::build">
 
25
         <xsl:call-template name="get-dirname">
 
26
          <xsl:with-param select="@base" name="path"/>
 
27
         </xsl:call-template>
 
28
        </xsl:for-each>
 
29
       </xsl:variable>
 
30
 
 
31
       <!-- Fcode name -->
 
32
       <xsl:text>$(ODIR)/</xsl:text>
 
33
       <xsl:value-of select="@name"/>
 
34
       <xsl:text>:</xsl:text>
 
35
 
 
36
       <xsl:text> $(SRCDIR)/</xsl:text>
 
37
       <xsl:value-of select="$path"/>
 
38
       <xsl:value-of select="@source"/>
 
39
 
 
40
       <!-- FIXME this requires strict spaces in rules.xml -->
 
41
       <xsl:value-of select="document('rules.xml',.)//rule[@target='host'][@entity='fcode']"/>
 
42
       <xsl:text>&#10;</xsl:text>
 
43
      </xsl:if>
 
44
     </xsl:if>
 
45
    </xsl:for-each>
 
46
 
 
47
  </xsl:template>
 
48
</xsl:stylesheet>