Skip to contentSkip to conversation

new package: orc

Buildroot New Sven Neumann 2 participants 8 messages Jul 14, 2011 – Aug 4, 2011

lore
Share & tools
lore
#0 lore raw

Here's an updated patch-set that adds orc, the liboil runtime compiler. This package replaces liboil functionality-wise, it's not a drop-in replacement. Newer versions of gstreamer plug-ins require orc for accelerated codepaths.

I've dropped some patches that added orc dependencies all over the place. It should be sufficient to make gst-plugins-base depend on orc (if it is selected). All other gst-plugins packages do already depend on gst-plugins-base.

#1 lore raw

PATCH 1/2 orc: new package

Orc - the Oil Runtime Compiler - is the successor of liboil. There's a runtime library that is installed in staging and target and there's a host version that can be built if orcc, the ORC compiler is needed at build time.

---
 package/Config.in     |    1 +
 package/orc/Config.in |    7 +++++++
 package/orc/orc.mk    |   13 +++++++++++++
 3 files changed, 21 insertions(+), 0 deletions(-)
 create mode 100644 package/orc/Config.in
 create mode 100644 package/orc/orc.mk
package/Config.in +1 -0
index fb5a570..1219a04 100644
@@ -345,6 +345,7 @@ source "package/libglib2/Config.in"
 source "package/libnspr/Config.in"
 source "package/liboil/Config.in"
 source "package/libsigc/Config.in"
+source "package/orc/Config.in"
 source "package/startup-notification/Config.in"
 endmenu
 
package/orc/Config.in new file +7 -0
new file mode 100644
index 0000000..3b3e059
@@ -0,0 +1,7 @@
+config BR2_PACKAGE_ORC
+	bool "orc"
+	help
+	  Orc is a library and set of tools for compiling and executing
+          very simple programs that operate on arrays of data.
+
+          http://code.entropywave.com/projects/orc/
package/orc/orc.mk new file +13 -0
new file mode 100644
index 0000000..6844bc9
@@ -0,0 +1,13 @@
+#############################################################
+#
+# orc
+#
+#############################################################
+ORC_VERSION = 0.4.14
+ORC_SOURCE = orc-$(ORC_VERSION).tar.gz
+ORC_SITE = http://code.entropywave.com/download/orc/
+ORC_AUTORECONF = YES
+ORC_INSTALL_STAGING = YES
+
+$(eval $(call AUTOTARGETS,package,orc))
+$(eval $(call AUTOTARGETS,package,orc,host))
Signature · 1 line
1.7.1
#2 lore raw

PATCH 1/2 orc: new package

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Sven> Orc - the Oil Runtime Compiler - is the successor of liboil. Sven> There's a runtime library that is installed in staging and target Sven> and there's a host version that can be built if orcc, the ORC Sven> compiler is needed at build time.

So presumably we should remove liboil? The only thing using it is swfdec, which afaik is long dead upstream.

Sven> Signed-off-by: Sven Neumann <[email protected]> Sven> ---

 Sven>  package/Config.in     |    1 +
 Sven>  package/orc/Config.in |    7 +++++++
 Sven>  package/orc/orc.mk    |   13 +++++++++++++
 Sven>  3 files changed, 21 insertions(+), 0 deletions(-)
 Sven>  create mode 100644 package/orc/Config.in
 Sven>  create mode 100644 package/orc/orc.mk

Sven> diff --git a/package/Config.in b/package/Config.in Sven> index fb5a570..1219a04 100644
Sven> --- a/package/Config.in
Sven> +++ b/package/Config.in
Sven> @@ -345,6 +345,7 @@ source "package/libglib2/Config.in"

 Sven>  source "package/libnspr/Config.in"
 Sven>  source "package/liboil/Config.in"
 Sven>  source "package/libsigc/Config.in"

Sven> +source "package/orc/Config.in"
Sven> source "package/startup-notification/Config.in" Sven> endmenu

Sven> diff --git a/package/orc/Config.in b/package/orc/Config.in Sven> new file mode 100644
Sven> index 0000000..3b3e059
Sven> --- /dev/null
Sven> +++ b/package/orc/Config.in
Sven> @@ -0,0 +1,7 @@
Sven> +config BR2_PACKAGE_ORC
Sven> + bool "orc"
Sven> + help
Sven> + Orc is a library and set of tools for compiling and executing
Sven> + very simple programs that operate on arrays of data.
Sven> +
Sven> + http://code.entropywave.com/projects/orc/

Help text indentation is <tab><space><space>

Sven> diff --git a/package/orc/orc.mk b/package/orc/orc.mk Sven> new file mode 100644
Sven> index 0000000..6844bc9
Sven> --- /dev/null
Sven> +++ b/package/orc/orc.mk
Sven> @@ -0,0 +1,13 @@
Sven> +############################################################# Sven> +#
Sven> +# orc
Sven> +#
Sven> +############################################################# Sven> +ORC_VERSION = 0.4.14
Sven> +ORC_SOURCE = orc-$(ORC_VERSION).tar.gz

You could drop this line as that's default.

Sven> +ORC_SITE = http://code.entropywave.com/download/orc/
Sven> +ORC_AUTORECONF = YES

Why? You don't patch any files.

Sven> +ORC_INSTALL_STAGING = YES
Sven> +
Sven> +$(eval $(call AUTOTARGETS,package,orc)) Sven> +$(eval $(call AUTOTARGETS,package,orc,host))

