summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2020-12-18 09:42:56 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-12-20 00:03:05 +0000
commit78164a53c86db825a9514069b3811d9814fb65f5 (patch)
treea73382ffb8711d4d1f4e0974931dfb03d76b13a3 /meta/recipes-core
parent3988f6824a476fa5068d567834035849583a881b (diff)
downloadpoky-78164a53c86db825a9514069b3811d9814fb65f5.tar.gz
systemd: add RRECOMMENDS for weak dependencies, if enabled
Some libraries are now dlopen'ed and skipped at runtime if not available. Add them to the RRECOMMENDS list, to allow users to exclude them for smaller images even if generally enabled at build time. (From OE-Core rev: 0131a794be1a97f9aef3224c7c66fcf27576ce84) Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/systemd/systemd_247.2.bb11
1 files changed, 7 insertions, 4 deletions
diff --git a/meta/recipes-core/systemd/systemd_247.2.bb b/meta/recipes-core/systemd/systemd_247.2.bb
index 7055cc9fca..15f8cb3d71 100644
--- a/meta/recipes-core/systemd/systemd_247.2.bb
+++ b/meta/recipes-core/systemd/systemd_247.2.bb
@@ -110,6 +110,9 @@ PACKAGECONFIG_remove_libc-musl = " \
110 110
111CFLAGS_append_libc-musl = " -D__UAPI_DEF_ETHHDR=0 " 111CFLAGS_append_libc-musl = " -D__UAPI_DEF_ETHHDR=0 "
112 112
113# Some of the dependencies are weak-style recommends - if not available at runtime,
114# systemd won't fail but the library-related feature will be skipped with a warning.
115
113# Use the upstream systemd serial-getty@.service and rely on 116# Use the upstream systemd serial-getty@.service and rely on
114# systemd-getty-generator instead of using the OE-core specific 117# systemd-getty-generator instead of using the OE-core specific
115# systemd-serialgetty.bb - not enabled by default. 118# systemd-serialgetty.bb - not enabled by default.
@@ -122,7 +125,7 @@ PACKAGECONFIG[binfmt] = "-Dbinfmt=true,-Dbinfmt=false"
122PACKAGECONFIG[bzip2] = "-Dbzip2=true,-Dbzip2=false,bzip2" 125PACKAGECONFIG[bzip2] = "-Dbzip2=true,-Dbzip2=false,bzip2"
123PACKAGECONFIG[cgroupv2] = "-Ddefault-hierarchy=unified,-Ddefault-hierarchy=hybrid" 126PACKAGECONFIG[cgroupv2] = "-Ddefault-hierarchy=unified,-Ddefault-hierarchy=hybrid"
124PACKAGECONFIG[coredump] = "-Dcoredump=true,-Dcoredump=false" 127PACKAGECONFIG[coredump] = "-Dcoredump=true,-Dcoredump=false"
125PACKAGECONFIG[cryptsetup] = "-Dlibcryptsetup=true,-Dlibcryptsetup=false,cryptsetup" 128PACKAGECONFIG[cryptsetup] = "-Dlibcryptsetup=true,-Dlibcryptsetup=false,cryptsetup,,cryptsetup"
126PACKAGECONFIG[dbus] = "-Ddbus=true,-Ddbus=false,dbus" 129PACKAGECONFIG[dbus] = "-Ddbus=true,-Ddbus=false,dbus"
127PACKAGECONFIG[efi] = "-Defi=true,-Defi=false" 130PACKAGECONFIG[efi] = "-Defi=true,-Defi=false"
128PACKAGECONFIG[gnu-efi] = "-Dgnu-efi=true -Defi-libdir=${STAGING_LIBDIR} -Defi-includedir=${STAGING_INCDIR}/efi,-Dgnu-efi=false,gnu-efi" 131PACKAGECONFIG[gnu-efi] = "-Dgnu-efi=true -Defi-libdir=${STAGING_LIBDIR} -Defi-includedir=${STAGING_INCDIR}/efi,-Dgnu-efi=false,gnu-efi"
@@ -143,8 +146,8 @@ PACKAGECONFIG[iptc] = "-Dlibiptc=true,-Dlibiptc=false,iptables"
143PACKAGECONFIG[journal-upload] = "-Dlibcurl=true,-Dlibcurl=false,curl" 146PACKAGECONFIG[journal-upload] = "-Dlibcurl=true,-Dlibcurl=false,curl"
144PACKAGECONFIG[kmod] = "-Dkmod=true,-Dkmod=false,kmod" 147PACKAGECONFIG[kmod] = "-Dkmod=true,-Dkmod=false,kmod"
145PACKAGECONFIG[ldconfig] = "-Dldconfig=true,-Dldconfig=false,,ldconfig" 148PACKAGECONFIG[ldconfig] = "-Dldconfig=true,-Dldconfig=false,,ldconfig"
146PACKAGECONFIG[libidn] = "-Dlibidn=true,-Dlibidn=false,libidn" 149PACKAGECONFIG[libidn] = "-Dlibidn=true,-Dlibidn=false,libidn,,libidn"
147PACKAGECONFIG[libidn2] = "-Dlibidn2=true,-Dlibidn2=false,libidn2" 150PACKAGECONFIG[libidn2] = "-Dlibidn2=true,-Dlibidn2=false,libidn2,,libidn2"
148PACKAGECONFIG[localed] = "-Dlocaled=true,-Dlocaled=false" 151PACKAGECONFIG[localed] = "-Dlocaled=true,-Dlocaled=false"
149PACKAGECONFIG[logind] = "-Dlogind=true,-Dlogind=false" 152PACKAGECONFIG[logind] = "-Dlogind=true,-Dlogind=false"
150PACKAGECONFIG[lz4] = "-Dlz4=true,-Dlz4=false,lz4" 153PACKAGECONFIG[lz4] = "-Dlz4=true,-Dlz4=false,lz4"
@@ -162,7 +165,7 @@ PACKAGECONFIG[pam] = "-Dpam=true,-Dpam=false,libpam,${PAM_PLUGINS}"
162PACKAGECONFIG[pcre2] = "-Dpcre2=true,-Dpcre2=false,libpcre2" 165PACKAGECONFIG[pcre2] = "-Dpcre2=true,-Dpcre2=false,libpcre2"
163PACKAGECONFIG[polkit] = "-Dpolkit=true,-Dpolkit=false" 166PACKAGECONFIG[polkit] = "-Dpolkit=true,-Dpolkit=false"
164PACKAGECONFIG[portabled] = "-Dportabled=true,-Dportabled=false" 167PACKAGECONFIG[portabled] = "-Dportabled=true,-Dportabled=false"
165PACKAGECONFIG[qrencode] = "-Dqrencode=true,-Dqrencode=false,qrencode" 168PACKAGECONFIG[qrencode] = "-Dqrencode=true,-Dqrencode=false,qrencode,,qrencode"
166PACKAGECONFIG[quotacheck] = "-Dquotacheck=true,-Dquotacheck=false" 169PACKAGECONFIG[quotacheck] = "-Dquotacheck=true,-Dquotacheck=false"
167PACKAGECONFIG[randomseed] = "-Drandomseed=true,-Drandomseed=false" 170PACKAGECONFIG[randomseed] = "-Drandomseed=true,-Drandomseed=false"
168PACKAGECONFIG[resolved] = "-Dresolve=true,-Dresolve=false" 171PACKAGECONFIG[resolved] = "-Dresolve=true,-Dresolve=false"