All of lore.kernel.org
 help / color / mirror / Atom feed
* [meta-multimedia][PATCH v2 1/2] openh264: fix build for 32-bit intel arch
@ 2018-05-16 17:06 Trevor Woerner
  2018-05-16 17:06 ` [meta-multimedia][PATCH v2 2/2] openh264: switch away from github archive Trevor Woerner
  2018-05-16 17:10 ` [meta-multimedia][PATCH v2 1/2] openh264: fix build for 32-bit intel arch Khem Raj
  0 siblings, 2 replies; 5+ messages in thread
From: Trevor Woerner @ 2018-05-16 17:06 UTC (permalink / raw)
  To: openembedded-devel

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
 .../recipes-multimedia/openh264/openh264_1.7.0.bb        | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/meta-multimedia/recipes-multimedia/openh264/openh264_1.7.0.bb b/meta-multimedia/recipes-multimedia/openh264/openh264_1.7.0.bb
index a7aaab3623..d77de2876b 100644
--- a/meta-multimedia/recipes-multimedia/openh264/openh264_1.7.0.bb
+++ b/meta-multimedia/recipes-multimedia/openh264/openh264_1.7.0.bb
@@ -3,9 +3,8 @@ decoding. It is suitable for use in real time applications such as WebRTC."
 HOMEPAGE = "http://www.openh264.org/"
 SECTION = "libs/multimedia"
 
-DEPENDS = "${@oe.utils.conditional('TARGET_ARCH', 'i386', 'nasm-native', \
-              oe.utils.conditional('TARGET_ARCH', 'x86_64', 'nasm-native', \
-             '', d), d)}"
+DEPENDS_x86 += "nasm-native"
+DEPENDS_x86-64 += "nasm-native"
 
 LICENSE = "BSD-2-Clause"
 LICENSE_FLAGS = "commercial"
@@ -17,14 +16,14 @@ SRC_URI[sha256sum] = "9c07c38d7de00046c9c52b12c76a2af7648b70d05bd5460c8b67f68957
 
 COMPATIBLE_MACHINE_armv7a = "(.*)"
 COMPATIBLE_MACHINE_aarch64 = "(.*)"
-COMPATIBLE_MACHINE_i386 = "(.*)"
+COMPATIBLE_MACHINE_x86 = "(.*)"
 COMPATIBLE_MACHINE_x86-64 = "(.*)"
 COMPATIBLE_MACHINE_mips = "(.*)"
 COMPATIBLE_MACHINE_mips64 = "(.*)"
 
 EXTRA_OEMAKE_armv7a = "ARCH=arm"
 EXTRA_OEMAKE_aarch64 = "ARCH=arm64"
-EXTRA_OEMAKE_i386 = "ARCH=i386"
+EXTRA_OEMAKE_x86 = "ARCH=i386"
 EXTRA_OEMAKE_x86-64 = "ARCH=x86_64"
 EXTRA_OEMAKE_mips = "ARCH=mips"
 EXTRA_OEMAKE_mips64 = "ARCH=mips64"
-- 
2.17.0.rc2.3.gc2a499e6c



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

* [meta-multimedia][PATCH v2 2/2] openh264: switch away from github archive
  2018-05-16 17:06 [meta-multimedia][PATCH v2 1/2] openh264: fix build for 32-bit intel arch Trevor Woerner
@ 2018-05-16 17:06 ` Trevor Woerner
  2018-05-16 17:10 ` [meta-multimedia][PATCH v2 1/2] openh264: fix build for 32-bit intel arch Khem Raj
  1 sibling, 0 replies; 5+ messages in thread
From: Trevor Woerner @ 2018-05-16 17:06 UTC (permalink / raw)
  To: openembedded-devel

Since we know that github archives which are automatically generated have a
tendency to change their checksums[1], switch to using a git clone.

[1] http://lists.openembedded.org/pipermail/openembedded-devel/2017-September/114916.html

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
changes since v1
- none. the only change is to introduce the fix for qemux86 builds (patch 1/2)
  which isn't related to this patch and has no effect on it
---
 .../recipes-multimedia/openh264/openh264_1.7.0.bb          | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/meta-multimedia/recipes-multimedia/openh264/openh264_1.7.0.bb b/meta-multimedia/recipes-multimedia/openh264/openh264_1.7.0.bb
index d77de2876b..44c46f81e8 100644
--- a/meta-multimedia/recipes-multimedia/openh264/openh264_1.7.0.bb
+++ b/meta-multimedia/recipes-multimedia/openh264/openh264_1.7.0.bb
@@ -10,9 +10,10 @@ LICENSE = "BSD-2-Clause"
 LICENSE_FLAGS = "commercial"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=bb6d3771da6a07d33fd50d4d9aa73bcf"
 
