Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v2] package: add libpthsem
@ 2012-11-06  9:05 Gregory Hermant
  2012-11-06  9:05 ` [Buildroot] [PATCH v2] package: add bcusdk Gregory Hermant
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Gregory Hermant @ 2012-11-06  9:05 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
---
 package/Config.in                                  |    1 +
 package/libpthsem/Config.in                        |    9 ++++++
 ...bpthsem-2.0.8-fix-build-on-linux-3.x-host.patch |   28 +++++++++++++++++
 package/libpthsem/libpthsem.mk                     |   33 ++++++++++++++++++++
 4 files changed, 71 insertions(+)
 create mode 100644 package/libpthsem/Config.in
 create mode 100644 package/libpthsem/libpthsem-2.0.8-fix-build-on-linux-3.x-host.patch
 create mode 100644 package/libpthsem/libpthsem.mk

diff --git a/package/Config.in b/package/Config.in
index e531c41..941b458 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -496,6 +496,7 @@ source "package/gsl/Config.in"
 source "package/libglib2/Config.in"
 source "package/libical/Config.in"
 source "package/libnspr/Config.in"
+source "package/libpthsem/Config.in"
 source "package/libsigc/Config.in"
 source "package/libtpl/Config.in"
 source "package/liburcu/Config.in"
diff --git a/package/libpthsem/Config.in b/package/libpthsem/Config.in
new file mode 100644
index 0000000..f818ee0
--- /dev/null
+++ b/package/libpthsem/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_LIBPTHSEM
+	bool "libpthsem"
+	select BR2_PACKAGE_ARGP_STANDALONE
+	help
+	  GNU pth is a user mode multi threading library. pthsem is an extend
+	  version, with support for semaphores added.
+
+	  http://www.auto.tuwien.ac.at/~mkoegler/pth/
+
diff --git a/package/libpthsem/libpthsem-2.0.8-fix-build-on-linux-3.x-host.patch b/package/libpthsem/libpthsem-2.0.8-fix-build-on-linux-3.x-host.patch
new file mode 100644
index 0000000..21fff4e
--- /dev/null
+++ b/package/libpthsem/libpthsem-2.0.8-fix-build-on-linux-3.x-host.patch
@@ -0,0 +1,28 @@
+From 2d0450bfa3fb7003098da1a7fe24c3ae140912dc Mon Sep 17 00:00:00 2001
+From: Gregory Hermant <gregory.hermant@calao-systems.com>
+Date: Mon, 22 Oct 2012 15:11:53 +0200
+Subject: [PATCH] pthsem build on Linux 3.x host
+
+
+Signed-off-by: Michael Markstaller <mm@elabnet.de>
+Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
+---
+ acinclude.m4 |    2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/acinclude.m4 b/acinclude.m4
+index 03b42de..fea9bc8 100644
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -892,6 +892,8 @@ case $PLATFORM in
+         case "x`uname -r`" in
+ changequote(, )dnl
+             x2.[23456789]* ) ;;
++changequote(, )dnl
++            x3.* ) ;;
+ changequote([, ])
+             * ) braindead=yes ;;
+         esac
+-- 
+1.7.9.5
+
diff --git a/package/libpthsem/libpthsem.mk b/package/libpthsem/libpthsem.mk
new file mode 100644
index 0000000..4fc9095
--- /dev/null
+++ b/package/libpthsem/libpthsem.mk
@@ -0,0 +1,33 @@
+#############################################################
+#
+# libpthsem
+#
+#############################################################
+
+LIBPTHSEM_VERSION = 2.0.8
+LIBPTHSEM_SOURCE = pthsem_$(LIBPTHSEM_VERSION).tar.gz
+LIBPTHSEM_SITE = http://www.auto.tuwien.ac.at/~mkoegler/pth/
+LIBPTHSEM_LICENSE = LGPLv2.1+
+LIBPTHSEM_LICENSE_FILES = COPYING
+LIBPTHSEM_AUTORECONF = YES
+LIBPTHSEM_INSTALL_STAGING = YES
+LIBPTHSEM_DEPENDENCIES = argp-standalone
+
+define LIBPTHSEM_STAGING_LIBPTHSEM_CONFIG_FIXUP
+	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/pthsem-config
+	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/pthsem-config
+endef
+
+LIBPTHSEM_POST_INSTALL_STAGING_HOOKS += LIBPTHSEM_STAGING_LIBPTHSEM_CONFIG_FIXUP
+
+define LIBPTHSEM_REMOVE_CONFIG_SCRIPTS
+	$(RM) -f $(TARGET_DIR)/usr/bin/pthsem-config
+endef
+
+ifneq ($(BR2_HAVE_DEVFILES),y)
+LIBPTHSEM_POST_INSTALL_TARGET_HOOKS += LIBPTHSEM_REMOVE_CONFIG_SCRIPTS
+endif
+
+
+$(eval $(autotools-package))
+
-- 
1.7.9.5

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

* [Buildroot] [PATCH v2] package: add bcusdk
  2012-11-06  9:05 [Buildroot] [PATCH v2] package: add libpthsem Gregory Hermant
@ 2012-11-06  9:05 ` Gregory Hermant
  2012-11-08  8:34   ` Arnout Vandecappelle
  2012-11-06  9:05 ` [Buildroot] [PATCH v2] package: add linknx Gregory Hermant
  2012-11-07 21:51 ` [Buildroot] [PATCH v2] package: add libpthsem Arnout Vandecappelle
  2 siblings, 1 reply; 7+ messages in thread
From: Gregory Hermant @ 2012-11-06  9:05 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
---
 package/Config.in        |    1 +
 package/bcusdk/Config.in |   11 +++++++++++
 package/bcusdk/bcusdk.mk |   20 ++++++++++++++++++++
 3 files changed, 32 insertions(+)
 create mode 100644 package/bcusdk/Config.in
 create mode 100644 package/bcusdk/bcusdk.mk

diff --git a/package/Config.in b/package/Config.in
index 941b458..1a545ef 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -555,6 +555,7 @@ source "package/argus/Config.in"
 source "package/arptables/Config.in"
 source "package/avahi/Config.in"
 source "package/axel/Config.in"
+source "package/bcusdk/Config.in"
 source "package/bluez_utils/Config.in"
 source "package/boa/Config.in"
 source "package/bind/Config.in"
diff --git a/package/bcusdk/Config.in b/package/bcusdk/Config.in
new file mode 100644
index 0000000..c7b1b95
--- /dev/null
+++ b/package/bcusdk/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_BCUSDK
+	bool "bcusdk"
+	depends on BR2_INSTALL_LIBSTDCPP
+	select BR2_PACKAGE_LIBPTHSEM
+	help
+	  A free development environment for BCU1 and BCU2
+
+	  http://www.auto.tuwien.ac.at/~mkoegler/eib/
+
+comment "bcusdk requires a toolchain with C++ "
+	depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/bcusdk/bcusdk.mk b/package/bcusdk/bcusdk.mk
new file mode 100644
index 0000000..18e3673
--- /dev/null
+++ b/package/bcusdk/bcusdk.mk
@@ -0,0 +1,20 @@
+#############################################################
+#
+# bcusck
+#
+#############################################################
+
+BCUSDK_VERSION = 0.0.5
+BCUSDK_SOURCE = bcusdk_$(BCUSDK_VERSION).tar.gz
+BCUSDK_SITE = http://www.auto.tuwien.ac.at/~mkoegler/eib/
+BCUSDK_LICENSE = GPLv2+
+BCUSDK_LICENSE_FILES = COPYING
+BCUSDK_INSTALL_STAGING = YES
+BCUSDK_CONF_OPT =  --enable-onlyeibd --enable-ft12 --enable-pei16 \
+		 --enable-eibnetip --enable-eibnetipserver \
+		 --enable-eibnetiptunnel --without-pth-test \
+		 --with-pth=$(STAGING_DIR)/usr 
+
+BCUSDK_DEPENDENCIES = libpthsem
+
+$(eval $(autotools-package))
-- 
1.7.9.5

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

* [Buildroot] [PATCH v2] package: add linknx
  2012-11-06  9:05 [Buildroot] [PATCH v2] package: add libpthsem Gregory Hermant
  2012-11-06  9:05 ` [Buildroot] [PATCH v2] package: add bcusdk Gregory Hermant
