diff options
Diffstat (limited to 'documentation/dev-manual/layers.rst')
-rw-r--r-- | documentation/dev-manual/layers.rst | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/documentation/dev-manual/layers.rst b/documentation/dev-manual/layers.rst index c649e2bd60..67482bf544 100644 --- a/documentation/dev-manual/layers.rst +++ b/documentation/dev-manual/layers.rst | |||
@@ -80,7 +80,7 @@ Follow these general steps to create your layer without using tools: | |||
80 | BBFILE_PATTERN_yoctobsp = "^${LAYERDIR}/" | 80 | BBFILE_PATTERN_yoctobsp = "^${LAYERDIR}/" |
81 | BBFILE_PRIORITY_yoctobsp = "5" | 81 | BBFILE_PRIORITY_yoctobsp = "5" |
82 | LAYERVERSION_yoctobsp = "4" | 82 | LAYERVERSION_yoctobsp = "4" |
83 | LAYERSERIES_COMPAT_yoctobsp = "dunfell" | 83 | LAYERSERIES_COMPAT_yoctobsp = "walnascar" |
84 | 84 | ||
85 | Here is an explanation of the layer configuration file: | 85 | Here is an explanation of the layer configuration file: |
86 | 86 | ||
@@ -306,7 +306,7 @@ The Yocto Project Compatibility Program consists of a layer application | |||
306 | process that requests permission to use the Yocto Project Compatibility | 306 | process that requests permission to use the Yocto Project Compatibility |
307 | Logo for your layer and application. The process consists of two parts: | 307 | Logo for your layer and application. The process consists of two parts: |
308 | 308 | ||
309 | #. Successfully passing a script (``yocto-check-layer``) that when run | 309 | #. Successfully passing a script (``yocto-check-layer``) that, when run |
310 | against your layer, tests it against constraints based on experiences | 310 | against your layer, tests it against constraints based on experiences |
311 | of how layers have worked in the real world and where pitfalls have | 311 | of how layers have worked in the real world and where pitfalls have |
312 | been found. Getting a "PASS" result from the script is required for | 312 | been found. Getting a "PASS" result from the script is required for |
@@ -478,7 +478,7 @@ name. To handle these errors, the best practice is to rename the ``.bbappend`` | |||
478 | to match the original recipe version. This also gives you the opportunity to see | 478 | to match the original recipe version. This also gives you the opportunity to see |
479 | if the ``.bbappend`` is still relevant for the new version of the recipe. | 479 | if the ``.bbappend`` is still relevant for the new version of the recipe. |
480 | 480 | ||
481 | Another method it to use the character ``%`` in the ``.bbappend`` filename. For | 481 | Another method is to use the character ``%`` in the ``.bbappend`` filename. For |
482 | example, to append information to every ``6.*`` minor versions of the recipe | 482 | example, to append information to every ``6.*`` minor versions of the recipe |
483 | ``someapp``, the ``someapp_6.%.bbappend`` file can be created. This way, an | 483 | ``someapp``, the ``someapp_6.%.bbappend`` file can be created. This way, an |
484 | error will only be triggered if the ``someapp`` recipe has a major version | 484 | error will only be triggered if the ``someapp`` recipe has a major version |
@@ -504,10 +504,9 @@ the "meta" layer at ``meta/recipes-bsp/formfactor``:: | |||
504 | SECTION = "base" | 504 | SECTION = "base" |
505 | LICENSE = "MIT" | 505 | LICENSE = "MIT" |
506 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 506 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
507 | PR = "r45" | ||
508 | 507 | ||
509 | SRC_URI = "file://config file://machconfig" | 508 | SRC_URI = "file://config file://machconfig" |
510 | S = "${WORKDIR}" | 509 | S = "${UNPACKDIR}" |
511 | 510 | ||
512 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 511 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
513 | INHIBIT_DEFAULT_DEPS = "1" | 512 | INHIBIT_DEFAULT_DEPS = "1" |
@@ -582,11 +581,10 @@ Directory`. Here is the main ``xserver-xf86-config`` recipe, which is named | |||
582 | SECTION = "x11/base" | 581 | SECTION = "x11/base" |
583 | LICENSE = "MIT" | 582 | LICENSE = "MIT" |
584 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" | 583 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" |
585 | PR = "r33" | ||
586 | 584 | ||
587 | SRC_URI = "file://xorg.conf" | 585 | SRC_URI = "file://xorg.conf" |
588 | 586 | ||
589 | S = "${WORKDIR}" | 587 | S = "${UNPACKDIR}" |
590 | 588 | ||
591 | CONFFILES:${PN} = "${sysconfdir}/X11/xorg.conf" | 589 | CONFFILES:${PN} = "${sysconfdir}/X11/xorg.conf" |
592 | 590 | ||
@@ -594,9 +592,9 @@ Directory`. Here is the main ``xserver-xf86-config`` recipe, which is named | |||
594 | ALLOW_EMPTY:${PN} = "1" | 592 | ALLOW_EMPTY:${PN} = "1" |
595 | 593 | ||
596 | do_install () { | 594 | do_install () { |
597 | if test -s ${WORKDIR}/xorg.conf; then | 595 | if test -s ${UNPACKDIR}/xorg.conf; then |
598 | install -d ${D}/${sysconfdir}/X11 | 596 | install -d ${D}/${sysconfdir}/X11 |
599 | install -m 0644 ${WORKDIR}/xorg.conf ${D}/${sysconfdir}/X11/ | 597 | install -m 0644 ${UNPACKDIR}/xorg.conf ${D}/${sysconfdir}/X11/ |
600 | fi | 598 | fi |
601 | } | 599 | } |
602 | 600 | ||
@@ -614,8 +612,8 @@ file is in the layer at ``recipes-graphics/xorg-xserver``:: | |||
614 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" | 612 | PITFT="${@bb.utils.contains("MACHINE_FEATURES", "pitft", "1", "0", d)}" |
615 | if [ "${PITFT}" = "1" ]; then | 613 | if [ "${PITFT}" = "1" ]; then |
616 | install -d ${D}/${sysconfdir}/X11/xorg.conf.d/ | 614 | install -d ${D}/${sysconfdir}/X11/xorg.conf.d/ |
617 | install -m 0644 ${WORKDIR}/xorg.conf.d/98-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/ | 615 | install -m 0644 ${UNPACKDIR}/xorg.conf.d/98-pitft.conf ${D}/${sysconfdir}/X11/xorg.conf.d/ |
618 | install -m 0644 ${WORKDIR}/xorg.conf.d/99-calibration.conf ${D}/${sysconfdir}/X11/xorg.conf.d/ | 616 | install -m 0644 ${UNPACKDIR}/xorg.conf.d/99-calibration.conf ${D}/${sysconfdir}/X11/xorg.conf.d/ |
619 | fi | 617 | fi |
620 | } | 618 | } |
621 | 619 | ||