-SRC_URI = "https://github.com/cisco/openh264/archive/v${PV}.tar.gz"
-SRC_URI[md5sum] = "93da4e76cfda7ede8fd2df51b0021efd"
-SRC_URI[sha256sum] = "9c07c38d7de00046c9c52b12c76a2af7648b70d05bd5460c8b67f6895738653f"
+S = "${WORKDIR}/git"
+SRCREV = "a180c9d4d6f1a4830ca9eed9d159d54996bd63cb"
+BRANCH = "openh264v1.7"
+SRC_URI = "git://github.com/cisco/openh264.git;protocol=https;branch=${BRANCH};"
 
 COMPATIBLE_MACHINE_armv7a = "(.*)"
 COMPATIBLE_MACHINE_aarch64 = "(.*)"
-- 
2.17.0.rc2.3.gc2a499e6c



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

* Re: [meta-multimedia][PATCH v2 1/2] openh264: fix build for 32-bit intel arch
  2018-05-16 17:06 [meta-multimedia][PATCH v2 1/2] openh264: fix build for 32-bit intel arch Trevor Woerner
  2018-05-16 17:06 ` [meta-multimedia][PATCH v2 2/2] openh264: switch away from github archive Trevor Woerner
@ 2018-05-16 17:10 ` Khem Raj
  2018-05-16 17:32   ` Trevor Woerner
  1 sibling, 1 reply; 5+ messages in thread
From: Khem Raj @ 2018-05-16 17:10 UTC (permalink / raw)
  To: Trevor Woerner; +Cc: openembeded-devel

On Wed, May 16, 2018 at 10:06 AM, Trevor Woerner <twoerner@gmail.com> wrote:
> Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> ---
>  .../recipes-multimedia/openh264/openh264_1.7.0.bb        | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/meta-multimedia/recipes-multimedia/openh264/openh264_1.7.0.bb b/meta-multimedia/recipes-multimedia/openh264/openh264_1.7.0.bb
> index a7aaab3623..d77de2876b 100644
> --- a/meta-multimedia/recipes-multimedia/openh264/openh264_1.7.0.bb
> +++ b/meta-multimedia/recipes-multimedia/openh264/openh264_1.7.0.bb
> @@ -3,9 +3,8 @@ decoding. It is suitable for use in real time applications such as WebRTC."
>  HOMEPAGE = "http://www.openh264.org/"
>  SECTION = "libs/multimedia"
>
> -DEPENDS = "${@oe.utils.conditional('TARGET_ARCH', 'i386', 'nasm-native', \
> -              oe.utils.conditional('TARGET_ARCH', 'x86_64', 'nasm-native', \
> -             '', d), d)}"
> +DEPENDS_x86 += "nasm-native"
> +DEPENDS_x86-64 += "nasm-native"
>

if using overrides, perhaps using _append instead of += is better.

>  LICENSE = "BSD-2-Clause"
>  LICENSE_FLAGS = "commercial"
> @@ -17,14 +16,14 @@ SRC_URI[sha256sum] = "9c07c38d7de00046c9c52b12c76a2af7648b70d05bd5460c8b67f68957
>
>  COMPATIBLE_MACHINE_armv7a = "(.*)"
>  COMPATIBLE_MACHINE_aarch64 = "(.*)"
> -COMPATIBLE_MACHINE_i386 = "(.*)"
> +COMPATIBLE_MACHINE_x86 = "(.*)"
>  COMPATIBLE_MACHINE_x86-64 = "(.*)"
>  COMPATIBLE_MACHINE_mips = "(.*)"
>  COMPATIBLE_MACHINE_mips64 = "(.*)"
>
>  EXTRA_OEMAKE_armv7a = "ARCH=arm"
>  EXTRA_OEMAKE_aarch64 = "ARCH=arm64"
> -EXTRA_OEMAKE_i386 = "ARCH=i386"
> +EXTRA_OEMAKE_x86 = "ARCH=i386"

can you take another look if there are other options eg. i686 ?
if in literal sense it means i386 then we should not be using it
for newer i*86 arches.

>  EXTRA_OEMAKE_x86-64 = "ARCH=x86_64"
>  EXTRA_OEMAKE_mips = "ARCH=mips"
>  EXTRA_OEMAKE_mips64 = "ARCH=mips64"
> --
> 2.17.0.rc2.3.gc2a499e6c
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel


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

* Re: [meta-multimedia][PATCH v2 1/2] openh264: fix build for 32-bit intel arch
  2018-05-16 17:10 ` [meta-multimedia][PATCH v2 1/2] openh264: fix build for 32-bit intel arch Khem Raj
@ 2018-05-16 17:32   ` Trevor Woerner
  2018-05-16 17:40     ` Trevor Woerner
  0 siblings, 1 reply; 5+ messages in thread
From: Trevor Woerner @ 2018-05-16 17:32 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel

On Wed, May 16, 2018 at 1:10 PM, Khem Raj <raj.khem@gmail.com> wrote:

> On Wed, May 16, 2018 at 10:06 AM, Trevor Woerner <twoerner@gmail.com>
> wrote:
> > Signed-off-by: Trevor Woerner <twoerner@gmail.com>
> > ---
> >  .../recipes-multimedia/openh264/openh264_1.7.0.bb        | 9 ++++-----
> >  1 file changed, 4 insertions(+), 5 deletions(-)
> >
> > diff --git a/meta-multimedia/recipes-multimedia/openh264/openh264_
> 1.7.0.bb b/meta-multimedia/recipes-multimedia/openh264/openh264_1.7.0.bb
> > index a7aaab3623..d77de2876b 100644
> > --- a/meta-multimedia/recipes-multimedia/openh264/openh264_1.7.0.bb
> > +++ b/meta-multimedia/recipes-multimedia/openh264/openh264_1.7.0.bb
> > @@ -3,9 +3,8 @@ decoding. It is suitable for use in real time
> applications such as WebRTC."
> >  HOMEPAGE = "http://www.openh264.org/"
> >  SECTION = "libs/multimedia"
> >
> > -DEPENDS = "${@oe.utils.conditional('TARGET_ARCH', 'i386',
> 'nasm-native', \
> > -              oe.utils.conditional('TARGET_ARCH', 'x86_64',
> 'nasm-native', \
> > -             '', d), d)}"
> > +DEPENDS_x86 += "nasm-native"
> > +DEPENDS_x86-64 += "nasm-native"
> >
>
> if using overrides, perhaps using _append instead of += is better.
>
>
ok


> >  LICENSE = "BSD-2-Clause"
> >  LICENSE_FLAGS = "commercial"
> > @@ -17,14 +16,14 @@ SRC_URI[sha256sum] = "9c07c38d7de00046c9c52b12c76a2a
> f7648b70d05bd5460c8b67f68957
> >
> >  COMPATIBLE_MACHINE_armv7a = "(.*)"
> >  COMPATIBLE_MACHINE_aarch64 = "(.*)"
> > -COMPATIBLE_MACHINE_i386 = "(.*)"
> > +COMPATIBLE_MACHINE_x86 = "(.*)"
> >  COMPATIBLE_MACHINE_x86-64 = "(.*)"
> >  COMPATIBLE_MACHINE_mips = "(.*)"
> >  COMPATIBLE_MACHINE_mips64 = "(.*)"
> >
> >  EXTRA_OEMAKE_armv7a = "ARCH=arm"
> >  EXTRA_OEMAKE_aarch64 = "ARCH=arm64"
> > -EXTRA_OEMAKE_i386 = "ARCH=i386"
> > +EXTRA_OEMAKE_x86 = "ARCH=i386"
>
> can you take another look if there are other options eg. i686 ?
> if in literal sense it means i386 then we should not be using it
> for newer i*86 arches.
>

i'll take a look


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

* Re: [meta-multimedia][PATCH v2 1/2] openh264: fix build for 32-bit intel arch
  2018-05-16 17:32   ` Trevor Woerner
@ 2018-05-16 17:40     ` Trevor Woerner
  0 siblings, 0 replies; 5+ messages in thread
From: Trevor Woerner @ 2018-05-16 17:40 UTC (permalink / raw)
  To: Khem Raj; +Cc: openembeded-devel

On Wed 2018-05-16 @ 01:32:53 PM, Trevor Woerner wrote:
> > >  EXTRA_OEMAKE_armv7a = "ARCH=arm"
> > >  EXTRA_OEMAKE_aarch64 = "ARCH=arm64"
> > > -EXTRA_OEMAKE_i386 = "ARCH=i386"
> > > +EXTRA_OEMAKE_x86 = "ARCH=i386"
> >
> > can you take another look if there are other options eg. i686 ?
> > if in literal sense it means i386 then we should not be using it
> > for newer i*86 arches.

According to the README
(https://github.com/cisco/openh264/blob/openh264v1.7/README.md#for-all-platforms)
specifying "ARCH=i386" is this project's generic way of saying "32-bit x86
builds" (which is why the recipe needs to "translate" between x86 and i386).

I'll send an updated v4 (this was actually supposed to be v3, oops!) with the
+= replaced with an _appends.

thanks for reviewing! :-)


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

end of thread, other threads:[~2018-05-16 17:40 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-16 17:06 [meta-multimedia][PATCH v2 1/2] openh264: fix build for 32-bit intel arch Trevor Woerner
2018-05-16 17:06 ` [meta-multimedia][PATCH v2 2/2] openh264: switch away from github archive Trevor Woerner
2018-05-16 17:10 ` [meta-multimedia][PATCH v2 1/2] openh264: fix build for 32-bit intel arch Khem Raj
2018-05-16 17:32   ` Trevor Woerner
2018-05-16 17:40     ` Trevor Woerner

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.