[Buildroot] [PATCH v2] package/linux-tools: openssl dependency for x86_64 selftests

Yann E. MORIN yann.morin.1998 at free.fr
Wed May 25 07:07:37 UTC 2022


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.

Regards,
Yann E. MORIN.

>  SELFTESTS_MAKE_FLAGS = \
>  	$(LINUX_MAKE_FLAGS) \
> -- 
> 2.36.1
> 

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'



More information about the buildroot mailing list