blob: dd14339bc213bb5db733aea858998120149aface [file] [log] [blame]
Andrew Geisslerf0343792020-11-18 10:42:21 -06001.. SPDX-License-Identifier: CC-BY-SA-2.0-UK
Andrew Geisslerc9f78652020-09-18 14:11:35 -05002
3********
4Features
5********
6
7This chapter provides a reference of shipped machine and distro features
8you can include as part of your image, a reference on image features you
Andrew Geisslerfc113ea2023-03-31 09:59:46 -05009can select, and a reference on :ref:`ref-features-backfill`.
Andrew Geisslerc9f78652020-09-18 14:11:35 -050010
11Features provide a mechanism for working out which packages should be
12included in the generated images. Distributions can select which
Andrew Geissler09036742021-06-25 14:25:14 -050013features they want to support through the :term:`DISTRO_FEATURES` variable,
Andrew Geisslerc9f78652020-09-18 14:11:35 -050014which is set or appended to in a distribution's configuration file such
15as ``poky.conf``, ``poky-tiny.conf``, ``poky-lsb.conf`` and so forth.
Andrew Geissler09036742021-06-25 14:25:14 -050016Machine features are set in the :term:`MACHINE_FEATURES` variable, which is
Andrew Geisslerc9f78652020-09-18 14:11:35 -050017set in the machine configuration file and specifies the hardware
18features for a given machine.
19
20These two variables combine to work out which kernel modules, utilities,
21and other packages to include. A given distribution can support a
22selected subset of features so some machine features might not be
23included if the distribution itself does not support them.
24
25One method you can use to determine which recipes are checking to see if
26a particular feature is contained or not is to ``grep`` through the
27:term:`Metadata` for the feature. Here is an example that
28discovers the recipes whose build is potentially changed based on a
Andrew Geisslerc926e172021-05-07 16:11:35 -050029given feature::
Andrew Geisslerc9f78652020-09-18 14:11:35 -050030
31 $ cd poky
32 $ git grep 'contains.*MACHINE_FEATURES.*feature'
33
34.. _ref-features-machine:
35
36Machine Features
37================
38
39The items below are features you can use with
40:term:`MACHINE_FEATURES`. Features do not have a
41one-to-one correspondence to packages, and they can go beyond simply
42controlling the installation of a package or packages. Sometimes a
43feature can influence how certain recipes are built. For example, a
44feature might determine whether a particular configure option is
45specified within the :ref:`ref-tasks-configure` task
46for a particular recipe.
47
48This feature list only represents features as shipped with the Yocto
49Project metadata:
50
51- *acpi:* Hardware has ACPI (x86/x86_64 only)
52
53- *alsa:* Hardware has ALSA audio drivers
54
Andrew Geisslerc9f78652020-09-18 14:11:35 -050055- *bluetooth:* Hardware has integrated BT
56
57- *efi:* Support for booting through EFI
58
59- *ext2:* Hardware HDD or Microdrive
60
61- *keyboard:* Hardware has a keyboard
62
Patrick Williams92b42cb2022-09-03 06:53:57 -050063- *numa:* Hardware has non-uniform memory access
64
Andrew Geisslerc9f78652020-09-18 14:11:35 -050065- *pcbios:* Support for booting through BIOS
66
67- *pci:* Hardware has a PCI bus
68
69- *pcmcia:* Hardware has PCMCIA or CompactFlash sockets
70
71- *phone:* Mobile phone (voice) support
72
Patrick Williams975a06f2022-10-21 14:42:47 -050073- *qemu-usermode:* QEMU can support user-mode emulation for this machine
74
Andrew Geisslerc9f78652020-09-18 14:11:35 -050075- *qvga:* Machine has a QVGA (320x240) display
76
77- *rtc:* Machine has a Real-Time Clock
78
79- *screen:* Hardware has a screen
80
81- *serial:* Hardware has serial support (usually RS232)
82
83- *touchscreen:* Hardware has a touchscreen
84
85- *usbgadget:* Hardware is USB gadget device capable
86
87- *usbhost:* Hardware is USB Host capable
88
89- *vfat:* FAT file system support
90
91- *wifi:* Hardware has integrated WiFi
92
93.. _ref-features-distro:
94
95Distro Features
96===============
97
98The items below are features you can use with
99:term:`DISTRO_FEATURES` to enable features across
100your distribution. Features do not have a one-to-one correspondence to
101packages, and they can go beyond simply controlling the installation of
102a package or packages. In most cases, the presence or absence of a
103feature translates to the appropriate option supplied to the configure
104script during the :ref:`ref-tasks-configure` task for
Andrew Geissler615f2f12022-07-15 14:00:58 -0500105the recipes that optionally support the feature. Appropriate options
106must be supplied, and enabling/disabling :term:`PACKAGECONFIG` for the
107concerned packages is one way of supplying such options.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500108
109Some distro features are also machine features. These select features
110make sense to be controlled both at the machine and distribution
111configuration level. See the
112:term:`COMBINED_FEATURES` variable for more
113information.
114
Patrick Williams975a06f2022-10-21 14:42:47 -0500115.. note::
116
117 :term:`DISTRO_FEATURES` is normally independent of kernel configuration,
118 so if a feature specified in :term:`DISTRO_FEATURES` also relies on
119 support in the kernel, you will also need to ensure that support is
120 enabled in the kernel configuration.
121
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500122This list only represents features as shipped with the Yocto Project
Andrew Geissler87f5cff2022-09-30 13:13:31 -0500123metadata, as extra layers can define their own:
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500124
Andrew Geissler87f5cff2022-09-30 13:13:31 -0500125- *3g:* Include support for cellular data.
126
Patrick Williams7784c422022-11-17 07:29:11 -0600127- *acl:* Include :wikipedia:`Access Control List <Access-control_list>` support.
Andrew Geissler87f5cff2022-09-30 13:13:31 -0500128
Patrick Williams7784c422022-11-17 07:29:11 -0600129- *alsa:* Include :wikipedia:`Advanced Linux Sound Architecture <Advanced_Linux_Sound_Architecture>`
Andrew Geissler87f5cff2022-09-30 13:13:31 -0500130 support (OSS compatibility kernel modules installed if available).
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500131
132- *api-documentation:* Enables generation of API documentation during
133 recipe builds. The resulting documentation is added to SDK tarballs
134 when the ``bitbake -c populate_sdk`` command is used. See the
Andrew Geissler09209ee2020-12-13 08:44:15 -0600135 ":ref:`sdk-manual/appendix-customizing-standard:adding api documentation to the standard sdk`"
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500136 section in the Yocto Project Application Development and the
137 Extensible Software Development Kit (eSDK) manual.
138
139- *bluetooth:* Include bluetooth support (integrated BT only).
140
141- *cramfs:* Include CramFS support.
142
Andrew Geissler87f5cff2022-09-30 13:13:31 -0500143- *debuginfod:* Include support for getting ELF debugging information through
Andrew Geissler517393d2023-01-13 08:55:19 -0600144 a :ref:`debuginfod <dev-manual/debugging:using the debuginfod server method>`
Andrew Geissler87f5cff2022-09-30 13:13:31 -0500145 server.
146
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500147- *directfb:* Include DirectFB support.
148
149- *ext2:* Include tools for supporting for devices with internal
150 HDD/Microdrive for storing files (instead of Flash only devices).
151
Patrick Williams975a06f2022-10-21 14:42:47 -0500152- *gobject-introspection-data:* Include data to support
153 `GObject Introspection <https://gi.readthedocs.io/en/latest/>`__.
154
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500155- *ipsec:* Include IPSec support.
156
Andrew Geissler87f5cff2022-09-30 13:13:31 -0500157- *ipv4:* Include IPv4 support.
158
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500159- *ipv6:* Include IPv6 support.
160
161- *keyboard:* Include keyboard support (e.g. keymaps will be loaded
162 during boot).
163
Andrew Geissler87f5cff2022-09-30 13:13:31 -0500164- *multiarch:* Enable building applications with multiple architecture
165 support.
166
Patrick Williams7784c422022-11-17 07:29:11 -0600167- *ld-is-gold:* Use the :wikipedia:`gold <Gold_(linker)>`
Patrick Williams975a06f2022-10-21 14:42:47 -0500168 linker instead of the standard GCC linker (bfd).
169
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500170- *ldconfig:* Include support for ldconfig and ``ld.so.conf`` on the
171 target.
172
Patrick Williams975a06f2022-10-21 14:42:47 -0500173- *lto:* Enable `Link-Time Optimisation <https://gcc.gnu.org/wiki/LinkTimeOptimization>`__.
174
Andrew Geissler87f5cff2022-09-30 13:13:31 -0500175- *nfc:* Include support for
176 `Near Field Communication <https://en.wikipedia.org/wiki/Near-field_communication>`__.
177
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500178- *nfs:* Include NFS client support (for mounting NFS exports on
179 device).
180
Patrick Williams975a06f2022-10-21 14:42:47 -0500181- *nls:* Include National Language Support (NLS).
182
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500183- *opengl:* Include the Open Graphics Library, which is a
184 cross-language, multi-platform application programming interface used
185 for rendering two and three-dimensional graphics.
186
Patrick Williams975a06f2022-10-21 14:42:47 -0500187- *overlayfs:* Include `OverlayFS <https://docs.kernel.org/filesystems/overlayfs.html>`__
188 support.
189
Patrick Williams7784c422022-11-17 07:29:11 -0600190- *pam:* Include :wikipedia:`Pluggable Authentication Module (PAM) <Pluggable_authentication_module>`
Patrick Williams975a06f2022-10-21 14:42:47 -0500191 support.
192
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500193- *pci:* Include PCI bus support.
194
195- *pcmcia:* Include PCMCIA/CompactFlash support.
196
Patrick Williams7784c422022-11-17 07:29:11 -0600197- *polkit:* Include :wikipedia:`Polkit <Polkit>` support.
Patrick Williams975a06f2022-10-21 14:42:47 -0500198
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500199- *ppp:* Include PPP dialup support.
200
201- *ptest:* Enables building the package tests where supported by
202 individual recipes. For more information on package tests, see the
Andrew Geissler517393d2023-01-13 08:55:19 -0600203 ":ref:`dev-manual/packages:testing packages with ptest`" section
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500204 in the Yocto Project Development Tasks Manual.
205
Patrick Williams975a06f2022-10-21 14:42:47 -0500206- *pulseaudio:* Include support for
207 `PulseAudio <https://www.freedesktop.org/wiki/Software/PulseAudio/>`__.
208
209- *selinux:* Include support for
Patrick Williams7784c422022-11-17 07:29:11 -0600210 :wikipedia:`Security-Enhanced Linux (SELinux) <Security-Enhanced_Linux>`
Patrick Williams975a06f2022-10-21 14:42:47 -0500211 (requires `meta-selinux <https://layers.openembedded.org/layerindex/layer/meta-selinux/>`__).
212
Andrew Geissler87f5cff2022-09-30 13:13:31 -0500213- *seccomp:* Enables building applications with
Patrick Williams7784c422022-11-17 07:29:11 -0600214 :wikipedia:`seccomp <Seccomp>` support, to
Andrew Geissler87f5cff2022-09-30 13:13:31 -0500215 allow them to strictly restrict the system calls that they are allowed
216 to invoke.
217
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500218- *smbfs:* Include SMB networks client support (for mounting
219 Samba/Microsoft Windows shares on device).
220
221- *systemd:* Include support for this ``init`` manager, which is a full
222 replacement of for ``init`` with parallel starting of services,
223 reduced shell overhead, and other features. This ``init`` manager is
224 used by many distributions.
225
Patrick Williamsac13d5f2023-11-24 18:59:46 -0600226- *systemd-resolved:* Include support and use ``systemd-resolved`` as the
227 main DNS name resolver in ``glibc`` Name Service Switch. This is a DNS
228 resolver daemon from ``systemd``.
229
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500230- *usbgadget:* Include USB Gadget Device support (for USB
231 networking/serial/storage).
232
233- *usbhost:* Include USB Host support (allows to connect external
234 keyboard, mouse, storage, network etc).
235
236- *usrmerge:* Merges the ``/bin``, ``/sbin``, ``/lib``, and ``/lib64``
237 directories into their respective counterparts in the ``/usr``
238 directory to provide better package and application compatibility.
239
Patrick Williams7784c422022-11-17 07:29:11 -0600240- *vfat:* Include :wikipedia:`FAT filesystem <File_Allocation_Table>`
Andrew Geissler87f5cff2022-09-30 13:13:31 -0500241 support.
242
Patrick Williams7784c422022-11-17 07:29:11 -0600243- *vulkan:* Include support for the :wikipedia:`Vulkan API <Vulkan>`.
Andrew Geissler87f5cff2022-09-30 13:13:31 -0500244
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500245- *wayland:* Include the Wayland display server protocol and the
246 library that supports it.
247
248- *wifi:* Include WiFi support (integrated only).
249
250- *x11:* Include the X server and libraries.
251
Andrew Geissler87f5cff2022-09-30 13:13:31 -0500252- *xattr:* Include support for
Patrick Williams7784c422022-11-17 07:29:11 -0600253 :wikipedia:`extended file attributes <Extended_file_attributes>`.
Andrew Geissler87f5cff2022-09-30 13:13:31 -0500254
255- *zeroconf:* Include support for
256 `zero configuration networking <https://en.wikipedia.org/wiki/Zero-configuration_networking>`__.
257
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500258.. _ref-features-image:
259
260Image Features
261==============
262
263The contents of images generated by the OpenEmbedded build system can be
264controlled by the :term:`IMAGE_FEATURES` and
265:term:`EXTRA_IMAGE_FEATURES` variables that
266you typically configure in your image recipes. Through these variables,
267you can add several different predefined packages such as development
268utilities or packages with debug information needed to investigate
269application problems or profile applications.
270
William A. Kennington IIIac69b482021-06-02 12:28:27 -0700271Here are the image features available for all images:
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500272
Andrew Geissler615f2f12022-07-15 14:00:58 -0500273- *allow-empty-password:* Allows Dropbear and OpenSSH to accept
274 logins from accounts having an empty password string.
275
276- *allow-root-login:* Allows Dropbear and OpenSSH to accept root logins.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500277
278- *dbg-pkgs:* Installs debug symbol packages for all packages installed
279 in a given image.
280
281- *debug-tweaks:* Makes an image suitable for development (e.g. allows
Andrew Geissler615f2f12022-07-15 14:00:58 -0500282 root logins, logins without passwords ---including root ones, and enables
283 post-installation logging). See the ``allow-empty-password``,
284 ``allow-root-login``, ``empty-root-password``, and ``post-install-logging``
285 features in this list for additional information.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500286
287- *dev-pkgs:* Installs development packages (headers and extra library
288 links) for all packages installed in a given image.
289
290- *doc-pkgs:* Installs documentation packages for all packages
291 installed in a given image.
292
Andrew Geissler615f2f12022-07-15 14:00:58 -0500293- *empty-root-password:* This feature or ``debug-tweaks`` is required if
294 you want to allow root login with an empty password. If these features
295 are not present in :term:`IMAGE_FEATURES`, a non-empty password is
296 forced in ``/etc/passwd`` and ``/etc/shadow`` if such files exist.
297
298 .. note::
Andrew Geissler6aa7eec2023-03-03 12:41:14 -0600299 ``empty-root-password`` doesn't set an empty root password by itself.
Andrew Geissler615f2f12022-07-15 14:00:58 -0500300 You get an initial empty root password thanks to the
301 :oe_git:`base-passwd </openembedded-core/tree/meta/recipes-core/base-passwd/>`
302 and :oe_git:`shadow </openembedded-core/tree/meta/recipes-extended/shadow/>`
Andrew Geissler6aa7eec2023-03-03 12:41:14 -0600303 recipes, and the presence of ``empty-root-password`` or ``debug-tweaks``
Andrew Geissler615f2f12022-07-15 14:00:58 -0500304 just disables the mechanism which forces an non-empty password for the
305 root user.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500306
Patrick Williams975a06f2022-10-21 14:42:47 -0500307- *lic-pkgs:* Installs license packages for all packages installed in a
308 given image.
309
Andrew Geissler595f6302022-01-24 19:11:47 +0000310- *overlayfs-etc:* Configures the ``/etc`` directory to be in ``overlayfs``.
311 This allows to store device specific information elsewhere, especially
312 if the root filesystem is configured to be read-only.
313
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500314- *package-management:* Installs package management tools and preserves
315 the package manager database.
316
317- *post-install-logging:* Enables logging postinstall script runs to
318 the ``/var/log/postinstall.log`` file on first boot of the image on
319 the target system.
320
321 .. note::
322
Andrew Geissler4c19ea12020-10-27 13:52:24 -0500323 To make the ``/var/log`` directory on the target persistent, use the
324 :term:`VOLATILE_LOG_DIR` variable by setting it to "no".
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500325
326- *ptest-pkgs:* Installs ptest packages for all ptest-enabled recipes.
327
328- *read-only-rootfs:* Creates an image whose root filesystem is
329 read-only. See the
Andrew Geissler517393d2023-01-13 08:55:19 -0600330 ":ref:`dev-manual/read-only-rootfs:creating a read-only root filesystem`"
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500331 section in the Yocto Project Development Tasks Manual for more
332 information.
333
Patrick Williams975a06f2022-10-21 14:42:47 -0500334- *read-only-rootfs-delayed-postinsts:* when specified in conjunction
335 with ``read-only-rootfs``, specifies that post-install scripts are
336 still permitted (this assumes that the root filesystem will be made
337 writeable for the first boot; this feature does not do anything to
338 ensure that - it just disables the check for post-install scripts.)
339
340- *serial-autologin-root:* when specified in conjunction with
341 ``empty-root-password`` will automatically login as root on the
342 serial console. This of course opens up a security hole if the
343 serial console is potentially accessible to an attacker, so use
344 with caution.
345
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500346- *splash:* Enables showing a splash screen during boot. By default,
347 this screen is provided by ``psplash``, which does allow
348 customization. If you prefer to use an alternative splash screen
Patrick Williamsb542dec2023-06-09 01:26:37 -0500349 package, you can do so by setting the :term:`SPLASH` variable to a
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500350 different package name (or names) within the image recipe or at the
351 distro configuration level.
352
Patrick Williams975a06f2022-10-21 14:42:47 -0500353- *stateless-rootfs:*: specifies that the image should be created as
354 stateless - when using ``systemd``, ``systemctl-native`` will not
355 be run on the image, leaving the image for population at runtime by
356 systemd.
357
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500358- *staticdev-pkgs:* Installs static development packages, which are
359 static libraries (i.e. ``*.a`` files), for all packages installed in
360 a given image.
361
362Some image features are available only when you inherit the
Andrew Geissler517393d2023-01-13 08:55:19 -0600363:ref:`ref-classes-core-image` class. The current list of
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500364these valid features is as follows:
365
366- *hwcodecs:* Installs hardware acceleration codecs.
367
368- *nfs-server:* Installs an NFS server.
369
370- *perf:* Installs profiling tools such as ``perf``, ``systemtap``, and
371 ``LTTng``. For general information on user-space tools, see the
Andrew Geissler09209ee2020-12-13 08:44:15 -0600372 :doc:`/sdk-manual/index` manual.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500373
374- *ssh-server-dropbear:* Installs the Dropbear minimal SSH server.
375
Patrick Williams975a06f2022-10-21 14:42:47 -0500376 .. note::
377
378 As of the 4.1 release, the ``ssh-server-dropbear`` feature also
379 recommends the ``openssh-sftp-server`` package, which by default
380 will be pulled into the image. This is because recent versions of
381 the OpenSSH ``scp`` client now use the SFTP protocol, and thus
382 require an SFTP server to be present to connect to. However, if
383 you wish to use the Dropbear ssh server `without` the SFTP server
384 installed, you can either remove ``ssh-server-dropbear`` from
385 ``IMAGE_FEATURES`` and add ``dropbear`` to :term:`IMAGE_INSTALL`
386 instead, or alternatively still use the feature but set
387 :term:`BAD_RECOMMENDATIONS` as follows::
388
389 BAD_RECOMMENDATIONS += "openssh-sftp-server"
390
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500391- *ssh-server-openssh:* Installs the OpenSSH SSH server, which is more
392 full-featured than Dropbear. Note that if both the OpenSSH SSH server
393 and the Dropbear minimal SSH server are present in
Andrew Geissler09036742021-06-25 14:25:14 -0500394 :term:`IMAGE_FEATURES`, then OpenSSH will take precedence and Dropbear
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500395 will not be installed.
396
397- *tools-debug:* Installs debugging tools such as ``strace`` and
398 ``gdb``. For information on GDB, see the
Andrew Geissler517393d2023-01-13 08:55:19 -0600399 ":ref:`dev-manual/debugging:debugging with the gnu project debugger (gdb) remotely`" section
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500400 in the Yocto Project Development Tasks Manual. For information on
Andrew Geissler09209ee2020-12-13 08:44:15 -0600401 tracing and profiling, see the :doc:`/profile-manual/index`.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500402
403- *tools-sdk:* Installs a full SDK that runs on the device.
404
405- *tools-testapps:* Installs device testing tools (e.g. touchscreen
406 debugging).
407
Patrick Williams975a06f2022-10-21 14:42:47 -0500408- *weston:* Installs Weston (reference Wayland environment).
409
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500410- *x11:* Installs the X server.
411
412- *x11-base:* Installs the X server with a minimal environment.
413
414- *x11-sato:* Installs the OpenedHand Sato environment.
415
416.. _ref-features-backfill:
417
418Feature Backfilling
419===================
420
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500421Sometimes it is necessary in the OpenEmbedded build system to
422add new functionality to :term:`MACHINE_FEATURES` or
423:term:`DISTRO_FEATURES`, but at the same time, allow existing
424distributions or machine definitions to opt out of such new
425features, to retain the same overall level of functionality.
426
427To make this possible, the OpenEmbedded build system has a mechanism to
428automatically "backfill" features into existing distro or machine
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500429configurations. You can see the list of features for which this is done
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500430by checking the :term:`DISTRO_FEATURES_BACKFILL` and
431:term:`MACHINE_FEATURES_BACKFILL` variables in the
432``meta/conf/bitbake.conf`` file.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500433
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500434These two variables are paired with the
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500435:term:`DISTRO_FEATURES_BACKFILL_CONSIDERED`
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500436and :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED` variables
437which allow distro or machine configuration maintainers to `consider` any
438added feature, and decide when they wish to keep or exclude such feature,
439thus preventing the backfilling from happening.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500440
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500441Here are two examples to illustrate feature backfilling:
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500442
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500443- *The "pulseaudio" distro feature option*: Previously, PulseAudio support was
444 enabled within the Qt and GStreamer frameworks. Because of this, the feature
445 is now backfilled and thus enabled for all distros through the
446 :term:`DISTRO_FEATURES_BACKFILL` variable in the ``meta/conf/bitbake.conf``
447 file. However, if your distro needs to disable the feature, you can do so
448 without affecting other existing distro configurations that need PulseAudio
449 support. You do this by adding "pulseaudio" to
450 :term:`DISTRO_FEATURES_BACKFILL_CONSIDERED` in your distro's ``.conf``
451 file. So, adding the feature to this variable when it also exists in the
452 :term:`DISTRO_FEATURES_BACKFILL` variable prevents the build system from
453 adding the feature to your configuration's :term:`DISTRO_FEATURES`,
454 effectively disabling the feature for that particular distro.
Andrew Geisslerc9f78652020-09-18 14:11:35 -0500455
456- *The "rtc" machine feature option*: Previously, real time clock (RTC)
457 support was enabled for all target devices. Because of this, the
458 feature is backfilled and thus enabled for all machines through the
Andrew Geisslerfc113ea2023-03-31 09:59:46 -0500459 :term:`MACHINE_FEATURES_BACKFILL` variable in the ``meta/conf/bitbake.conf``
460 file. However, if your target device does not have this capability, you can
461 disable RTC support for your device without affecting other machines
462 that need RTC support. You do this by adding the "rtc" feature to the
463 :term:`MACHINE_FEATURES_BACKFILL_CONSIDERED` list in your machine's ``.conf``
464 file. So, adding the feature to this variable when it also exists in the
465 :term:`MACHINE_FEATURES_BACKFILL` variable prevents the build system from
466 adding the feature to your configuration's :term:`MACHINE_FEATURES`,
467 effectively disabling RTC support for that particular machine.