@ 2012-11-06  9:05 ` Gregory Hermant
  2012-11-07 21:51 ` [Buildroot] [PATCH v2] package: add libpthsem Arnout Vandecappelle
  2 siblings, 0 replies; 7+ messages in thread
From: Gregory Hermant @ 2012-11-06  9:05 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Gregory Hermant <gregory.hermant@calao-systems.com>
---
 package/Config.in        |    1 +
 package/linknx/Config.in |    8 ++++++++
 package/linknx/linknx.mk |   18 ++++++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 100644 package/linknx/Config.in
 create mode 100644 package/linknx/linknx.mk

diff --git a/package/Config.in b/package/Config.in
index 1a545ef..36803bc 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -590,6 +590,7 @@ source "package/iptables/Config.in"
 source "package/iw/Config.in"
 source "package/kismet/Config.in"
 source "package/lighttpd/Config.in"
+source "package/linknx/Config.in"
 source "package/links/Config.in"
 source "package/linphone/Config.in"
 source "package/lrzsz/Config.in"
diff --git a/package/linknx/Config.in b/package/linknx/Config.in
new file mode 100644
index 0000000..db54171
--- /dev/null
+++ b/package/linknx/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LINKNX
+	bool "linknx"
+	select BR2_PACKAGE_LIBPTHSEM
+	help
+	  Linknx is an automation platform providing high level functionalities
+	  to EIB/KNX installation.
+	  
+	  http://linknx.sourceforge.net/
diff --git a/package/linknx/linknx.mk b/package/linknx/linknx.mk
new file mode 100644
index 0000000..8e38c21
--- /dev/null
+++ b/package/linknx/linknx.mk
@@ -0,0 +1,18 @@
+#############################################################
+#
+# linknx
+#
+#############################################################
+
+LINKNX_VERSION = 0.0.1.30
+LINKNX_SOURCE = linknx-${LINKNX_VERSION}.tar.gz
+LINKNX_SITE = http://downloads.sourceforge.net/project/linknx/linknx/linknx-${LINKNX_VERSION}
+LINKNX_LICENSE = GPLv2+
+LINKNX_LICENSE_FILES = COPYING
+LINKNX_INSTALL_STAGING = YES
+LINKNX_CONF_OPT = --without-lua --without-log4cpp --without-pth-test \
+		  --with-pth=$(STAGING_DIR)/usr
+
+LINKNX_DEPENDENCIES = libpthsem
+
+$(eval $(autotools-package))
-- 
1.7.9.5

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

