On Sun, Jan 25, 2015 at 08:56:22PM +0100, Alexander Aring wrote:
> For doing some certificates magic the openssl tool requires some
> openssl.cnf file. This patch adds support to install the default
> shipped openssl.cnf file.
> 
> Signed-off-by: Alexander Aring <[email protected]>
> ---
>  rules/openssl.make | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/rules/openssl.make b/rules/openssl.make
> index 50039c7..d3928a0 100644
> --- a/rules/openssl.make
> +++ b/rules/openssl.make
> @@ -100,6 +100,10 @@ ifdef PTXCONF_OPENSSL_BIN
>       @$(call install_copy, openssl, 0, 0, 0755, -, \
>               /usr/bin/openssl)
>  endif
> +
> +     @$(call install_copy, openssl, 0, 0, 0644, -, \
> +             /usr/lib/ssl/openssl.cnf)

Use install_alternative. This will fall back to PKGDIR if nothing else is
available, but it can be overwritten in projectroot/ in the BSP.

Michael

> +
>       @$(call install_lib, openssl, 0, 0, 0644, libssl)
>       @$(call install_lib, openssl, 0, 0, 0644, libcrypto)
>  
> -- 
> 2.2.2
> 
> 
> -- 
> ptxdist mailing list
> [email protected]
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

-- 
ptxdist mailing list
[email protected]

Reply via email to