Skip to contentSkip to conversation

Fix some build errors

PATCH Superseded Gary Thomas 3 participants 6 messages Feb 11, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover Fix some build errors

When building in a tree mostly populated by sstate, the kernel headers may be missing. These patches add an explicit dependency which will get the kernel headers populated.

*** BLURB HERE ***

Gary Thomas (2):
fsl-alsa-plugins: Fix possible build error
gst-fsl-plugin: Fix possible build error

 recipes-multimedia/alsa/fsl-alsa-plugins_1.0.25.bb | 3 +++
 recipes-multimedia/gstreamer/gst-fsl-plugin.inc    | 3 +++
 2 files changed, 6 insertions(+)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/2 fsl-alsa-plugins: Fix possible build error

Add a configure-time requirement on the kernel sources. This is needed because parts of this program use kernel headers directly. If the kernel package is restored from sstate, the headers will not be available unless this dependency is explicit. This new behaviour was introduced in Yocto rev 46cdaf1c7bc.

---
 recipes-multimedia/alsa/fsl-alsa-plugins_1.0.25.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-multimedia/alsa/fsl-alsa-plugins_1.0.25.bb +3 -0
index 556884d..af55270 100644
@@ -6,6 +6,9 @@ LICENSE = "GPLv2"
 SECTION = "multimedia"
 DEPENDS = "alsa-lib virtual/kernel"
 
+# Make sure kernel sources are available
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
+
 LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=94d55d512a9ba36caa9b7df079bae19f"
 
 inherit autotools pkgconfig
Signature · 1 line
1.9.1
#2 lore raw

Re: [meta-fsl-arm][PATCH 1/2] fsl-alsa-plugins: Fix possible build error

Quoted 5 lines · Gary Thomas

Add a configure-time requirement on the kernel sources. This is needed because parts of this program use kernel headers directly. If the kernel package is restored from sstate, the headers will not be available unless this dependency is explicit. This new behaviour was introduced in Yocto rev 46cdaf1c7bc.

Same comment about OE-Core.

Quoted 27 lines
---
 recipes-multimedia/alsa/fsl-alsa-plugins_1.0.25.bb | 3 +++
 1 file changed, 3 insertions(+)
recipes-multimedia/alsa/fsl-alsa-plugins_1.0.25.bb +3 -1
index 556884d..af55270 100644
@@ -6,6 +6,9 @@ LICENSE = "GPLv2"
 SECTION = "multimedia"
 DEPENDS = "alsa-lib virtual/kernel"
 
+# Make sure kernel sources are available
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
+
 LIC_FILES_CHKSUM = "file://COPYING.GPL;md5=94d55d512a9ba36caa9b7df079bae19f"
 
 inherit autotools pkgconfig
--

1.9.1

--
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#3 lore raw

PATCH 2/2 gst-fsl-plugin: Fix possible build error

In reply to Gary Thomas

Add a configure-time requirement on the kernel sources. This is needed because parts of this program use kernel headers directly. If the kernel package is restored from sstate, the headers will not be available unless this dependency is explicit. This new behaviour was introduced in Yocto rev 46cdaf1c7bc.

---
 recipes-multimedia/gstreamer/gst-fsl-plugin.inc | 3 +++
 1 file changed, 3 insertions(+)
recipes-multimedia/gstreamer/gst-fsl-plugin.inc +3 -0
index b803808..edd8bd5 100644
@@ -13,6 +13,9 @@ DEPENDS_append_mx6dl = " imx-lib imx-vpu libfslvpuwrap"
 DEPENDS_append_mx6sl = " imx-lib"
 DEPENDS_append_mx6sx = " imx-lib"
 
+# Make sure kernel sources are available
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
+
 LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
                     file://COPYING-LGPL-2;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
                     file://COPYING-LGPL-2.1;md5=fbc093901857fcd118f065f900982c24"
Signature · 1 line
1.9.1
#4 lore raw

Re: [meta-fsl-arm][PATCH 2/2] gst-fsl-plugin: Fix possible build error

Quoted 5 lines · Gary Thomas

Add a configure-time requirement on the kernel sources. This is needed because parts of this program use kernel headers directly. If the kernel package is restored from sstate, the headers will not be available unless this dependency is explicit. This new behaviour was introduced in Yocto rev 46cdaf1c7bc.

OE-Core:<revision>

or

Poky:<revision>

and please, prefer OE-Core since it is the core.

Quoted 27 lines
---
 recipes-multimedia/gstreamer/gst-fsl-plugin.inc | 3 +++
 1 file changed, 3 insertions(+)
recipes-multimedia/gstreamer/gst-fsl-plugin.inc +3 -1
index b803808..edd8bd5 100644
@@ -13,6 +13,9 @@ DEPENDS_append_mx6dl = " imx-lib imx-vpu libfslvpuwrap"
 DEPENDS_append_mx6sl = " imx-lib"
 DEPENDS_append_mx6sx = " imx-lib"
 
+# Make sure kernel sources are available
+do_configure[depends] += "virtual/kernel:do_shared_workdir"
+
 LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
                     file://COPYING-LGPL-2;md5=5f30f0716dfdd0d91eb439ebec522ec2 \
                     file://COPYING-LGPL-2.1;md5=fbc093901857fcd118f065f900982c24"
--

1.9.1

--
_______________________________________________
meta-freescale mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#5 lore raw
In reply to Gary Thomas
Quoted 6 lines · Gary Thomas

When building in a tree mostly populated by sstate, the kernel headers may be missing. These patches add an explicit dependency which will get the kernel headers populated.

*** BLURB HERE ***

Quoted 8 lines

Gary Thomas (2):
fsl-alsa-plugins: Fix possible build error
gst-fsl-plugin: Fix possible build error

  recipes-multimedia/alsa/fsl-alsa-plugins_1.0.25.bb | 3 +++
  recipes-multimedia/gstreamer/gst-fsl-plugin.inc    | 3 +++
  2 files changed, 6 insertions(+)

Nice catch.
I believe the gstreamer1.0-plugins-imx recipe should also get this fix, because it needs to use kernel headers for IPU and PxP.