* [Buildroot] [PATCH v2] package: add libpthsem
  2012-11-06  9:05 [Buildroot] [PATCH v2] package: add libpthsem Gregory Hermant
  2012-11-06  9:05 ` [Buildroot] [PATCH v2] package: add bcusdk Gregory Hermant
  2012-11-06  9:05 ` [Buildroot] [PATCH v2] package: add linknx Gregory Hermant
@ 2012-11-07 21:51 ` Arnout Vandecappelle
  2 siblings, 0 replies; 7+ messages in thread
From: Arnout Vandecappelle @ 2012-11-07 21:51 UTC (permalink / raw)
  To: buildroot

On 11/06/12 10:05, Gregory Hermant wrote:
> Signed-off-by: Gregory Hermant<gregory.hermant@calao-systems.com>
> +config BR2_PACKAGE_LIBPTHSEM
> +	bool "libpthsem"
> +	select BR2_PACKAGE_ARGP_STANDALONE
> +	help
> +	  GNU pth is a user mode multi threading library. pthsem is an extend
> +	  version, with support for semaphores added.

  If it is similar to pth, then it will probably not work on half our
architectures...

> +
> +	  http://www.auto.tuwien.ac.at/~mkoegler/pth/
[snip]
> diff --git a/package/libpthsem/libpthsem.mk b/package/libpthsem/libpthsem.mk
> new file mode 100644
> index 0000000..4fc9095
> --- /dev/null
> +++ b/package/libpthsem/libpthsem.mk
> @@ -0,0 +1,33 @@
> +#############################################################
> +#
> +# libpthsem
> +#
> +#############################################################
> +
> +LIBPTHSEM_VERSION = 2.0.8
> +LIBPTHSEM_SOURCE = pthsem_$(LIBPTHSEM_VERSION).tar.gz
> +LIBPTHSEM_SITE = http://www.auto.tuwien.ac.at/~mkoegler/pth/
> +LIBPTHSEM_LICENSE = LGPLv2.1+
> +LIBPTHSEM_LICENSE_FILES = COPYING
> +LIBPTHSEM_AUTORECONF = YES
> +LIBPTHSEM_INSTALL_STAGING = YES
> +LIBPTHSEM_DEPENDENCIES = argp-standalone
> +
> +define LIBPTHSEM_STAGING_LIBPTHSEM_CONFIG_FIXUP
> +	$(SED) "s,^prefix=.*,prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/pthsem-config
> +	$(SED) "s,^exec_prefix=.*,exec_prefix=\'$(STAGING_DIR)/usr\',g" $(STAGING_DIR)/usr/bin/pthsem-config

  The \' quotes are redundant here, no?  And isn't one $(SED) enough if you
leave out the ^ in the beginning?  Then prefix=.* will match both of them.

> +endef
> +
> +LIBPTHSEM_POST_INSTALL_STAGING_HOOKS += LIBPTHSEM_STAGING_LIBPTHSEM_CONFIG_FIXUP
> +
> +define LIBPTHSEM_REMOVE_CONFIG_SCRIPTS
> +	$(RM) -f $(TARGET_DIR)/usr/bin/pthsem-config
> +endef

  Good idea, I guess there are plenty of packages that should have this as well...


  Regards,
  Arnout

> +
> +ifneq ($(BR2_HAVE_DEVFILES),y)
> +LIBPTHSEM_POST_INSTALL_TARGET_HOOKS += LIBPTHSEM_REMOVE_CONFIG_SCRIPTS
> +endif
> +
> +
> +$(eval $(autotools-package))
> +

-- 
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] 7+ messages in thread

* [Buildroot] [PATCH v2] package: add bcusdk
  2012-11-06  9:05 ` [Buildroot] [PATCH v2] package: add bcusdk Gregory Hermant
@ 2012-11-08  8:34   ` Arnout Vandecappelle
  2012-11-08 10:52     ` Grégory Hermant
  0 siblings, 1 reply; 7+ messages in thread
From: Arnout Vandecappelle @ 2012-11-08  8:34 UTC (permalink / raw)
  To: buildroot

  BTW, we usually give such patches the title

bcusdk: new package

On 11/06/12 10:05, Gregory Hermant wrote:
> Signed-off-by: Gregory Hermant<gregory.hermant@calao-systems.com>
[snip]
> diff --git a/package/bcusdk/Config.in b/package/bcusdk/Config.in
> new file mode 100644
> index 0000000..c7b1b95
> --- /dev/null
> +++ b/package/bcusdk/Config.in
> @@ -0,0 +1,11 @@
> +config BR2_PACKAGE_BCUSDK
> +	bool "bcusdk"
> +	depends on BR2_INSTALL_LIBSTDCPP
> +	select BR2_PACKAGE_LIBPTHSEM

  ... and the architecture dependencies of libpthsem...

> +	help
> +	  A free development environment for BCU1 and BCU2

  It would be nice if there was a description of what BCU is.

  Otherwise, it looks good!


  Regards,
  Arnout

[snip]
-- 
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] 7+ messages in thread

* [Buildroot] [PATCH v2] package: add bcusdk
  2012-11-08  8:34   ` Arnout Vandecappelle
@ 2012-11-08 10:52     ` Grégory Hermant
  2012-11-08 11:05       ` Arnout Vandecappelle
  0 siblings, 1 reply; 7+ messages in thread
From: Grégory Hermant @ 2012-11-08 10:52 UTC (permalink / raw)
  To: buildroot

Le 08/11/2012 09:34, Arnout Vandecappelle a ?crit :
>> diff --git a/package/bcusdk/Config.in b/package/bcusdk/Config.in
>> new file mode 100644
>> index 0000000..c7b1b95
>> --- /dev/null
>> +++ b/package/bcusdk/Config.in
>> @@ -0,0 +1,11 @@
>> +config BR2_PACKAGE_BCUSDK
>> +    bool "bcusdk"
>> +    depends on BR2_INSTALL_LIBSTDCPP
>> +    select BR2_PACKAGE_LIBPTHSEM
> 
>  ... and the architecture dependencies of libpthsem...

Could you please enlighten me on this point ?

BR,
gregory



CALAO SYSTEMS <http://www.calao-systems.com/>


*CALAO SYSTEMS*
Le Magist?re II
334, rue des Vingt Toises
38950 Saint Martin le Vinoux
France
Phone : *+33 (0)4 76 56 38 05*
Fax     : *+33 (0)4 76 56 38 06*

Cette communication (y compris les pi?ces jointes) est r?serv?e ? l'usage exclusif du destinataire (des destinataires) et peut contenir des informations privil?gi?es, confidentielles, exempt?es de
divulgation selon la loi ou prot?g?es par les droits d'auteur. Si vous n'?tes pas un destinataire, toute utilisation, divulgation, distribution, reproduction, examen ou copie (totale ou partielle) est
non-autoris?e et peut ?tre ill?gale. Tout message ?lectronique est susceptible d'alt?ration et son int?grit? ne peut ?tre assur?e. CALAO SYSTEMS d?cline toute responsabilit? au titre de ce message
s'il a ?t? modifi? ou falsifi?. Si vous n'?tes pas destinataire de ce message, merci de le d?truire imm?diatement et d'avertir l'exp?diteur de l'erreur de distribution et de la destruction du message.
Merci.

This transmission (including any attachments) is intended solely for the use of the addressee(s) and may contain confidential information including trade secrets which are privileged, confidential,
exempt from disclosure under applicable law and/or subject to copyright. If you are not an intended recipient, any use, disclosure, distribution, reproduction, review or copying (either whole or
partial) is unauthorized and may be unlawful. E-mails are susceptible to alteration and their integrity cannot be guaranteed. CALAO SYSTEMS shall not be liable for this e-mail if modified or
falsified. If you are not the intended recipient of this e-mail, please delete it immediately from your system and notify the sender of the wrong delivery and the mail deletion. Thank you.

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

* [Buildroot] [PATCH v2] package: add bcusdk
  2012-11-08 10:52     ` Grégory Hermant
@ 2012-11-08 11:05       ` Arnout Vandecappelle
  0 siblings, 0 replies; 7+ messages in thread
From: Arnout Vandecappelle @ 2012-11-08 11:05 UTC (permalink / raw)
  To: buildroot

On 11/08/12 11:52, Gr?gory Hermant wrote:
>>> >>  +    select BR2_PACKAGE_LIBPTHSEM
>> >
>> >    ... and the architecture dependencies of libpthsem...
> Could you please enlighten me on this point ?

  As I wrote in the review of libpthsem, pth doesn't work on a number
of the architectures we support.  Since libpthsem is a fork of pth,
it's likely that it doesn't work in libpthsem either.  Therefore, it
is likely that libpthsem requires some
depends on !BR2_microblaze && !BR2_...
which have to be inherited by the packages that select libpthsem.

  (Thomas Petazzoni reported that pth doesn't work on arm-glibc, for
instance...).

  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] 7+ messages in thread

end of thread, other threads:[~2012-11-08 11:05 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-06  9:05 [Buildroot] [PATCH v2] package: add libpthsem Gregory Hermant
2012-11-06  9:05 ` [Buildroot] [PATCH v2] package: add bcusdk Gregory Hermant
2012-11-08  8:34   ` Arnout Vandecappelle
2012-11-08 10:52     ` Grégory Hermant
2012-11-08 11:05       ` Arnout Vandecappelle
2012-11-06  9:05 ` [Buildroot] [PATCH v2] package: add linknx Gregory Hermant
2012-11-07 21:51 ` [Buildroot] [PATCH v2] package: add libpthsem Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox