File: bitbake.xml

package info (click to toggle)
ksyntax-highlighting 5.116.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,640 kB
  • sloc: xml: 186,656; cpp: 12,164; python: 1,202; sh: 898; perl: 515; ruby: 406; pascal: 393; php: 149; javascript: 140; jsp: 132; lisp: 131; haskell: 124; ansic: 107; f90: 94; cobol: 81; makefile: 78; ml: 75; yacc: 71; csh: 62; erlang: 54; sql: 51; objc: 37; java: 32; awk: 31; asm: 30; tcl: 29; fortran: 18; cs: 10
file content (232 lines) | stat: -rw-r--r-- 9,318 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language
[
        <!ENTITY funcname "[A-Za-z_:][A-Za-z0-9_:#&#37;${}@-]*">
        <!ENTITY parens   "\(\s*\)">
        <!ENTITY eos      "(?=$|\s)">                 <!-- eol or space following -->
]>
<!--
  ====================================================================
  Bitbake syntax highlighting file for the Kate and QtCreator
  ====================================================================

  Author: Ivan Koveshnikov
  Changes by Mark Nauwelaerts
-->

<language name="Bitbake" section="Sources"
          version="12" kateversion="5.79"
          extensions="*.bb;*.bbappend;*.bbclass;*.inc"
          license="GPL" author="Ivan Koveshnikov">

  <highlighting>

    <list name="keywords">
      <item>after</item>
      <item>before</item>
      <item>python</item>
      <item>branch</item>
      <item>bareclone</item>
      <item>protocol</item>
      <item>name</item>
      <item>if</item>
      <item>fi</item>
      <item>then</item>
      <item>rm</item>
      <item>ln</item>
      <item>cp</item>
      <item>for</item>
      <item>done</item>
      <item>cat</item>
    </list>

    <list name="oe_functions">
      <item>do_build</item>
      <item>do_compile</item>
      <item>do_compile_append</item>
      <item>do_compile_prepend</item>
      <item>do_compile_ptest_base</item>
      <item>do_configure</item>
      <item>do_configure_append</item>
      <item>do_configure_prepend</item>
      <item>do_configure_ptest_base</item>
      <item>do_deploy</item>
      <item>do_fetch</item>
      <item>do_install</item>
      <item>do_install_append</item>
      <item>do_install_prepend</item>
      <item>do_install_ptest_base</item>
      <item>do_package</item>
      <item>do_package_qa</item>
      <item>do_package_write_deb</item>
      <item>do_package_write_ipk</item>
      <item>do_package_write_rpm</item>
      <item>do_package_write_tar</item>
      <item>do_packagedata</item>
      <item>do_patch</item>
      <item>do_populate_lic</item>
      <item>do_populate_sdk</item>
      <item>do_populate_sysroot</item>
      <item>do_rm_work</item>
      <item>do_rm_work_all</item>
      <item>do_unpack</item>
      <item>do_checkuri</item>
      <item>do_checkuriall</item>
      <item>do_clean</item>
      <item>do_cleanall</item>
      <item>do_cleansstate</item>
      <item>do_devshell</item>
      <item>do_fetchall</item>
      <item>do_listtasks</item>
      <item>do_package_index</item>
      <item>do_bootimg</item>
      <item>do_bundle_initramfs</item>
      <item>do_rootfs</item>
      <item>do_testimage</item>
      <item>do_testimage_auto</item>
      <item>do_vmdkimg</item>
      <item>do_compile_kernelmodules</item>
      <item>do_diffconfig</item>
      <item>do_kernel_checkout</item>
      <item>do_kernel_configcheck</item>
      <item>do_kernel_configme</item>
      <item>do_kernel_link_vmlinux</item>
      <item>do_menuconfig</item>
      <item>do_savedefconfig</item>
      <item>do_sizecheck</item>
      <item>do_strip</item>
      <item>do_uboot_mkimage</item>
      <item>do_validate_branches</item>
      <item>do_generate_qt_config_file</item>
      <item>do_spdx</item>
      <item>oe_runmake</item>
      <item>export</item>
      <item>install</item>
      <item>kernel_configme</item>
      <item>validate_branches</item>

    </list>

    <list name="dependencies">
      <item>inherit</item>
      <item>include</item>
      <item>require</item>
      <item>addtask</item>
      <item>deltask</item>
      <item>addhandler</item>
      <item>EXPORT_FUNCTIONS</item>
    </list>

    <contexts>

      <context name="Normal Text" attribute="Normal Text" lineEndContext="#pop" >
        <DetectSpaces/>
        <DetectChar                         context="bbComment" char="#" />
        <!-- detect sub-context before marked as keyword -->
        <RegExpr context="pbfunction" String="^\s*python\s+&funcname;\s*&parens;" lookAhead="true" column="0" />
        <RegExpr context="pfunction" String="^def\s+&funcname;\s*\(.*\)\s*:&eos;" lookAhead="true" column="0" minimal="true" />
        <RegExpr context="function" String="^\s*&funcname;\s*&parens;" lookAhead="true" column="0" />
        <IncludeRules context="keywords" />
        <DetectChar attribute="String"      context="bbString"  char="&quot;" />
        <RegExpr attribute="Variable" context="#stay" String="\$\{[A-Za-z0-9_-]+\}" />
        <RegExpr attribute="Keyword" context="#stay" String="(?:[A-Z]+)[0-9_]*" />
      </context>

      <!-- used for include -->
      <context name="keywords" attribute="Normal Text" lineEndContext="#stay">
        <keyword attribute="Keyword"        context="#stay"     String="keywords" />
        <keyword attribute="OEFunction"     context="#stay"     String="oe_functions" />
        <keyword attribute="Dependency"     context="#stay"     String="dependencies" />
      </context>

      <!-- bitbake shell function -->
      <context name="function" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="keywords" />
        <RegExpr attribute="Function" context="#stay" String="&funcname;\s*&parens;" />
        <DetectChar char="{" context="bash"  beginRegion="function" />
      </context>

      <context name="bash" attribute="Normal Text" lineEndContext="#stay" fallthroughContext="Command##Bash">
        <DetectChar attribute="Keyword" char="}" context="#pop#pop" endRegion="function" />
        <IncludeRules context="##Bash" />
      </context>

      <!-- bitbake python function -->
      <context name="pbfunction" attribute="Normal Text" lineEndContext="#stay">
        <IncludeRules context="keywords" />
        <RegExpr attribute="Function" context="#stay" String="&funcname;\s*&parens;" />
        <DetectChar char="{" context="python"  beginRegion="function" />
      </context>

      <!-- (internal) python function -->
      <context name="pfunction" attribute="Normal Text" lineEndContext="python">
        <WordDetect attribute="Keyword" String="def" />
        <Detect2Chars char=")" char1=":" context="python"  beginRegion="function" />
      </context>

      <context name="python" attribute="Normal Text" lineEndContext="#stay">
        <DetectChar attribute="Keyword" char="}" context="#pop#pop" endRegion="function" />
        <RegExpr String="^\w" column="0" context="#pop#pop" endRegion="function" lookAhead="true" />
        <IncludeRules context="##Python" />
      </context>

      <context name="bbString" attribute="String" lineEndContext="bbError" >
        <keyword    attribute="Keyword"     context="#stay" String="keywords" />
        <DetectChar attribute="String"      context="#pop"  char="&quot;" />
        <LineContinue  attribute="Escape"   context="#stay"  />
        <AnyChar    attribute="Normal Text" context="#stay" String="=|;," />
        <RegExpr    attribute="BBFunction"  context="#stay" String="\$\{@[a-zA-Z0-9._\-\(\), &quot;/]+\}" />
        <RegExpr    attribute="Variable"    context="#stay" String="\$\{[A-Za-z0-9_-]+\}" />
      </context>

      <context name="bbComment" attribute="Comment" lineEndContext="#pop">
        <IncludeRules context="##Comments" />
      </context>

      <context name="bbError" attribute="Error" lineEndContext="#stay" >
        <DetectChar attribute="Error"      context="#pop"  char="&quot;" />
      </context>

    </contexts>

    <itemDatas>
    <!--
        dsNormal, used for normal text.
        dsKeyword, used for keywords.
        dsDataType, used for data types.
        dsDecVal, used for decimal values.
        dsBaseN, used for values with a base other than 10.
        dsFloat, used for float values.
        dsChar, used for a character.
        dsString, used for strings.
        dsComment, used for comments.
        dsOthers, used for ‘other’ things.
        dsAlert, used for warning messages.
        dsFunction, used for function calls.
        dsRegionMarker, used for region markers.
        dsError, used for error highlighting and wrong syntax.
    -->
      <itemData name="Normal Text"    defStyleNum="dsNormal"      spellChecking="false" />
      <itemData name="String"         defStyleNum="dsString"      spellChecking="true" />
      <itemData name="Keyword"        defStyleNum="dsKeyword"     spellChecking="false" />
      <itemData name="Variable"       defStyleNum="dsOthers"      spellChecking="false" color="darkred" />
      <itemData name="Comment"        defStyleNum="dsComment"     spellChecking="true" />
      <itemData name="Dependency"     defStyleNum="dsDataType"    spellChecking="false"/>
      <itemData name="BBFunction"     defStyleNum="dsOthers"      spellChecking="false" color="darkblue" />
      <itemData name="OEFunction"     defStyleNum="dsBaseN"       spellChecking="false" />
      <itemData name="Function"       defStyleNum="dsFunction"    spellChecking="false" />
      <itemData name="Escape"         defStyleNum="dsOthers"      spellChecking="false" color="grey" />
      <itemData name="Error"          defStyleNum="dsError"       spellChecking="false" />

    </itemDatas>

  </highlighting>

  <general>
    <comments>
      <comment name="singleLine" start="#"/>
    </comments>
  </general>

</language>
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; -->