I prefer to only add host support when needed.

Should usr/bin/orcc get removed if !BR2_HAVE_DEVFILES or is it needed for anything?

I've committed with those changes (except for orcc, please advice) - Thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 1/2 orc: new package

Quoted 9 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Sven> Orc - the Oil Runtime Compiler - is the successor of liboil. Sven> There's a runtime library that is installed in staging and target Sven> and there's a host version that can be built if orcc, the ORC Sven> compiler is needed at build time.

So presumably we should remove liboil? The only thing using it is swfdec, which afaik is long dead upstream.

Agreed.

Quoted 2 lines

Should usr/bin/orcc get removed if !BR2_HAVE_DEVFILES or is it needed for anything?

Yes, that makes sense. There's also /usr/bin/orc-bugreport which should probably be removed as well.

Quoted 2 lines

I've committed with those changes (except for orcc, please advice) - Thanks.

I won't find time to do the proposed changes before next week as I am currently on vacation.

Sven

#4 lore raw

PATCH 1/2 orc: new package

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Hi,

Quoted 2 lines
Quoted 2 lines

Should usr/bin/orcc get removed if !BR2_HAVE_DEVFILES or is it needed for anything?

Sven> Yes, that makes sense. There's also /usr/bin/orc-bugreport which should Sven> probably be removed as well.

Quoted 2 lines
Quoted 2 lines

I've committed with those changes (except for orcc, please advice) - Thanks.

Sven> I won't find time to do the proposed changes before next week as I am Sven> currently on vacation.

No problem, I've fixed it now.

Signature · 1 line
Bye, Peter Korsgaard
#5 lore raw

PATCH 2/2 gst-plugins-base: depend on orc if it is enabled

In reply to Sven Neumann
---
 .../gst-plugins-base/gst-plugins-base.mk           |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
package/multimedia/gst-plugins-base/gst-plugins-base.mk +4 -0
index 79ced30..09e0729 100644
@@ -26,6 +26,10 @@ GST_PLUGINS_BASE_CONF_OPT = \
 
 GST_PLUGINS_BASE_DEPENDENCIES = gstreamer
 
+ifeq ($(BR2_PACKAGE_ORC),y)
+GST_PLUGINS_BASE_DEPENDENCIES += orc
+endif
+
 # alsa support needs pcm+mixer support, but configure fails to check for it
 ifeq ($(BR2_PACKAGE_ALSA_LIB)$(BR2_PACKAGE_ALSA_LIB_MIXER)$(BR2_PACKAGE_ALSA_LIB_PCM),yyy)
 GST_PLUGINS_BASE_DEPENDENCIES += alsa-lib
Signature · 1 line
1.7.1
#6 lore raw

PATCH 2/2 gst-plugins-base: depend on orc if it is enabled

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Sven> Signed-off-by: Sven Neumann <[email protected]> Sven> ---

 Sven>  .../gst-plugins-base/gst-plugins-base.mk           |    4 ++++

Sven> 1 files changed, 4 insertions(+), 0 deletions(-)

Sven> diff --git a/package/multimedia/gst-plugins-base/gst-plugins-base.mk b/package/multimedia/gst-plugins-base/gst-plugins-base.mk Sven> index 79ced30..09e0729 100644
Sven> --- a/package/multimedia/gst-plugins-base/gst-plugins-base.mk
Sven> +++ b/package/multimedia/gst-plugins-base/gst-plugins-base.mk
Sven> @@ -26,6 +26,10 @@ GST_PLUGINS_BASE_CONF_OPT = \

Sven> GST_PLUGINS_BASE_DEPENDENCIES = gstreamer

Sven> +ifeq ($(BR2_PACKAGE_ORC),y)
Sven> +GST_PLUGINS_BASE_DEPENDENCIES += orc
Sven> +endif

What does this buy us? Extra functionality or higher performance?

Signature · 1 line
Bye, Peter Korsgaard
#7 lore raw

PATCH 2/2 gst-plugins-base: depend on orc if it is enabled

Quoted 13 lines · Peter Korsgaard
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Sven" == Sven Neumann <[email protected]> writes:

Sven> Signed-off-by: Sven Neumann <[email protected]> Sven> ---

 Sven>  .../gst-plugins-base/gst-plugins-base.mk           |    4 ++++

Sven> 1 files changed, 4 insertions(+), 0 deletions(-)

Sven> diff --git a/package/multimedia/gst-plugins-base/gst-plugins-base.mk b/package/multimedia/gst-plugins-base/gst-plugins-base.mk Sven> index 79ced30..09e0729 100644
Sven> --- a/package/multimedia/gst-plugins-base/gst-plugins-base.mk
Sven> +++ b/package/multimedia/gst-plugins-base/gst-plugins-base.mk
Sven> @@ -26,6 +26,10 @@ GST_PLUGINS_BASE_CONF_OPT = \

Quoted 7 lines

Sven> GST_PLUGINS_BASE_DEPENDENCIES = gstreamer

Sven> +ifeq ($(BR2_PACKAGE_ORC),y)
Sven> +GST_PLUGINS_BASE_DEPENDENCIES += orc
Sven> +endif

What does this buy us? Extra functionality or higher performance?

Higher performance. It is highly recommended by the GStreamer developers to enable this for production systems.

Sven