All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-oe][PATCH] libopus: upgrade to version 1.1.2
@ 2016-02-08 14:05 Carlos Rafael Giani
  2016-02-08 14:07 ` [meta-oe][PATCH v2] " Carlos Rafael Giani
  0 siblings, 1 reply; 6+ messages in thread
From: Carlos Rafael Giani @ 2016-02-08 14:05 UTC (permalink / raw)
  To: openembedded-devel

This release includes support for Ne10 to improve performance on ARM NEON
capable CPUs. Also, packageconfigs are introduced for controlling whether
Opus uses fixed or floating point processing and whether or not fast
floating point approximations are enabled.

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
---
 .../libopus/{libopus_1.1.bb => libopus_1.1.2.bb}   | 24 ++++++++++++++++++----
 1 file changed, 20 insertions(+), 4 deletions(-)
 rename meta-oe/recipes-multimedia/libopus/{libopus_1.1.bb => libopus_1.1.2.bb} (65%)

diff --git a/meta-oe/recipes-multimedia/libopus/libopus_1.1.bb b/meta-oe/recipes-multimedia/libopus/libopus_1.1.2.bb
similarity index 65%
rename from meta-oe/recipes-multimedia/libopus/libopus_1.1.bb
rename to meta-oe/recipes-multimedia/libopus/libopus_1.1.2.bb
index 948d4df..9d9a634 100644
--- a/meta-oe/recipes-multimedia/libopus/libopus_1.1.bb
+++ b/meta-oe/recipes-multimedia/libopus/libopus_1.1.2.bb
@@ -9,15 +9,31 @@ LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://COPYING;md5=e304cdf74c2a1b0a33a5084c128a23a3"
 
 SRC_URI = "http://downloads.xiph.org/releases/opus/opus-${PV}.tar.gz"
-SRC_URI[md5sum] = "c5a8cf7c0b066759542bc4ca46817ac6"
-SRC_URI[sha256sum] = "b9727015a58affcf3db527322bf8c4d2fcf39f5f6b8f15dbceca20206cbe1d95"
+SRC_URI[md5sum] = "1f08a661bc72930187893a07f3741a91"
+SRC_URI[sha256sum] = "0e290078e31211baa7b5886bcc8ab6bc048b9fc83882532da4a1a45e58e907fd"
 
 S = "${WORKDIR}/opus-${PV}"
 
 inherit autotools pkgconfig
 
-require libopus-fpu.inc
-EXTRA_OECONF = "${@get_libopus_fpu_setting(bb, d)}"
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[fixed-point] = "--enable-fixed-point,,"
+PACKAGECONFIG[float-approx] = "--enable-float-approx,,"
+
+EXTRA_OECONF = "--with-NE10-includes=${STAGING_DIR_TARGET}${includedir} \
+                --with-NE10-libraries=${STAGING_DIR_TARGET}${libdir} \
+                --enable-asm \
+                --enable-intrinsics \
+               "
+
+python () {
+    if d.getVar('TARGET_FPU', True) in [ 'soft' ]:
+        d.appendVar('PACKAGECONFIG', ' fixed-point')
+
+    # Ne10 is only available for armv7 and aarch64
+    if any((t.startswith('armv7') or t.startswith('aarch64')) for t in d.getVar('TUNE_FEATURES', True).split()):
+        d.appendVar('DEPENDS', ' ne10')
+}
 
 # Fails to build with thumb-1 (qemuarm)
 #| {standard input}: Assembler messages:
-- 
2.5.0



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

* [meta-oe][PATCH v2] libopus: upgrade to version 1.1.2
  2016-02-08 14:05 [meta-oe][PATCH] libopus: upgrade to version 1.1.2 Carlos Rafael Giani
@ 2016-02-08 14:07 ` Carlos Rafael Giani
  0 siblings, 0 replies; 6+ messages in thread
From: Carlos Rafael Giani @ 2016-02-08 14:07 UTC (permalink / raw)
  To: openembedded-devel

This release includes support for Ne10 to improve performance on ARM NEON
capable CPUs. Also, packageconfigs are introduced for controlling whether
Opus uses fixed or floating point processing and whether or not fast
floating point approximations are enabled.

libopus-fpu.inc wasn't doing much, and was fully integrated into the
main recipe.

Signed-off-by: Carlos Rafael Giani <dv@pseudoterminal.org>
---
 meta-oe/recipes-multimedia/libopus/libopus-fpu.inc |  6 ------
 .../libopus/{libopus_1.1.bb => libopus_1.1.2.bb}   | 24 ++++++++++++++++++----
 2 files changed, 20 insertions(+), 10 deletions(-)
 delete mode 100644 meta-oe/recipes-multimedia/libopus/libopus-fpu.inc
 rename meta-oe/recipes-multimedia/libopus/{libopus_1.1.bb => libopus_1.1.2.bb} (65%)

