diff options
| author | Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com> | 2022-02-02 08:35:24 +0100 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-02-07 10:08:59 +0000 |
| commit | a9a70bde351aad18609ed66ab55061d6fcacf278 (patch) | |
| tree | 67bf760dbcc3321d8b98efdd6585f813b57eec48 | |
| parent | 272212c2cb29ddd4c2591b8a7d3adc23c16cf207 (diff) | |
| download | poky-a9a70bde351aad18609ed66ab55061d6fcacf278.tar.gz | |
systemd: Add link-udev-shared PACKAGECONFIG
Add a PACKAGECONFIG to link systemd-udev and its helpers to
libsystemd-shared.so. If enabled the udev package depends on the systemd
package.
(From OE-Core rev: 2e854402a899c26e25bd0edc198b40fe45fc6c7d)
Signed-off-by: Stefan Herbrechtsmeier <stefan.herbrechtsmeier@weidmueller.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-core/systemd/systemd_250.3.bb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/meta/recipes-core/systemd/systemd_250.3.bb b/meta/recipes-core/systemd/systemd_250.3.bb index 57987218a1..96a86272d3 100644 --- a/meta/recipes-core/systemd/systemd_250.3.bb +++ b/meta/recipes-core/systemd/systemd_250.3.bb | |||
| @@ -159,6 +159,9 @@ PACKAGECONFIG[kmod] = "-Dkmod=true,-Dkmod=false,kmod" | |||
| 159 | PACKAGECONFIG[ldconfig] = "-Dldconfig=true,-Dldconfig=false,,ldconfig" | 159 | PACKAGECONFIG[ldconfig] = "-Dldconfig=true,-Dldconfig=false,,ldconfig" |
| 160 | PACKAGECONFIG[libidn] = "-Dlibidn=true,-Dlibidn=false,libidn,,libidn" | 160 | PACKAGECONFIG[libidn] = "-Dlibidn=true,-Dlibidn=false,libidn,,libidn" |
| 161 | PACKAGECONFIG[libidn2] = "-Dlibidn2=true,-Dlibidn2=false,libidn2,,libidn2" | 161 | PACKAGECONFIG[libidn2] = "-Dlibidn2=true,-Dlibidn2=false,libidn2,,libidn2" |
| 162 | # Link udev shared with systemd helper library. | ||
| 163 | # If enabled the udev package depends on the systemd package (which has the needed shared library). | ||
| 164 | PACKAGECONFIG[link-udev-shared] = "-Dlink-udev-shared=true,-Dlink-udev-shared=false" | ||
| 162 | PACKAGECONFIG[localed] = "-Dlocaled=true,-Dlocaled=false" | 165 | PACKAGECONFIG[localed] = "-Dlocaled=true,-Dlocaled=false" |
| 163 | PACKAGECONFIG[logind] = "-Dlogind=true,-Dlogind=false" | 166 | PACKAGECONFIG[logind] = "-Dlogind=true,-Dlogind=false" |
| 164 | PACKAGECONFIG[lz4] = "-Dlz4=true,-Dlz4=false,lz4" | 167 | PACKAGECONFIG[lz4] = "-Dlz4=true,-Dlz4=false,lz4" |
| @@ -218,11 +221,6 @@ rootprefix ?= "${root_prefix}" | |||
| 218 | rootlibdir ?= "${base_libdir}" | 221 | rootlibdir ?= "${base_libdir}" |
| 219 | rootlibexecdir = "${rootprefix}/lib" | 222 | rootlibexecdir = "${rootprefix}/lib" |
| 220 | 223 | ||
| 221 | # This links udev statically with systemd helper library. | ||
| 222 | # Otherwise udev package would depend on systemd package (which has the needed shared library), | ||
| 223 | # and always pull it into images. | ||
| 224 | EXTRA_OEMESON += "-Dlink-udev-shared=false" | ||
| 225 | |||
| 226 | EXTRA_OEMESON += "-Dnobody-user=nobody \ | 224 | EXTRA_OEMESON += "-Dnobody-user=nobody \ |
| 227 | -Dnobody-group=nobody \ | 225 | -Dnobody-group=nobody \ |
| 228 | -Drootlibdir=${rootlibdir} \ | 226 | -Drootlibdir=${rootlibdir} \ |
