kernel-dev-concepts-appx.xml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622
  1. <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  2. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
  3. [<!ENTITY % poky SYSTEM "../poky.ent"> %poky; ] >
  4. <appendix id='kernel-dev-concepts-appx'>
  5. <title>Advanced Kernel Concepts</title>
  6. <section id='kernel-big-picture'>
  7. <title>Yocto Project Kernel Development and Maintenance</title>
  8. <para>
  9. Kernels available through the Yocto Project (Yocto Linux kernels),
  10. like other kernels, are based off the Linux kernel releases from
  11. <ulink url='http://www.kernel.org'></ulink>.
  12. At the beginning of a major Linux kernel development cycle, the
  13. Yocto Project team chooses a Linux kernel based on factors such as
  14. release timing, the anticipated release timing of final upstream
  15. <filename>kernel.org</filename> versions, and Yocto Project
  16. feature requirements.
  17. Typically, the Linux kernel chosen is in the final stages of
  18. development by the Linux community.
  19. In other words, the Linux kernel is in the release candidate
  20. or "rc" phase and has yet to reach final release.
  21. But, by being in the final stages of external development, the
  22. team knows that the <filename>kernel.org</filename> final release
  23. will clearly be within the early stages of the Yocto Project
  24. development window.
  25. </para>
  26. <para>
  27. This balance allows the Yocto Project team to deliver the most
  28. up-to-date Yocto Linux kernel possible, while still ensuring that
  29. the team has a stable official release for the baseline Linux
  30. kernel version.
  31. </para>
  32. <para>
  33. As implied earlier, the ultimate source for Yocto Linux kernels
  34. are released kernels from <filename>kernel.org</filename>.
  35. In addition to a foundational kernel from
  36. <filename>kernel.org</filename>, the available Yocto Linux kernels
  37. contain a mix of important new mainline developments, non-mainline
  38. developments (when no alternative exists), Board Support Package
  39. (BSP) developments, and custom features.
  40. These additions result in a commercially released Yocto
  41. Project Linux kernel that caters to specific embedded designer
  42. needs for targeted hardware.
  43. </para>
  44. <para>
  45. You can find a web interface to the Yocto Linux kernels in the
  46. <ulink url='&YOCTO_DOCS_OM_URL;#source-repositories'>Source Repositories</ulink>
  47. at
  48. <ulink url='&YOCTO_GIT_URL;'></ulink>.
  49. If you look at the interface, you will see to the left a
  50. grouping of Git repositories titled "Yocto Linux Kernel".
  51. Within this group, you will find several Linux Yocto kernels
  52. developed and included with Yocto Project releases:
  53. <itemizedlist>
  54. <listitem><para>
  55. <emphasis><filename>linux-yocto-4.1</filename>:</emphasis>
  56. The stable Yocto Project kernel to use with the Yocto
  57. Project Release 2.0.
  58. This kernel is based on the Linux 4.1 released kernel.
  59. </para></listitem>
  60. <listitem><para>
  61. <emphasis><filename>linux-yocto-4.4</filename>:</emphasis>
  62. The stable Yocto Project kernel to use with the Yocto
  63. Project Release 2.1.
  64. This kernel is based on the Linux 4.4 released kernel.
  65. </para></listitem>
  66. <listitem><para>
  67. <emphasis><filename>linux-yocto-4.6</filename>:</emphasis>
  68. A temporary kernel that is not tied to any Yocto Project
  69. release.
  70. </para></listitem>
  71. <listitem><para>
  72. <emphasis><filename>linux-yocto-4.8</filename>:</emphasis>
  73. The stable yocto Project kernel to use with the Yocto
  74. Project Release 2.2.
  75. </para></listitem>
  76. <listitem><para>
  77. <emphasis><filename>linux-yocto-4.9</filename>:</emphasis>
  78. The stable Yocto Project kernel to use with the Yocto
  79. Project Release 2.3.
  80. This kernel is based on the Linux 4.9 released kernel.
  81. </para></listitem>
  82. <listitem><para>
  83. <emphasis><filename>linux-yocto-4.10</filename>:</emphasis>
  84. The default stable Yocto Project kernel to use with the
  85. Yocto Project Release 2.3.
  86. This kernel is based on the Linux 4.10 released kernel.
  87. </para></listitem>
  88. <listitem><para>
  89. <emphasis><filename>linux-yocto-4.12</filename>:</emphasis>
  90. The default stable Yocto Project kernel to use with the
  91. Yocto Project Release 2.4.
  92. This kernel is based on the Linux 4.12 released kernel.
  93. </para></listitem>
  94. <listitem><para>
  95. <emphasis><filename>yocto-kernel-cache</filename>:</emphasis>
  96. The <filename>linux-yocto-cache</filename> contains
  97. patches and configurations for the linux-yocto kernel
  98. tree.
  99. This repository is useful when working on the linux-yocto
  100. kernel.
  101. For more information on this "Advanced Kernel Metadata",
  102. see the
  103. "<link linkend='kernel-dev-advanced'>Working With Advanced Metadata (<filename>yocto-kernel-cache</filename>)</link>"
  104. Chapter.
  105. </para></listitem>
  106. <listitem><para>
  107. <emphasis><filename>linux-yocto-dev</filename>:</emphasis>
  108. A development kernel based on the latest upstream release
  109. candidate available.
  110. </para></listitem>
  111. </itemizedlist>
  112. <note><title>Notes</title>
  113. Long Term Support Initiative (LTSI) for Yocto Linux
  114. kernels is as follows:
  115. <itemizedlist>
  116. <listitem><para>
  117. For Yocto Project releases 1.7, 1.8, and 2.0,
  118. the LTSI kernel is
  119. <filename>linux-yocto-3.14</filename>.
  120. </para></listitem>
  121. <listitem><para>
  122. For Yocto Project releases 2.1, 2.2, and 2.3,
  123. the LTSI kernel is <filename>linux-yocto-4.1</filename>.
  124. </para></listitem>
  125. <listitem><para>
  126. For Yocto Project release 2.4, the LTSI kernel is
  127. <filename>linux-yocto-4.9</filename>
  128. </para></listitem>
  129. <listitem><para>
  130. <filename>linux-yocto-4.4</filename> is an LTS
  131. kernel.
  132. </para></listitem>
  133. </itemizedlist>
  134. </note>
  135. </para>
  136. <para>
  137. Once a Yocto Linux kernel is officially released, the Yocto
  138. Project team goes into their next development cycle, or upward
  139. revision (uprev) cycle, while still continuing maintenance on the
  140. released kernel.
  141. It is important to note that the most sustainable and stable way
  142. to include feature development upstream is through a kernel uprev
  143. process.
  144. Back-porting hundreds of individual fixes and minor features from
  145. various kernel versions is not sustainable and can easily
  146. compromise quality.
  147. </para>
  148. <para>
  149. During the uprev cycle, the Yocto Project team uses an ongoing
  150. analysis of Linux kernel development, BSP support, and release
  151. timing to select the best possible <filename>kernel.org</filename>
  152. Linux kernel version on which to base subsequent Yocto Linux
  153. kernel development.
  154. The team continually monitors Linux community kernel development
  155. to look for significant features of interest.
  156. The team does consider back-porting large features if they have a
  157. significant advantage.
  158. User or community demand can also trigger a back-port or creation
  159. of new functionality in the Yocto Project baseline kernel during
  160. the uprev cycle.
  161. </para>
  162. <para>
  163. Generally speaking, every new Linux kernel both adds features and
  164. introduces new bugs.
  165. These consequences are the basic properties of upstream
  166. Linux kernel development and are managed by the Yocto Project
  167. team's Yocto Linux kernel development strategy.
  168. It is the Yocto Project team's policy to not back-port minor
  169. features to the released Yocto Linux kernel.
  170. They only consider back-porting significant technological
  171. jumps &dash; and, that is done after a complete gap analysis.
  172. The reason for this policy is that back-porting any small to
  173. medium sized change from an evolving Linux kernel can easily
  174. create mismatches, incompatibilities and very subtle errors.
  175. </para>
  176. <para>
  177. The policies described in this section result in both a stable
  178. and a cutting edge Yocto Linux kernel that mixes forward ports of
  179. existing Linux kernel features and significant and critical new
  180. functionality.
  181. Forward porting Linux kernel functionality into the Yocto Linux
  182. kernels available through the Yocto Project can be thought of as
  183. a "micro uprev."
  184. The many “micro uprevs” produce a Yocto Linux kernel version with
  185. a mix of important new mainline, non-mainline, BSP developments
  186. and feature integrations.
  187. This Yocto Linux kernel gives insight into new features and
  188. allows focused amounts of testing to be done on the kernel,
  189. which prevents surprises when selecting the next major uprev.
  190. The quality of these cutting edge Yocto Linux kernels is evolving
  191. and the kernels are used in leading edge feature and BSP
  192. development.
  193. </para>
  194. </section>
  195. <section id='yocto-linux-kernel-architecture-and-branching-strategies'>
  196. <title>Yocto Linux Kernel Architecture and Branching Strategies</title>
  197. <para>
  198. As mentioned earlier, a key goal of the Yocto Project is
  199. to present the developer with a kernel that has a clear and
  200. continuous history that is visible to the user.
  201. The architecture and mechanisms, in particular the branching
  202. strategies, used achieve that goal in a manner similar to
  203. upstream Linux kernel development in
  204. <filename>kernel.org</filename>.
  205. </para>
  206. <para>
  207. You can think of a Yocto Linux kernel as consisting of a
  208. baseline Linux kernel with added features logically structured
  209. on top of the baseline.
  210. The features are tagged and organized by way of a branching
  211. strategy implemented by the Yocto Project team using the
  212. Source Code Manager (SCM) Git.
  213. <note><title>Notes</title>
  214. <itemizedlist>
  215. <listitem><para>
  216. Git is the obvious SCM for meeting the Yocto Linux
  217. kernel organizational and structural goals described
  218. in this section.
  219. Not only is Git the SCM for Linux kernel development in
  220. <filename>kernel.org</filename> but, Git continues to
  221. grow in popularity and supports many different work
  222. flows, front-ends and management techniques.
  223. </para></listitem>
  224. <listitem><para>
  225. You can find documentation on Git at
  226. <ulink url='http://git-scm.com/documentation'></ulink>.
  227. You can also get an introduction to Git as it
  228. applies to the Yocto Project in the
  229. "<ulink url='&YOCTO_DOCS_OM_URL;#git'>Git</ulink>"
  230. section in the Yocto Project Overview and Concepts
  231. Manual.
  232. The latter reference provides an overview of
  233. Git and presents a minimal set of Git commands
  234. that allows you to be functional using Git.
  235. You can use as much, or as little, of what Git
  236. has to offer to accomplish what you need for your
  237. project.
  238. You do not have to be a "Git Expert" in order to
  239. use it with the Yocto Project.
  240. </para></listitem>
  241. </itemizedlist>
  242. </note>
  243. </para>
  244. <para>
  245. Using Git's tagging and branching features, the Yocto Project
  246. team creates kernel branches at points where functionality is
  247. no longer shared and thus, needs to be isolated.
  248. For example, board-specific incompatibilities would require
  249. different functionality and would require a branch to
  250. separate the features.
  251. Likewise, for specific kernel features, the same branching
  252. strategy is used.
  253. </para>
  254. <para>
  255. This "tree-like" architecture results in a structure that has
  256. features organized to be specific for particular functionality,
  257. single kernel types, or a subset of kernel types.
  258. Thus, the user has the ability to see the added features and the
  259. commits that make up those features.
  260. In addition to being able to see added features, the user
  261. can also view the history of what made up the baseline
  262. Linux kernel.
  263. </para>
  264. <para>
  265. Another consequence of this strategy results in not having to
  266. store the same feature twice internally in the tree.
  267. Rather, the kernel team stores the unique differences required
  268. to apply the feature onto the kernel type in question.
  269. <note>
  270. The Yocto Project team strives to place features in the tree
  271. such that features can be shared by all boards and kernel
  272. types where possible.
  273. However, during development cycles or when large features
  274. are merged, the team cannot always follow this practice.
  275. In those cases, the team uses isolated branches to merge
  276. features.
  277. </note>
  278. </para>
  279. <para>
  280. BSP-specific code additions are handled in a similar manner to
  281. kernel-specific additions.
  282. Some BSPs only make sense given certain kernel types.
  283. So, for these types, the team creates branches off the end
  284. of that kernel type for all of the BSPs that are supported on
  285. that kernel type.
  286. From the perspective of the tools that create the BSP branch,
  287. the BSP is really no different than a feature.
  288. Consequently, the same branching strategy applies to BSPs as
  289. it does to kernel features.
  290. So again, rather than store the BSP twice, the team only
  291. stores the unique differences for the BSP across the supported
  292. multiple kernels.
  293. </para>
  294. <para>
  295. While this strategy can result in a tree with a significant number
  296. of branches, it is important to realize that from the developer's
  297. point of view, there is a linear path that travels from the
  298. baseline <filename>kernel.org</filename>, through a select
  299. group of features and ends with their BSP-specific commits.
  300. In other words, the divisions of the kernel are transparent and
  301. are not relevant to the developer on a day-to-day basis.
  302. From the developer's perspective, this path is the "master" branch
  303. in Git terms.
  304. The developer does not need to be aware of the existence of any
  305. other branches at all.
  306. Of course, value exists in the having these branches in the tree,
  307. should a person decide to explore them.
  308. For example, a comparison between two BSPs at either the commit
  309. level or at the line-by-line code <filename>diff</filename> level
  310. is now a trivial operation.
  311. </para>
  312. <para>
  313. The following illustration shows the conceptual Yocto
  314. Linux kernel.
  315. <imagedata fileref="figures/kernel-architecture-overview.png" width="6in" depth="7in" align="center" scale="100" />
  316. </para>
  317. <para>
  318. In the illustration, the "Kernel.org Branch Point" marks the
  319. specific spot (or Linux kernel release) from which the
  320. Yocto Linux kernel is created.
  321. From this point forward in the tree, features and differences
  322. are organized and tagged.
  323. </para>
  324. <para>
  325. The "Yocto Project Baseline Kernel" contains functionality that
  326. is common to every kernel type and BSP that is organized
  327. further along in the tree.
  328. Placing these common features in the tree this way means
  329. features do not have to be duplicated along individual
  330. branches of the tree structure.
  331. </para>
  332. <para>
  333. From the "Yocto Project Baseline Kernel", branch points represent
  334. specific functionality for individual Board Support Packages
  335. (BSPs) as well as real-time kernels.
  336. The illustration represents this through three BSP-specific
  337. branches and a real-time kernel branch.
  338. Each branch represents some unique functionality for the BSP
  339. or for a real-time Yocto Linux kernel.
  340. </para>
  341. <para>
  342. In this example structure, the "Real-time (rt) Kernel" branch has
  343. common features for all real-time Yocto Linux kernels and
  344. contains more branches for individual BSP-specific real-time
  345. kernels.
  346. The illustration shows three branches as an example.
  347. Each branch points the way to specific, unique features for a
  348. respective real-time kernel as they apply to a given BSP.
  349. </para>
  350. <para>
  351. The resulting tree structure presents a clear path of markers
  352. (or branches) to the developer that, for all practical
  353. purposes, is the Yocto Linux kernel needed for any given set of
  354. requirements.
  355. <note>
  356. Keep in mind the figure does not take into account all the
  357. supported Yocto Linux kernels, but rather shows a single
  358. generic kernel just for conceptual purposes.
  359. Also keep in mind that this structure represents the Yocto
  360. Project
  361. <ulink url='&YOCTO_DOCS_OM_URL;#source-repositories'>Source Repositories</ulink>
  362. that are either pulled from during the build or established
  363. on the host development system prior to the build by either
  364. cloning a particular kernel's Git repository or by
  365. downloading and unpacking a tarball.
  366. </note>
  367. </para>
  368. <para>
  369. Working with the kernel as a structured tree follows recognized
  370. community best practices.
  371. In particular, the kernel as shipped with the product, should be
  372. considered an "upstream source" and viewed as a series of
  373. historical and documented modifications (commits).
  374. These modifications represent the development and stabilization
  375. done by the Yocto Project kernel development team.
  376. </para>
  377. <para>
  378. Because commits only change at significant release points in the
  379. product life cycle, developers can work on a branch created
  380. from the last relevant commit in the shipped Yocto Project Linux
  381. kernel.
  382. As mentioned previously, the structure is transparent to the
  383. developer because the kernel tree is left in this state after
  384. cloning and building the kernel.
  385. </para>
  386. </section>
  387. <section id='kernel-build-file-hierarchy'>
  388. <title>Kernel Build File Hierarchy</title>
  389. <para>
  390. Upstream storage of all the available kernel source code is
  391. one thing, while representing and using the code on your host
  392. development system is another.
  393. Conceptually, you can think of the kernel source repositories
  394. as all the source files necessary for all the supported
  395. Yocto Linux kernels.
  396. As a developer, you are just interested in the source files
  397. for the kernel on which you are working.
  398. And, furthermore, you need them available on your host system.
  399. </para>
  400. <para>
  401. Kernel source code is available on your host system several
  402. different ways:
  403. <itemizedlist>
  404. <listitem><para>
  405. <emphasis>Files Accessed While using <filename>devtool</filename>:</emphasis>
  406. <filename>devtool</filename>, which is available with the
  407. Yocto Project, is the preferred method by which to
  408. modify the kernel.
  409. See the
  410. "<link linkend='kernel-modification-workflow'>Kernel Modification Workflow</link>"
  411. section.
  412. </para></listitem>
  413. <listitem><para>
  414. <emphasis>Cloned Repository:</emphasis>
  415. If you are working in the kernel all the time, you probably
  416. would want to set up your own local Git repository of the
  417. Yocto Linux kernel tree.
  418. For information on how to clone a Yocto Linux kernel
  419. Git repository, see the
  420. "<link linkend='preparing-the-build-host-to-work-on-the-kernel'>Preparing the Build Host to Work on the Kernel</link>"
  421. section.
  422. </para></listitem>
  423. <listitem><para>
  424. <emphasis>Temporary Source Files from a Build:</emphasis>
  425. If you just need to make some patches to the kernel using
  426. a traditional BitBake workflow (i.e. not using the
  427. <filename>devtool</filename>), you can access temporary
  428. kernel source files that were extracted and used during
  429. a kernel build.
  430. </para></listitem>
  431. </itemizedlist>
  432. </para>
  433. <para>
  434. The temporary kernel source files resulting from a build using
  435. BitBake have a particular hierarchy.
  436. When you build the kernel on your development system, all files
  437. needed for the build are taken from the source repositories
  438. pointed to by the
  439. <ulink url='&YOCTO_DOCS_REF_URL;#var-SRC_URI'><filename>SRC_URI</filename></ulink>
  440. variable and gathered in a temporary work area where they are
  441. subsequently used to create the unique kernel.
  442. Thus, in a sense, the process constructs a local source tree
  443. specific to your kernel from which to generate the new kernel
  444. image.
  445. </para>
  446. <para>
  447. The following figure shows the temporary file structure
  448. created on your host system when you build the kernel using
  449. Bitbake.
  450. This
  451. <ulink url='&YOCTO_DOCS_REF_URL;#build-directory'>Build Directory</ulink>
  452. contains all the source files used during the build.
  453. <imagedata fileref="figures/kernel-overview-2-generic.png"
  454. width="6in" depth="5in" align="center" scale="100" />
  455. </para>
  456. <para>
  457. Again, for additional information on the Yocto Project kernel's
  458. architecture and its branching strategy, see the
  459. "<link linkend='yocto-linux-kernel-architecture-and-branching-strategies'>Yocto Linux Kernel Architecture and Branching Strategies</link>"
  460. section.
  461. You can also reference the
  462. "<link linkend='using-devtool-to-patch-the-kernel'>Using <filename>devtool</filename> to Patch the Kernel</link>"
  463. and
  464. "<link linkend='using-traditional-kernel-development-to-patch-the-kernel'>Using Traditional Kernel Development to Patch the Kernel</link>"
  465. sections for detailed example that modifies the kernel.
  466. </para>
  467. </section>
  468. <section id='determining-hardware-and-non-hardware-features-for-the-kernel-configuration-audit-phase'>
  469. <title>Determining Hardware and Non-Hardware Features for the Kernel Configuration Audit Phase</title>
  470. <para>
  471. This section describes part of the kernel configuration audit
  472. phase that most developers can ignore.
  473. For general information on kernel configuration including
  474. <filename>menuconfig</filename>, <filename>defconfig</filename>
  475. files, and configuration fragments, see the
  476. "<link linkend='configuring-the-kernel'>Configuring the Kernel</link>"
  477. section.
  478. </para>
  479. <para>
  480. During this part of the audit phase, the contents of the final
  481. <filename>.config</filename> file are compared against the
  482. fragments specified by the system.
  483. These fragments can be system fragments, distro fragments,
  484. or user-specified configuration elements.
  485. Regardless of their origin, the OpenEmbedded build system
  486. warns the user if a specific option is not included in the
  487. final kernel configuration.
  488. </para>
  489. <para>
  490. By default, in order to not overwhelm the user with
  491. configuration warnings, the system only reports missing
  492. "hardware" options as they could result in a boot
  493. failure or indicate that important hardware is not available.
  494. </para>
  495. <para>
  496. To determine whether or not a given option is "hardware" or
  497. "non-hardware", the kernel Metadata in
  498. <filename>yocto-kernel-cache</filename> contains files that
  499. classify individual or groups of options as either hardware
  500. or non-hardware.
  501. To better show this, consider a situation where the
  502. <filename>yocto-kernel-cache</filename> contains the following
  503. files:
  504. <literallayout class='monospaced'>
  505. yocto-kernel-cache/features/drm-psb/hardware.cfg
  506. yocto-kernel-cache/features/kgdb/hardware.cfg
  507. yocto-kernel-cache/ktypes/base/hardware.cfg
  508. yocto-kernel-cache/bsp/mti-malta32/hardware.cfg
  509. yocto-kernel-cache/bsp/fsl-mpc8315e-rdb/hardware.cfg
  510. yocto-kernel-cache/bsp/qemu-ppc32/hardware.cfg
  511. yocto-kernel-cache/bsp/qemuarma9/hardware.cfg
  512. yocto-kernel-cache/bsp/mti-malta64/hardware.cfg
  513. yocto-kernel-cache/bsp/arm-versatile-926ejs/hardware.cfg
  514. yocto-kernel-cache/bsp/common-pc/hardware.cfg
  515. yocto-kernel-cache/bsp/common-pc-64/hardware.cfg
  516. yocto-kernel-cache/features/rfkill/non-hardware.cfg
  517. yocto-kernel-cache/ktypes/base/non-hardware.cfg
  518. yocto-kernel-cache/features/aufs/non-hardware.kcf
  519. yocto-kernel-cache/features/ocf/non-hardware.kcf
  520. yocto-kernel-cache/ktypes/base/non-hardware.kcf
  521. yocto-kernel-cache/ktypes/base/hardware.kcf
  522. yocto-kernel-cache/bsp/qemu-ppc32/hardware.kcf
  523. </literallayout>
  524. The following list provides explanations for the various
  525. files:
  526. <itemizedlist>
  527. <listitem><para>
  528. <filename>hardware.kcf</filename>:
  529. Specifies a list of kernel Kconfig files that contain
  530. hardware options only.
  531. </para></listitem>
  532. <listitem><para>
  533. <filename>non-hardware.kcf</filename>:
  534. Specifies a list of kernel Kconfig files that contain
  535. non-hardware options only.
  536. </para></listitem>
  537. <listitem><para>
  538. <filename>hardware.cfg</filename>:
  539. Specifies a list of kernel <filename>CONFIG_</filename>
  540. options that are hardware, regardless of whether or not
  541. they are within a Kconfig file specified by a hardware
  542. or non-hardware Kconfig file (i.e.
  543. <filename>hardware.kcf</filename> or
  544. <filename>non-hardware.kcf</filename>).
  545. </para></listitem>
  546. <listitem><para>
  547. <filename>non-hardware.cfg</filename>:
  548. Specifies a list of kernel <filename>CONFIG_</filename>
  549. options that are not hardware, regardless of whether or
  550. not they are within a Kconfig file specified by a
  551. hardware or non-hardware Kconfig file (i.e.
  552. <filename>hardware.kcf</filename> or
  553. <filename>non-hardware.kcf</filename>).
  554. </para></listitem>
  555. </itemizedlist>
  556. Here is a specific example using the
  557. <filename>kernel-cache/bsp/mti-malta32/hardware.cfg</filename>:
  558. <literallayout class='monospaced'>
  559. CONFIG_SERIAL_8250
  560. CONFIG_SERIAL_8250_CONSOLE
  561. CONFIG_SERIAL_8250_NR_UARTS
  562. CONFIG_SERIAL_8250_PCI
  563. CONFIG_SERIAL_CORE
  564. CONFIG_SERIAL_CORE_CONSOLE
  565. CONFIG_VGA_ARB
  566. </literallayout>
  567. The kernel configuration audit automatically detects these
  568. files (hence the names must be exactly the ones discussed here),
  569. and uses them as inputs when generating warnings about the
  570. final <filename>.config</filename> file.
  571. </para>
  572. <para>
  573. A user-specified kernel Metadata repository, or recipe space
  574. feature, can use these same files to classify options that are
  575. found within its <filename>.cfg</filename> files as hardware
  576. or non-hardware, to prevent the OpenEmbedded build system from
  577. producing an error or warning when an option is not in the
  578. final <filename>.config</filename> file.
  579. </para>
  580. </section>
  581. </appendix>
  582. <!--
  583. vim: expandtab tw=80 ts=4
  584. -->