* [Buildroot] [PATCH v2] new package: bellagio
@ 2012-04-24 16:51 Qais Yousef
2012-04-27 20:43 ` Arnout Vandecappelle
2012-04-29 10:42 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Qais Yousef @ 2012-04-24 16:51 UTC (permalink / raw)
To: buildroot
Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
---
I haven't seen the v1 committed, so I am sending v2 here which
includes the following additions:
- Add a patch to fix a runtime error when using dynamicloader.
- Add a patch to fix when building in parallel.
- Set AUTORECONF to YES as we modify the Makefile.am
All patches have been sent to relevant upstream mailing list.
Hope this looks alright! :-)
package/multimedia/Config.in | 1 +
package/multimedia/bellagio/Config.in | 14 +++++++
.../bellagio-0.9.3-dynamicloader-linking.patch | 16 ++++++++
.../bellagio/bellagio-0.9.3-parallel-build.patch | 16 ++++++++
...-0.9.3-segfault-on-removeFromWaitResource.patch | 37 ++++++++++++++++++++
package/multimedia/bellagio/bellagio.mk | 12 ++++++
6 files changed, 96 insertions(+), 0 deletions(-)
create mode 100644 package/multimedia/bellagio/Config.in
create mode 100644 package/multimedia/bellagio/bellagio-0.9.3-dynamicloader-linking.patch
create mode 100644 package/multimedia/bellagio/bellagio-0.9.3-parallel-build.patch
create mode 100644 package/multimedia/bellagio/bellagio-0.9.3-segfault-on-removeFromWaitResource.patch
create mode 100644 package/multimedia/bellagio/bellagio.mk
diff --git a/package/multimedia/Config.in b/package/multimedia/Config.in
index a05d1d9..7e18bcb 100644
--- a/package/multimedia/Config.in
+++ b/package/multimedia/Config.in
@@ -2,6 +2,7 @@ menu "Audio and video libraries and applications"
source "package/multimedia/alsa-lib/Config.in"
source "package/multimedia/alsa-utils/Config.in"
source "package/multimedia/aumix/Config.in"
+source "package/multimedia/bellagio/Config.in"
source "package/multimedia/faad2/Config.in"
source "package/multimedia/flac/Config.in"
source "package/multimedia/ffmpeg/Config.in"
diff --git a/package/multimedia/bellagio/Config.in b/package/multimedia/bellagio/Config.in
new file mode 100644
index 0000000..907709f
--- /dev/null
+++ b/package/multimedia/bellagio/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_BELLAGIO
+ bool "bellagio"
+ help
+ Bellagio is an opensource implementation of the
+ OpenMAX IL API.
+
+ OpenMAX Integration Layer (IL) is a standard API
+ to access Multimedia Components on mobile platforms.
+ It has been defined by the Khronos group.
+ By means of the OpenMAX IL API, multimedia frameworks
+ can access hardware accelerators on platforms that
+ provide it.
+
+ http://omxil.sourceforge.net/
diff --git a/package/multimedia/bellagio/bellagio-0.9.3-dynamicloader-linking.patch b/package/multimedia/bellagio/bellagio-0.9.3-dynamicloader-linking.patch
new file mode 100644
index 0000000..5e4243d
--- /dev/null
+++ b/package/multimedia/bellagio/bellagio-0.9.3-dynamicloader-linking.patch
@@ -0,0 +1,16 @@
+When libomxdynamicloader.so is loaded, it complains that RM_Deinit can't be resolved.
+Link explicitly against omxil-bellagio so that ld.so can find the reference.
+
+Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
+
+--- bellagio-0.9.3/src/dynamic_loader/Makefile.am.old 2012-03-23 15:07:47.379021034 +0000
++++ bellagio-0.9.3/src/dynamic_loader/Makefile.am 2012-03-23 15:08:47.563034818 +0000
+@@ -3,7 +3,7 @@
+ omxdynamicloader_LTLIBRARIES = libomxdynamicloader.la
+ libomxdynamicloader_la_SOURCES = ste_dynamic_component_loader.c ste_dynamic_component_loader.h
+
+-libomxdynamicloader_la_LDFLAGS =
++libomxdynamicloader_la_LDFLAGS = -lomxil-bellagio -L$(abs_top_srcdir)/src/.libs
+ libomxdynamicloader_la_CFLAGS = -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src \
+ -I$(top_srcdir)/src/base \
diff --git a/package/multimedia/bellagio/bellagio-0.9.3-parallel-build.patch b/package/multimedia/bellagio/bellagio-0.9.3-parallel-build.patch
new file mode 100644
index 0000000..767bbeb
--- /dev/null
+++ b/package/multimedia/bellagio/bellagio-0.9.3-parallel-build.patch
@@ -0,0 +1,16 @@
+Fix dependency issue to allow parallel build
+
+Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
+
+Index: bellagio-0.9.3/src/Makefile.am
+===================================================================
+--- bellagio-0.9.3.orig/src/Makefile.am
++++ bellagio-0.9.3/src/Makefile.am
+@@ -8,6 +8,7 @@ omxregister_bellagio_SOURCES = omxregist
+ omxregister_bellagio_CFLAGS = -DOMXILCOMPONENTSPATH=\"$(plugindir)/\" \
+ -I$(top_srcdir)/include
+ omxregister_bellagio_LDFLAGS = -lomxil-bellagio -L$(builddir)
++omxregister_bellagio_DEPENDENCIES = libomxil-bellagio.la
+
+ lib_LTLIBRARIES = libomxil-bellagio.la
+ libomxil_bellagio_la_SOURCES = component_loader.h \
diff --git a/package/multimedia/bellagio/bellagio-0.9.3-segfault-on-removeFromWaitResource.patch b/package/multimedia/bellagio/bellagio-0.9.3-segfault-on-removeFromWaitResource.patch
new file mode 100644
index 0000000..f52a2c3
--- /dev/null
+++ b/package/multimedia/bellagio/bellagio-0.9.3-segfault-on-removeFromWaitResource.patch
@@ -0,0 +1,37 @@
+We always access globalComponentList[] at indexComponent=-1 which causes a
+segfault. Use i as the index instead.
+
+Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
+
+--- bellagio-0.9.3/src/omx_reference_resource_manager.c.old 2012-03-13 10:15:25.743940980 +0000
++++ bellagio-0.9.3/src/omx_reference_resource_manager.c 2012-03-13 10:18:02.201971009 +0000
+@@ -485,7 +485,6 @@
+ OMX_ERRORTYPE RM_removeFromWaitForResource(OMX_COMPONENTTYPE *openmaxStandComp) {
+ omx_base_component_PrivateType* omx_base_component_Private;
+ int i = 0;
+- int indexComponent = -1;
+
+ DEBUG(DEB_LEV_FUNCTION_NAME, "In %s\n", __func__);
+ omx_base_component_Private = (omx_base_component_PrivateType*)openmaxStandComp->pComponentPrivate;
+@@ -493,16 +492,13 @@
+ while(listOfcomponentRegistered[i].component_name != NULL ) {
+ if (!strcmp(listOfcomponentRegistered[i].component_name, omx_base_component_Private->name)) {
+ // found component in the list of the resource manager
+- removeElemFromList(&globalComponentList[indexComponent], openmaxStandComp);
+- break;
++ removeElemFromList(&globalComponentList[i], openmaxStandComp);
++ DEBUG(DEB_LEV_FUNCTION_NAME, "Out of %s\n", __func__);
++ return OMX_ErrorNone;
+ }
+ i++;
+ }
+- if (indexComponent <0) {
+- // No resource to be handled
+- DEBUG(DEB_LEV_ERR, "In %s No resource to be handled\n", __func__);
+- return OMX_ErrorNone;
+- }
+- DEBUG(DEB_LEV_FUNCTION_NAME, "Out of %s\n", __func__);
++ // No resource to be handled
++ DEBUG(DEB_LEV_ERR, "In %s No resource to be handled\n", __func__);
+ return OMX_ErrorNone;
+ }
diff --git a/package/multimedia/bellagio/bellagio.mk b/package/multimedia/bellagio/bellagio.mk
new file mode 100644
index 0000000..d013953
--- /dev/null
+++ b/package/multimedia/bellagio/bellagio.mk
@@ -0,0 +1,12 @@
+#############################################################
+#
+# bellagio
+#
+#############################################################
+BELLAGIO_VERSION = 0.9.3
+BELLAGIO_SOURCE = libomxil-bellagio-$(BELLAGIO_VERSION).tar.gz
+BELLAGIO_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/omxil
+BELLAGIO_AUTORECONF = YES
+BELLAGIO_INSTALL_STAGING = YES
+
+$(eval $(call AUTOTARGETS))
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* [Buildroot] [PATCH v2] new package: bellagio
2012-04-24 16:51 [Buildroot] [PATCH v2] new package: bellagio Qais Yousef
@ 2012-04-27 20:43 ` Arnout Vandecappelle
2012-04-29 10:42 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle @ 2012-04-27 20:43 UTC (permalink / raw)
To: buildroot
On Tuesday 24 April 2012 18:51:21 Qais Yousef wrote:
> Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Looks excellent.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v2] new package: bellagio
2012-04-24 16:51 [Buildroot] [PATCH v2] new package: bellagio Qais Yousef
2012-04-27 20:43 ` Arnout Vandecappelle
@ 2012-04-29 10:42 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2012-04-29 10:42 UTC (permalink / raw)
To: buildroot
>>>>> "Qais" == Qais Yousef <qais.yousef@imgtec.com> writes:
Qais> Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
Qais> ---
Qais> I haven't seen the v1 committed, so I am sending v2 here which
Qais> includes the following additions:
Qais> - Add a patch to fix a runtime error when using dynamicloader.
Qais> - Add a patch to fix when building in parallel.
Qais> - Set AUTORECONF to YES as we modify the Makefile.am
Qais> All patches have been sent to relevant upstream mailing list.
Qais> Hope this looks alright! :-)
Qais> diff --git a/package/multimedia/Config.in b/package/multimedia/Config.in
Qais> index a05d1d9..7e18bcb 100644
Qais> --- a/package/multimedia/Config.in
Qais> +++ b/package/multimedia/Config.in
Qais> @@ -2,6 +2,7 @@ menu "Audio and video libraries and applications"
Qais> source "package/multimedia/alsa-lib/Config.in"
Qais> source "package/multimedia/alsa-utils/Config.in"
Qais> source "package/multimedia/aumix/Config.in"
Qais> +source "package/multimedia/bellagio/Config.in"
Qais> source "package/multimedia/faad2/Config.in"
Qais> source "package/multimedia/flac/Config.in"
Qais> source "package/multimedia/ffmpeg/Config.in"
Qais> diff --git a/package/multimedia/bellagio/Config.in b/package/multimedia/bellagio/Config.in
Qais> new file mode 100644
Qais> index 0000000..907709f
Qais> --- /dev/null
Qais> +++ b/package/multimedia/bellagio/Config.in
Qais> @@ -0,0 +1,14 @@
Qais> +config BR2_PACKAGE_BELLAGIO
Qais> + bool "bellagio"
Qais> + help
Qais> + Bellagio is an opensource implementation of the
Qais> + OpenMAX IL API.
Bellagio is implemented in C++, so you need to add 'depends on
BR2_INSTALL_LIBSTDCPP'. The configure script also unconditionally adds
-Wall -Werror to CFLAGS, easily breaking the build.
Committed with those fixes, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-29 10:42 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-24 16:51 [Buildroot] [PATCH v2] new package: bellagio Qais Yousef
2012-04-27 20:43 ` Arnout Vandecappelle
2012-04-29 10:42 ` Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox