On Sat, 2014-08-30 at 21:33 +0200, Felix Fietkau wrote:
> On 2014-08-30 21:27, Nikos Mavrogiannopoulos wrote:
> > On Sat, 2014-08-30 at 20:10 +0200, Felix Fietkau wrote:
> > 
> >> > This could be a problem caused by mips16. We use that in BB to create
> >> > smaller binaries. but Jonas saw a performance problem in some
> >> > applications, mostly stuff doing crypto (big integer calculations).
> >> > Can you try to build the BB toolchain without the mips16 feature in
> >> > target/linux/ar71xx/Makefile and try your application again.
> >> There's no need to disable it for the target, since it can be disabled
> >> for individual packages.
> > 
> > So should all packages that contain performance critical code have that
> > flag? 35% performance penalty is too high for such systems.
> Some kinds of code may be more affected than others. For crypto code we
> should definitely disable mips16, as it seems to be most affected.

Then I guess, that patch should be applied on nettle.

regards,
Nikos

>From a75b56c15bd28e41daec6867fe652a3c61a65edc Mon Sep 17 00:00:00 2001
From: Nikos Mavrogiannopoulos <n...@gnutls.org>
Date: Sat, 30 Aug 2014 22:09:27 +0200
Subject: [PATCH] nettle: set PKG_USE_MIPS16 to zer

Signed-off-by: Nikos Mavrogiannopoulos <n...@gnutls.org>
---
 package/libs/nettle/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/libs/nettle/Makefile b/package/libs/nettle/Makefile
index 4b0ce0b..c655b72 100644
--- a/package/libs/nettle/Makefile
+++ b/package/libs/nettle/Makefile
@@ -10,6 +10,7 @@ include $(TOPDIR)/rules.mk
 PKG_NAME:=nettle
 PKG_VERSION:=2.7.1
 PKG_RELEASE:=1
+PKG_USE_MIPS16:=0
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=@GNU/nettle
-- 
2.0.0

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to