diff --git a/meta-oe/recipes-multimedia/libopus/libopus-fpu.inc b/meta-oe/recipes-multimedia/libopus/libopus-fpu.inc
deleted file mode 100644
index 8464664..0000000
--- a/meta-oe/recipes-multimedia/libopus/libopus-fpu.inc
+++ /dev/null
@@ -1,6 +0,0 @@
-
-def get_libopus_fpu_setting(bb, d):
-    if d.getVar('TARGET_FPU', True) in [ 'soft' ]:
-        return "--enable-fixed-point"
-    return ""
-
diff --git a/meta-oe/recipes-multimedia/libopus/libopus_1.1.bb b/meta-oe/recipes-multimedia/libopus/libopus_1.1.2.bb
similarity index 65%
rename from meta-oe/recipes-multimedia/libopus/libopus_1.1.bb
rename to meta-oe/recipes-multimedia/libopus/libopus_1.1.2.bb
index 948d4df..9d9a634 100644
--- a/meta-oe/recipes-multimedia/libopus/libopus_1.1.bb
+++ b/meta-oe/recipes-multimedia/libopus/libopus_1.1.2.bb
@@ -9,15 +9,31 @@ LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://COPYING;md5=e304cdf74c2a1b0a33a5084c128a23a3"
 
 SRC_URI = "http://downloads.xiph.org/releases/opus/opus-${PV}.tar.gz"
-SRC_URI[md5sum] = "c5a8cf7c0b066759542bc4ca46817ac6"
-SRC_URI[sha256sum] = "b9727015a58affcf3db527322bf8c4d2fcf39f5f6b8f15dbceca20206cbe1d95"
+SRC_URI[md5sum] = "1f08a661bc72930187893a07f3741a91"
+SRC_URI[sha256sum] = "0e290078e31211baa7b5886bcc8ab6bc048b9fc83882532da4a1a45e58e907fd"
 
 S = "${WORKDIR}/opus-${PV}"
 
 inherit autotools pkgconfig
 
-require libopus-fpu.inc
-EXTRA_OECONF = "${@get_libopus_fpu_setting(bb, d)}"
+PACKAGECONFIG ??= ""
+PACKAGECONFIG[fixed-point] = "--enable-fixed-point,,"
+PACKAGECONFIG[float-approx] = "--enable-float-approx,,"
+
+EXTRA_OECONF = "--with-NE10-includes=${STAGING_DIR_TARGET}${includedir} \
+                --with-NE10-libraries=${STAGING_DIR_TARGET}${libdir} \
+                --enable-asm \
+                --enable-intrinsics \
+               "
+
+python () {
+    if d.getVar('TARGET_FPU', True) in [ 'soft' ]:
+        d.appendVar('PACKAGECONFIG', ' fixed-point')
+
+    # Ne10 is only available for armv7 and aarch64
+    if any((t.startswith('armv7') or t.startswith('aarch64')) for t in d.getVar('TUNE_FEATURES', True).split()):
+        d.appendVar('DEPENDS', ' ne10')
+}
 
 # Fails to build with thumb-1 (qemuarm)
 #| {standard input}: Assembler messages:
-- 
2.5.0



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

* Re: [meta-oe][PATCH v2] libopus: upgrade to version 1.1.2
  2016-02-25 22:11     ` Andreas Müller
@ 2016-02-26  7:41       ` Carlos Rafael Giani
  0 siblings, 0 replies; 6+ messages in thread
From: Carlos Rafael Giani @ 2016-02-26  7:41 UTC (permalink / raw)
  To: openembedded-devel

This is because the ne10 build currently has a .text relocation problem. 
I am looking into it.

On 2016-02-25 23:11, Andreas Müller wrote:
> On Wed, Feb 10, 2016 at 3:31 PM, Matthieu CRAPET
> <Matthieu.CRAPET@ingenico.com> wrote:
>> Hi,
>>
>> I totally missed Carlos Rafael Giani's patch (2016.02.08). Please discard this thread.
>>
>> Regards,
>> Matthieu
>> This email and its content belong to Ingenico Group. The enclosed information is confidential and may not be disclosed to any unauthorized person. If you have received it by mistake do not forward it and delete it from your system. Cet email et son contenu sont la propriété du Groupe Ingenico. L’information qu’il contient est confidentielle et ne peut être communiquée à des personnes non autorisées. Si vous l’avez reçu par erreur ne le transférez pas et supprimez-le.
>> --
> We are failing here currently as ne10 was not applied - so I get something like
>
> | Missing or unbuildable dependency chain was: ['xfce4-games-image',
> 'packagegroup-image-full', 'mpd', 'libopus', 'ne10']
>
> Andreas



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

