mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] OpenSSL for mips64
@ 2025-04-08 20:24 Ladislav Michl
  2025-04-09  6:32 ` Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Ladislav Michl @ 2025-04-08 20:24 UTC (permalink / raw)
  To: ptxdist

Building openssl for 64bit mips requires different config, which is
easy to achieve:
--- a/rules/openssl.make
+++ b/rules/openssl.make
@@ -45,11 +45,11 @@ OPENSSL_ARCH-$(PTXCONF_ARCH_ARM64)	:= debian-arm64
 
 ifdef PTXCONF_ENDIAN_LITTLE
 OPENSSL_ARCH-$(PTXCONF_ARCH_ARM)	:= debian-armel
-OPENSSL_ARCH-$(PTXCONF_ARCH_MIPS)	:= debian-mipsel
+OPENSSL_ARCH-$(PTXCONF_ARCH_MIPS)	:= debian-$(call ptx/ifdef,PTXCONF_ARCH_LP64,mips64el,mipsel)
 OPENSSL_ARCH-$(PTXCONF_ARCH_SH_SH3)	:= debian-sh3
 OPENSSL_ARCH-$(PTXCONF_ARCH_SH_SH4)	:= debian-sh4
 else
-OPENSSL_ARCH-$(PTXCONF_ARCH_MIPS)	:= debian-mips
+OPENSSL_ARCH-$(PTXCONF_ARCH_MIPS)	:= debian-$(call ptx/ifdef,PTXCONF_ARCH_LP64,mips64,mips)
 OPENSSL_ARCH-$(PTXCONF_ARCH_SH_SH3)	:= debian-sh3eb
 OPENSSL_ARCH-$(PTXCONF_ARCH_SH_SH4)	:= debian-sh4eb
 endif

Harder part is where ARCH_LP64 to get from.
- make it selectable
- add ARCH_MIPS64
- ask used toolchain
- ???

Suggestions welcome,
	l.



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] OpenSSL for mips64
  2025-04-08 20:24 [ptxdist] OpenSSL for mips64 Ladislav Michl
@ 2025-04-09  6:32 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2025-04-09  6:32 UTC (permalink / raw)
  To: Ladislav Michl; +Cc: ptxdist

On Tue, Apr 08, 2025 at 10:24:59PM +0200, Ladislav Michl wrote:
> Building openssl for 64bit mips requires different config, which is
> easy to achieve:
> --- a/rules/openssl.make
> +++ b/rules/openssl.make
> @@ -45,11 +45,11 @@ OPENSSL_ARCH-$(PTXCONF_ARCH_ARM64)	:= debian-arm64
>  
>  ifdef PTXCONF_ENDIAN_LITTLE
>  OPENSSL_ARCH-$(PTXCONF_ARCH_ARM)	:= debian-armel
> -OPENSSL_ARCH-$(PTXCONF_ARCH_MIPS)	:= debian-mipsel
> +OPENSSL_ARCH-$(PTXCONF_ARCH_MIPS)	:= debian-$(call ptx/ifdef,PTXCONF_ARCH_LP64,mips64el,mipsel)
>  OPENSSL_ARCH-$(PTXCONF_ARCH_SH_SH3)	:= debian-sh3
>  OPENSSL_ARCH-$(PTXCONF_ARCH_SH_SH4)	:= debian-sh4
>  else
> -OPENSSL_ARCH-$(PTXCONF_ARCH_MIPS)	:= debian-mips
> +OPENSSL_ARCH-$(PTXCONF_ARCH_MIPS)	:= debian-$(call ptx/ifdef,PTXCONF_ARCH_LP64,mips64,mips)
>  OPENSSL_ARCH-$(PTXCONF_ARCH_SH_SH3)	:= debian-sh3eb
>  OPENSSL_ARCH-$(PTXCONF_ARCH_SH_SH4)	:= debian-sh4eb
>  endif
> 
> Harder part is where ARCH_LP64 to get from.
> - make it selectable
> - add ARCH_MIPS64

That one, probably similar to what we do for x86_64, so that ARCH_MIPS and
ARCH_MIPS64 are enabled at the same time.

Michael

> - ask used toolchain
> - ???
> 
> Suggestions welcome,
> 	l.
> 
> 

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-09  6:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-04-08 20:24 [ptxdist] OpenSSL for mips64 Ladislav Michl
2025-04-09  6:32 ` Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox