[Buildroot] [PATCH v2] package/linux-tools: openssl dependency for x86_64 selftests
Jarkko Sakkinen
jarkko.sakkinen at iki.fi
Thu May 26 00:37:04 UTC 2022
On Wed, 2022-05-25 at 09:07 +0200, Yann E. MORIN wrote:
> Jarkko, All,
>
> On 2022-05-24 20:05 +0300, Jarkko Sakkinen spake thusly:
> > On x86_64, libssl is a dependency for kselftests. selftests/sgx depends on
> > it. Thus, select it in "Config.in", and add it as a build dependency in
> > "linux-tool-selftests.mk.in".
> >
> > Link: https://lore.kernel.org/buildroot/20220517224809.21f77949@gmx.net/
> > Suggested-by: Peter Seiderer <ps.report at gmx.net>
> > Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen at iki.fi>
> > ---
> > v2:
> > Config.in: BR2_PACKAGE_LIBOPENSSL => BR2_PACKAGE_OPENSSL
> > ---
> > package/linux-tools/Config.in | 1 +
> > package/linux-tools/linux-tool-selftests.mk.in | 3 +++
> > 2 files changed, 4 insertions(+)
> >
> > diff --git a/package/linux-tools/Config.in b/package/linux-tools/Config.in
> > index 791f2c085c..6217fcfb7a 100644
> > --- a/package/linux-tools/Config.in
> > +++ b/package/linux-tools/Config.in
> > @@ -98,6 +98,7 @@ config BR2_PACKAGE_LINUX_TOOLS_SELFTESTS
> > select BR2_PACKAGE_LIBCAP_NG
> > select BR2_PACKAGE_UTIL_LINUX
> > select BR2_PACKAGE_UTIL_LINUX_SCHEDUTILS # runtime (taskset)
> > + select BR2_PACKAGE_OPENSSL if BR2_x86_64
> > help
> > Build and install (to /usr/lib/kselftests) kernel selftests.
> >
> > diff --git a/package/linux-tools/linux-tool-selftests.mk.in b/package/linux-tools/linux-tool-selftests.mk.in
> > index b824c11bd6..06158e6147 100644
> > --- a/package/linux-tools/linux-tool-selftests.mk.in
> > +++ b/package/linux-tools/linux-tool-selftests.mk.in
> > @@ -17,6 +17,9 @@ endif
> > endif
> >
> > SELFTESTS_DEPENDENCIES = libcap-ng popt
> > +ifeq ($(NORMALIZED_ARCH),x86_64)
> > +SELFTESTS_DEPENDENCIES += openssl
> > +endif
>
> I've changed ths codition to be in the package being actually enabled,
> so that the real confdition to require openssl is only handled in
> Config.in (or we'd have to sync the two everytime a new arch needs
> openssl...)
>
> Applied to master, thanks.
Thank you, appreciate it!
Just for the record, there's also a bug in the selftest itself
preventing packaging it:
https://lore.kernel.org/linux-sgx/20220523181120.54547-1-jarkko@kernel.org/T/#u
BR, Jarkko
More information about the buildroot
mailing list