62 lines
5.2 KiB
HTML
62 lines
5.2 KiB
HTML
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||
<title>Chapter 7. Classes</title>
|
||
<link rel="stylesheet" type="text/css" href="../book.css">
|
||
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
|
||
<link rel="home" href="index.html" title="The Yocto Project Reference Manual">
|
||
<link rel="up" href="index.html" title="The Yocto Project Reference Manual">
|
||
<link rel="prev" href="ref-bitbake-fetchers.html" title="6.7. Fetchers">
|
||
<link rel="next" href="ref-classes-base.html" title="7.1. The base class - base.bbclass">
|
||
</head>
|
||
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="chapter" title="Chapter 7. Classes">
|
||
<div class="titlepage"><div><div><h2 class="title">
|
||
<a name="ref-classes"></a>Chapter 7. Classes</h2></div></div></div>
|
||
<div class="toc">
|
||
<p><b>Table of Contents</b></p>
|
||
<dl>
|
||
<dt><span class="section"><a href="ref-classes-base.html">7.1. The base class - <code class="filename">base.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-autotools.html">7.2. Autotooled Packages - <code class="filename">autotools.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-update-alternatives.html">7.3. Alternatives - <code class="filename">update-alternatives.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-update-rc.d.html">7.4. Initscripts - <code class="filename">update-rc.d.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-binconfig.html">7.5. Binary config scripts - <code class="filename">binconfig.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-debian.html">7.6. Debian renaming - <code class="filename">debian.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-pkgconfig.html">7.7. Pkg-config - <code class="filename">pkgconfig.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-src-distribute.html">7.8. Distribution of sources - <code class="filename">src_distribute_local.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-perl.html">7.9. Perl modules - <code class="filename">cpan.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-distutils.html">7.10. Python extensions - <code class="filename">distutils.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-devshell.html">7.11. Developer Shell - <code class="filename">devshell.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-packagegroup.html">7.12. Package Groups - <code class="filename">packagegroup.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-package.html">7.13. Packaging - <code class="filename">package*.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-kernel.html">7.14. Building kernels - <code class="filename">kernel.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-image.html">7.15. Creating images - <code class="filename">image.bbclass</code> and <code class="filename">rootfs*.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-sanity.html">7.16. Host System sanity checks - <code class="filename">sanity.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-insane.html">7.17. Generated output quality assurance checks - <code class="filename">insane.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-siteinfo.html">7.18. Autotools configuration data cache - <code class="filename">siteinfo.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-useradd.html">7.19. Adding Users - <code class="filename">useradd.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-externalsrc.html">7.20. Using External Source - <code class="filename">externalsrc.bbclass</code></a></span></dt>
|
||
<dt><span class="section"><a href="ref-classes-others.html">7.21. Other Classes</a></span></dt>
|
||
</dl>
|
||
</div>
|
||
<p>
|
||
Class files are used to abstract common functionality and share it amongst multiple
|
||
<code class="filename">.bb</code> files.
|
||
Any metadata usually found in a <code class="filename">.bb</code> file can also be placed in a class
|
||
file.
|
||
Class files are identified by the extension <code class="filename">.bbclass</code> and are usually placed
|
||
in a <code class="filename">classes/</code> directory beneath the
|
||
<code class="filename">meta*/</code> directory found in the
|
||
<a class="link" href="../dev-manual/source-directory.html" target="_self">Source Directory</a>.
|
||
Class files can also be pointed to by BUILDDIR (e.g. <code class="filename">build/</code>)in the same way as
|
||
<code class="filename">.conf</code> files in the <code class="filename">conf</code> directory.
|
||
Class files are searched for in <a class="link" href="ref-variables-glos.html#var-BBPATH" title="BBPATH"><code class="filename">BBPATH</code></a>
|
||
using the same method by which <code class="filename">.conf</code> files are searched.
|
||
</p>
|
||
<p>
|
||
In most cases inheriting the class is enough to enable its features, although
|
||
for some classes you might need to set variables or override some of the
|
||
default behaviour.
|
||
</p>
|
||
</div></body>
|
||
</html>
|