diff options
Diffstat (limited to 'documentation/ref-manual/faq.rst')
-rw-r--r-- | documentation/ref-manual/faq.rst | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/documentation/ref-manual/faq.rst b/documentation/ref-manual/faq.rst index bab284bbfd..7dd37c7a5c 100644 --- a/documentation/ref-manual/faq.rst +++ b/documentation/ref-manual/faq.rst | |||
@@ -45,6 +45,28 @@ See :yocto_wiki:`Products that use the Yocto Project | |||
45 | Wiki. Don't hesitate to contribute to this page if you know other such | 45 | Wiki. Don't hesitate to contribute to this page if you know other such |
46 | products. | 46 | products. |
47 | 47 | ||
48 | Why isn't systemd the default init system for OpenEmbedded-Core/Yocto Project or in Poky? | ||
49 | ----------------------------------------------------------------------------------------- | ||
50 | |||
51 | `systemd <https://systemd.io/>`__ is a desktop Linux init system with a specific | ||
52 | focus that is not entirely aligned with a customisable "embedded" build | ||
53 | system/environment. | ||
54 | |||
55 | It understandably mandates certain layouts and configurations which may | ||
56 | or may not align with what the objectives and direction :term:`OpenEmbedded-Core | ||
57 | (OE-Core)` or Yocto Project want to take. It doesn't support all of our targets. | ||
58 | For example `musl <https://www.musl-libc.org/>`__ support in systemd is | ||
59 | problematic. | ||
60 | |||
61 | If it were our default, we would have to align with all their choices | ||
62 | and this doesn't make sense. It is therefore a configuration option and | ||
63 | available to anyone where the design goals align. But we are clear it | ||
64 | is not the only way to handle init. | ||
65 | |||
66 | Our automated testing includes it through the ``poky-altcfg`` :term:`DISTRO` and | ||
67 | we don't really need it to be the default: it is tested, it works, and people | ||
68 | can choose to use it. | ||
69 | |||
48 | Building environment | 70 | Building environment |
49 | ==================== | 71 | ==================== |
50 | 72 | ||
@@ -259,6 +281,25 @@ Within the :term:`Build Directory`, is the ``tmp`` directory. To remove all the | |||
259 | build output yet preserve any source code or downloaded files from | 281 | build output yet preserve any source code or downloaded files from |
260 | previous builds, simply remove the ``tmp`` directory. | 282 | previous builds, simply remove the ``tmp`` directory. |
261 | 283 | ||
284 | Why isn't there a way to append bbclass files like bbappend for recipes? | ||
285 | ------------------------------------------------------------------------ | ||
286 | |||
287 | The Yocto Project has consciously chosen not to implement such functionality. | ||
288 | Class code is designed to be shared and reused, and exposes some level of | ||
289 | configuration to its users. We want to encourage people to share these changes | ||
290 | so we can build the best classes. | ||
291 | |||
292 | If the ``append`` functionality was available for classes, our evidence and | ||
293 | experience suggest that people would create their custom changes in their | ||
294 | layer instead of sharing and discussing the issues and/or limitations they | ||
295 | encountered. This would lead to bizarre class interactions when new layers are | ||
296 | included. We therefore consciously choose to have a natural pressure to share | ||
297 | class code improvements or fixes. | ||
298 | |||
299 | There are also technical considerations like which recipes a class append would | ||
300 | apply to and how that would fit within the layer model. These are complications | ||
301 | we think we can live without! | ||
302 | |||
262 | Customizing generated images | 303 | Customizing generated images |
263 | ============================ | 304 | ============================ |
264 | 305 | ||