* Re: [meta-oe][PATCH v2] libopus: upgrade to version 1.1.2
  2016-02-10 14:31   ` Matthieu CRAPET
@ 2016-02-25 22:11     ` Andreas Müller
  2016-02-26  7:41       ` Carlos Rafael Giani
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Müller @ 2016-02-25 22:11 UTC (permalink / raw)
  To: openembedded-devel

On Wed, Feb 10, 2016 at 3:31 PM, Matthieu CRAPET
<Matthieu.CRAPET@ingenico.com> wrote:
> Hi,
>
> I totally missed Carlos Rafael Giani's patch (2016.02.08). Please discard this thread.
>
> Regards,
> Matthieu
> This email and its content belong to Ingenico Group. The enclosed information is confidential and may not be disclosed to any unauthorized person. If you have received it by mistake do not forward it and delete it from your system. Cet email et son contenu sont la propriété du Groupe Ingenico. L’information qu’il contient est confidentielle et ne peut être communiquée à des personnes non autorisées. Si vous l’avez reçu par erreur ne le transférez pas et supprimez-le.
> --
We are failing here currently as ne10 was not applied - so I get something like

| Missing or unbuildable dependency chain was: ['xfce4-games-image',
'packagegroup-image-full', 'mpd', 'libopus', 'ne10']

Andreas


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

* Re: [meta-oe][PATCH v2] libopus: upgrade to version 1.1.2
  2016-02-10 13:54 ` [meta-oe][PATCH v2] " Matthieu Crapet
@ 2016-02-10 14:31   ` Matthieu CRAPET
  2016-02-25 22:11     ` Andreas Müller
  0 siblings, 1 reply; 6+ messages in thread
From: Matthieu CRAPET @ 2016-02-10 14:31 UTC (permalink / raw)
  To: openembedded-devel

Hi,

I totally missed Carlos Rafael Giani's patch (2016.02.08). Please discard this thread.

Regards,
Matthieu
This email and its content belong to Ingenico Group. The enclosed information is confidential and may not be disclosed to any unauthorized person. If you have received it by mistake do not forward it and delete it from your system. Cet email et son contenu sont la propriété du Groupe Ingenico. L’information qu’il contient est confidentielle et ne peut être communiquée à des personnes non autorisées. Si vous l’avez reçu par erreur ne le transférez pas et supprimez-le.

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

* [meta-oe][PATCH v2] libopus: upgrade to version 1.1.2
  2016-02-10 10:21 [meta-oe][PATCH] " Matthieu Crapet
@ 2016-02-10 13:54 ` Matthieu Crapet
  2016-02-10 14:31   ` Matthieu CRAPET
  0 siblings, 1 reply; 6+ messages in thread
From: Matthieu Crapet @ 2016-02-10 13:54 UTC (permalink / raw)
  To: openembedded-devel

https://git.xiph.org/?p=opus.git;a=commit;h=655cc54c564b84ef2827f0b2152ce3811046201e
ARM thumb compilation is broken for armv5 but not for armv6, armv7 & arvm8.

Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
---
 .../libopus/{libopus_1.1.bb => libopus_1.1.2.bb}   | 36 ++++++++++++++--------
 1 file changed, 24 insertions(+), 12 deletions(-)
 rename meta-oe/recipes-multimedia/libopus/{libopus_1.1.bb => libopus_1.1.2.bb} (24%)

diff --git a/meta-oe/recipes-multimedia/libopus/libopus_1.1.bb b/meta-oe/recipes-multimedia/libopus/libopus_1.1.2.bb
similarity index 24%
rename from meta-oe/recipes-multimedia/libopus/libopus_1.1.bb
rename to meta-oe/recipes-multimedia/libopus/libopus_1.1.2.bb
index 948d4df..35f8574 100644
--- a/meta-oe/recipes-multimedia/libopus/libopus_1.1.bb
+++ b/meta-oe/recipes-multimedia/libopus/libopus_1.1.2.bb
@@ -9,8 +9,8 @@ LICENSE = "BSD"
 LIC_FILES_CHKSUM = "file://COPYING;md5=e304cdf74c2a1b0a33a5084c128a23a3"

 SRC_URI = "http://downloads.xiph.org/releases/opus/opus-${PV}.tar.gz"
-SRC_URI[md5sum] = "c5a8cf7c0b066759542bc4ca46817ac6"
-SRC_URI[sha256sum] = "b9727015a58affcf3db527322bf8c4d2fcf39f5f6b8f15dbceca20206cbe1d95"
+SRC_URI[md5sum] = "1f08a661bc72930187893a07f3741a91"
+SRC_URI[sha256sum] = "0e290078e31211baa7b5886bcc8ab6bc048b9fc83882532da4a1a45e58e907fd"

 S = "${WORKDIR}/opus-${PV}"

@@ -21,14 +21,26 @@ EXTRA_OECONF = "${@get_libopus_fpu_setting(bb, d)}"

 # Fails to build with thumb-1 (qemuarm)
 #| {standard input}: Assembler messages:
-#| {standard input}:389: Error: selected processor does not support Thumb mode `smull r5,r7,r1,r4'
-#| {standard input}:418: Error: selected processor does not support Thumb mode `smull r5,r6,r4,r1'
-#| {standard input}:448: Error: selected processor does not support Thumb mode `smull r4,r5,r1,r0'
-#| {standard input}:474: Error: selected processor does not support Thumb mode `smull r0,r4,r8,r1'
-#| {standard input}:510: Error: selected processor does not support Thumb mode `smull fp,r0,r10,r1'
-#| {standard input}:553: Error: selected processor does not support Thumb mode `smull fp,r1,r10,r3'
-#| {standard input}:741: Error: selected processor does not support Thumb mode `smull r3,r0,r6,r10'
-#| {standard input}:761: Error: selected processor does not support Thumb mode `smull fp,r2,r3,r9'
-#| {standard input}:773: Error: selected processor does not support Thumb mode `smull fp,r3,r5,r8'
+#| {standard input}:450: Error: selected processor does not support `smull r4,r8,r2,r0' in Thumb mode
+#| {standard input}:473: Error: selected processor does not support `smull r4,r10,r0,r2' in Thumb mode
+#| {standard input}:520: Error: selected processor does not support `smull r0,r4,r2,r1' in Thumb mode
+#| {standard input}:546: Error: selected processor does not support `smull r1,r0,ip,r2' in Thumb mode
+#| {standard input}:578: Error: selected processor does not support `smull fp,r1,r10,r2' in Thumb mode
+#| {standard input}:616: Error: selected processor does not support `smull fp,r2,r10,r3' in Thumb mode
+#| {standard input}:793: Error: selected processor does not support `smull ip,r9,r4,r0' in Thumb mode
+#| {standard input}:828: Error: selected processor does not support `smull fp,r10,ip,r1' in Thumb mode
+#| {standard input}:855: Error: selected processor does not support `smull fp,ip,r10,r7' in Thumb mode
+#| {standard input}:874: Error: selected processor does not support `smull ip,r9,r5,r0' in Thumb mode
+#| {standard input}:912: Error: selected processor does not support `smull fp,ip,r10,r0' in Thumb mode
+#| {standard input}:937: Error: selected processor does not support `smull r9,r10,r0,r7' in Thumb mode
+#| {standard input}:980: Error: selected processor does not support `smull ip,r9,r3,r0' in Thumb mode
+#| {standard input}:1009: Error: selected processor does not support `smull fp,ip,r10,r1' in Thumb mode
+#| {standard input}:1041: Error: selected processor does not support `smull r9,r4,r10,r7' in Thumb mode
+#| {standard input}:1071: Error: selected processor does not support `smull ip,r9,r0,r1' in Thumb mode
+#| {standard input}:1101: Error: selected processor does not support `smull fp,ip,r10,r0' in Thumb mode
+#| {standard input}:1132: Error: selected processor does not support `smull r9,r5,r10,r7' in Thumb mode
+#| {standard input}:1157: Error: selected processor does not support `smull ip,r9,r0,r1' in Thumb mode
+#| {standard input}:1187: Error: selected processor does not support `smull fp,ip,r10,r1' in Thumb mode
+#| {standard input}:1206: Error: selected processor does not support `smull r9,r10,r3,r7' in Thumb mode
 #| make[2]: *** [celt/celt.lo] Error 1
-ARM_INSTRUCTION_SET = "arm"
+ARM_INSTRUCTION_SET_armv5 = "arm"
--
1.9.1

This email and its content belong to Ingenico Group. The enclosed information is confidential and may not be disclosed to any unauthorized person. If you have received it by mistake do not forward it and delete it from your system. Cet email et son contenu sont la propriété du Groupe Ingenico. L’information qu’il contient est confidentielle et ne peut être communiquée à des personnes non autorisées. Si vous l’avez reçu par erreur ne le transférez pas et supprimez-le.


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

end of thread, other threads:[~2016-02-26  7:41 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-08 14:05 [meta-oe][PATCH] libopus: upgrade to version 1.1.2 Carlos Rafael Giani
2016-02-08 14:07 ` [meta-oe][PATCH v2] " Carlos Rafael Giani
2016-02-10 10:21 [meta-oe][PATCH] " Matthieu Crapet
2016-02-10 13:54 ` [meta-oe][PATCH v2] " Matthieu Crapet
2016-02-10 14:31   ` Matthieu CRAPET
2016-02-25 22:11     ` Andreas Müller
2016-02-26  7:41       ` Carlos Rafael Giani

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.