Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] libcec: add the libcec for HDMI device Control
@ 2013-05-03 22:08 Spenser Gilliland
  2013-05-06 21:15 ` Thomas Petazzoni
  2013-05-07 20:46 ` [Buildroot] [PATCH v2 1/2] libcec: add " Spenser Gilliland
  0 siblings, 2 replies; 19+ messages in thread
From: Spenser Gilliland @ 2013-05-03 22:08 UTC (permalink / raw)
  To: buildroot

This package adds libcec for HDMI device control.  It enables Raspberry Pi support if the rpi-userland package is installed.

Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
---
 package/Config.in        |    1 +
 package/libcec/Config.in |    8 ++++++++
 package/libcec/libcec.mk |   21 +++++++++++++++++++++
 3 files changed, 30 insertions(+)
 create mode 100644 package/libcec/Config.in
 create mode 100644 package/libcec/libcec.mk

diff --git a/package/Config.in b/package/Config.in
index 06bcdef..06b9226 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -456,6 +456,7 @@ source "package/imx-lib/Config.in"
 source "package/lcdapi/Config.in"
 source "package/libaio/Config.in"
 source "package/libatasmart/Config.in"
+source "package/libcec/Config.in"
 source "package/libraw1394/Config.in"
 source "package/tslib/Config.in"
 source "package/libfreefare/Config.in"
diff --git a/package/libcec/Config.in b/package/libcec/Config.in
new file mode 100644
index 0000000..2104a2b
--- /dev/null
+++ b/package/libcec/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LIBCEC
+	bool "libCEC"
+	help
+	  libCEC allows you in combination with the right hardware to control your
+	  home theater devices with your TV remote control utilizing existing HDMI
+	  cabling.
+
+	  http://libcec.pulse-eight.com
diff --git a/package/libcec/libcec.mk b/package/libcec/libcec.mk
new file mode 100644
index 0000000..803e105
--- /dev/null
+++ b/package/libcec/libcec.mk
@@ -0,0 +1,21 @@
+#############################################################
+#
+# libcec
+#
+#############################################################
+
+LIBCEC_VERSION = libcec-2.1.1
+LIBCEC_SITE = git://github.com/Pulse-Eight/libcec.git
+LIBCEC_SITE_METHOD = git
+LIBCEC_LICENSE = GPLv2+
+LIBCEC_LICENSE_FILE = COPYING
+
+LIBCEC_AUTORECONF = YES
+LIBCEC_INSTALL_STAGING = YES
+
+ifeq ($(BR2_PACKAGE_RPI_FIRMWARE),y)
+LIBCEC_CONF_OPT = --enable-rpi \
+   --with-rpi-include-path=$(STAGING_DIR)/usr/include
+endif
+
+$(eval $(autotools-package))
-- 
1.7.9.5

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

* [Buildroot] [PATCH 1/1] libcec: add the libcec for HDMI device Control
  2013-05-03 22:08 [Buildroot] [PATCH 1/1] libcec: add the libcec for HDMI device Control Spenser Gilliland
@ 2013-05-06 21:15 ` Thomas Petazzoni
  2013-05-06 22:19   ` Peter Korsgaard
  2013-05-07 20:46 ` [Buildroot] [PATCH v2 1/2] libcec: add " Spenser Gilliland
  1 sibling, 1 reply; 19+ messages in thread
From: Thomas Petazzoni @ 2013-05-06 21:15 UTC (permalink / raw)
  To: buildroot

Dear Spenser Gilliland,

On Fri,  3 May 2013 17:08:07 -0500, Spenser Gilliland wrote:
> This package adds libcec for HDMI device control.  It enables Raspberry Pi support if the rpi-userland package is installed.

Commit messages should be wrapped at 80 columns.

> Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
> ---
>  package/Config.in        |    1 +
>  package/libcec/Config.in |    8 ++++++++
>  package/libcec/libcec.mk |   21 +++++++++++++++++++++
>  3 files changed, 30 insertions(+)
>  create mode 100644 package/libcec/Config.in
>  create mode 100644 package/libcec/libcec.mk
> 
> diff --git a/package/Config.in b/package/Config.in
> index 06bcdef..06b9226 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -456,6 +456,7 @@ source "package/imx-lib/Config.in"
>  source "package/lcdapi/Config.in"
>  source "package/libaio/Config.in"
>  source "package/libatasmart/Config.in"
> +source "package/libcec/Config.in"
>  source "package/libraw1394/Config.in"
>  source "package/tslib/Config.in"
>  source "package/libfreefare/Config.in"
> diff --git a/package/libcec/Config.in b/package/libcec/Config.in
> new file mode 100644
> index 0000000..2104a2b
> --- /dev/null
> +++ b/package/libcec/Config.in
> @@ -0,0 +1,8 @@
> +config BR2_PACKAGE_LIBCEC
> +	bool "libCEC"

The label should be in lower-case, i.e "libcec".

> +	help
> +	  libCEC allows you in combination with the right hardware to control your
> +	  home theater devices with your TV remote control utilizing existing HDMI
> +	  cabling.
> +
> +	  http://libcec.pulse-eight.com
> diff --git a/package/libcec/libcec.mk b/package/libcec/libcec.mk
> new file mode 100644
> index 0000000..803e105
> --- /dev/null
> +++ b/package/libcec/libcec.mk
> @@ -0,0 +1,21 @@
> +#############################################################
> +#
> +# libcec
> +#
> +#############################################################
> +
> +LIBCEC_VERSION = libcec-2.1.1
> +LIBCEC_SITE = git://github.com/Pulse-Eight/libcec.git
> +LIBCEC_SITE_METHOD = git

Apparently, there is a tag in the git repo, so github provides a
tarball. See
http://buildroot.org/downloads/manual/manual.html#github-download-url.

> +LIBCEC_LICENSE = GPLv2+
> +LIBCEC_LICENSE_FILE = COPYING
> +
> +LIBCEC_AUTORECONF = YES
> +LIBCEC_INSTALL_STAGING = YES
> +
> +ifeq ($(BR2_PACKAGE_RPI_FIRMWARE),y)
> +LIBCEC_CONF_OPT = --enable-rpi \
> +   --with-rpi-include-path=$(STAGING_DIR)/usr/include
> +endif

So the package builds and works fine without the RPi libraries, and
those are just adding some optional features?

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH 1/1] libcec: add the libcec for HDMI device Control
  2013-05-06 21:15 ` Thomas Petazzoni
@ 2013-05-06 22:19   ` Peter Korsgaard
  2013-05-06 22:51     ` Spenser Gilliland
  0 siblings, 1 reply; 19+ messages in thread
From: Peter Korsgaard @ 2013-05-06 22:19 UTC (permalink / raw)
  To: buildroot

>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:

Hi,

 >> +ifeq ($(BR2_PACKAGE_RPI_FIRMWARE),y)
 >> +LIBCEC_CONF_OPT = --enable-rpi \
 >> +   --with-rpi-include-path=$(STAGING_DIR)/usr/include
 >> +endif

 Thomas> So the package builds and works fine without the RPi libraries, and
 Thomas> those are just adding some optional features?

It afaik enables the driver to use the cec interface on the rpi next to
the driver for the pulse-eight usb dongle.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH 1/1] libcec: add the libcec for HDMI device Control
  2013-05-06 22:19   ` Peter Korsgaard
@ 2013-05-06 22:51     ` Spenser Gilliland
  0 siblings, 0 replies; 19+ messages in thread
From: Spenser Gilliland @ 2013-05-06 22:51 UTC (permalink / raw)
  To: buildroot

On Mon, May 6, 2013 at 5:19 PM, Peter Korsgaard <jacmet@uclibc.org> wrote:
>>>>>> "Thomas" == Thomas Petazzoni <thomas.petazzoni@free-electrons.com> writes:
>
> Hi,
>
>  >> +ifeq ($(BR2_PACKAGE_RPI_FIRMWARE),y)
>  >> +LIBCEC_CONF_OPT = --enable-rpi \
>  >> +   --with-rpi-include-path=$(STAGING_DIR)/usr/include
>  >> +endif
>
>  Thomas> So the package builds and works fine without the RPi libraries, and
>  Thomas> those are just adding some optional features?
>
> It afaik enables the driver to use the cec interface on the rpi next to
> the driver for the pulse-eight usb dongle.

Thomas: Peter's explanation is correct.
Thomas: I am addressing the above issues in a new patch.

Spenser

--
Spenser Gilliland
Computer Engineer
Doctoral Candidate

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

* [Buildroot] [PATCH v2 1/2] libcec: add libcec for HDMI device Control
  2013-05-03 22:08 [Buildroot] [PATCH 1/1] libcec: add the libcec for HDMI device Control Spenser Gilliland
  2013-05-06 21:15 ` Thomas Petazzoni
@ 2013-05-07 20:46 ` Spenser Gilliland
  2013-05-07 20:47   ` [Buildroot] [PATCH v2 2/2] lockdev: add lockdev Spenser Gilliland
                     ` (2 more replies)
  1 sibling, 3 replies; 19+ messages in thread
From: Spenser Gilliland @ 2013-05-07 20:46 UTC (permalink / raw)
  To: buildroot

This patch adds libcec for HDMI device control.  It enables Raspberry Pi
support if the rpi-userland package is installed.

Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
---
 package/Config.in        |    1 +
 package/libcec/Config.in |    8 ++++++++
 package/libcec/libcec.mk |   30 ++++++++++++++++++++++++++++++
 3 files changed, 39 insertions(+)
 create mode 100644 package/libcec/Config.in
 create mode 100644 package/libcec/libcec.mk

diff --git a/package/Config.in b/package/Config.in
index 81a3f76..23af3f5 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -463,6 +463,7 @@ source "package/imx-lib/Config.in"
 source "package/lcdapi/Config.in"
 source "package/libaio/Config.in"
 source "package/libatasmart/Config.in"
+source "package/libcec/Config.in"
 source "package/libraw1394/Config.in"
 source "package/tslib/Config.in"
 source "package/libfreefare/Config.in"
diff --git a/package/libcec/Config.in b/package/libcec/Config.in
new file mode 100644
index 0000000..1cacd4a
--- /dev/null
+++ b/package/libcec/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LIBCEC
+	bool "libcec"
+	help
+	  libcec allows you in combination with the right hardware to control your
+	  home theater devices with your TV remote control utilizing existing HDMI
+	  cabling.
+
+	  http://libcec.pulse-eight.com
diff --git a/package/libcec/libcec.mk b/package/libcec/libcec.mk
new file mode 100644
index 0000000..cc2fbed
--- /dev/null
+++ b/package/libcec/libcec.mk
@@ -0,0 +1,30 @@
+#############################################################
+#
+# libcec
+#
+#############################################################
+
+LIBCEC_VERSION = libcec-2.1.1
+LIBCEC_SITE = http://github.com/Pulse-Eight/libcec/tarball/$(LIBCEC_VERSION)
+LIBCEC_LICENSE = GPLv2+
+LIBCEC_LICENSE_FILE = COPYING
+
+LIBCEC_AUTORECONF = YES
+LIBCEC_INSTALL_STAGING = YES
+LIBCEC_DEPENDENCIES = host-pkgconf
+
+ifeq ($(BR2_PACKAGE_LOCKDEV),y)
+LIBCEC_DEPENDENCIES += lockdev
+endif
+
+ifeq ($(BR2_PACKAGE_UDEV),y)
+LIBCEC_DEPENDENCIES += udev
+endif
+
+ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
+LIBCEC_CONF_OPT = --enable-rpi \
+   --with-rpi-include-path=$(STAGING_DIR)/usr/include
+LIBCEC_DEPENDENCIES += rpi-userland
+endif
+
+$(eval $(autotools-package))
-- 
1.7.9.5

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

* [Buildroot] [PATCH v2 2/2] lockdev: add lockdev
  2013-05-07 20:46 ` [Buildroot] [PATCH v2 1/2] libcec: add " Spenser Gilliland
@ 2013-05-07 20:47   ` Spenser Gilliland
  2013-05-07 21:05     ` Yann E. MORIN
  2013-05-07 20:59   ` [Buildroot] [PATCH v2 1/2] libcec: add libcec for HDMI device Control Yann E. MORIN
  2013-05-07 22:02   ` [Buildroot] [PATCH v3 1/2] lockdev: add lockdev Spenser Gilliland
  2 siblings, 1 reply; 19+ messages in thread
From: Spenser Gilliland @ 2013-05-07 20:47 UTC (permalink / raw)
  To: buildroot

Add lockdev a package for locking devices.

Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
---
 package/Config.in          |    1 +
 package/lockdev/Config.in  |    4 ++++
 package/lockdev/lockdev.mk |   30 ++++++++++++++++++++++++++++++
 3 files changed, 35 insertions(+)
 create mode 100644 package/lockdev/Config.in
 create mode 100644 package/lockdev/lockdev.mk

diff --git a/package/Config.in b/package/Config.in
index 23af3f5..8498609 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -255,6 +255,7 @@ source "package/iostat/Config.in"
 source "package/irda-utils/Config.in"
 source "package/kbd/Config.in"
 source "package/lcdproc/Config.in"
+source "package/lockdev/Config.in"
 source "package/lm-sensors/Config.in"
 source "package/lshw/Config.in"
 source "package/lsuio/Config.in"
diff --git a/package/lockdev/Config.in b/package/lockdev/Config.in
new file mode 100644
index 0000000..2bd75d1
--- /dev/null
+++ b/package/lockdev/Config.in
@@ -0,0 +1,4 @@
+config BR2_PACKAGE_LOCKDEV
+	bool "lockdev"
+	help
+	  library for locking devices
diff --git a/package/lockdev/lockdev.mk b/package/lockdev/lockdev.mk
new file mode 100644
index 0000000..10a5929
--- /dev/null
+++ b/package/lockdev/lockdev.mk
@@ -0,0 +1,30 @@
+#############################################################
+#
+# lockdev
+#
+#############################################################
+
+LOCKDEV_VERSION = 1.0.3
+LOCKDEV_SOURCE = lockdev_$(LOCKDEV_VERSION).orig.tar.gz
+LOCKDEV_SITE = http://ftp.debian.org/debian/pool/main/l/lockdev/
+LOCKDEV_LICENSE = LGPLv2.1
+LOCKDEV_LICENSE_FILE = LICENSE
+LOCKDEV_INSTALL_STAGING = YES
+
+define LOCKDEV_BUILD_CMDS
+	$(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) static shared
+endef
+
+define LOCKDEV_INSTALL_STAGING_CMDS
+	$(MAKE1) basedir=$(STAGING_DIR)/usr -C $(@D) install
+	ln -sf $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so
+	ln -sf $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.1
+endef
+
+define LOCKDEV_INSTALL_TARGET_CMDS
+	$(MAKE1) basedir=$(TARGET_DIR)/usr -C $(@D) install
+	ln -sf $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so
+	ln -sf $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so.1
+endef
+
+$(eval $(generic-package))
-- 
1.7.9.5

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

* [Buildroot] [PATCH v2 1/2] libcec: add libcec for HDMI device Control
  2013-05-07 20:46 ` [Buildroot] [PATCH v2 1/2] libcec: add " Spenser Gilliland
  2013-05-07 20:47   ` [Buildroot] [PATCH v2 2/2] lockdev: add lockdev Spenser Gilliland
@ 2013-05-07 20:59   ` Yann E. MORIN
  2013-05-07 21:49     ` Spenser Gilliland
  2013-05-07 22:02   ` [Buildroot] [PATCH v3 1/2] lockdev: add lockdev Spenser Gilliland
  2 siblings, 1 reply; 19+ messages in thread
From: Yann E. MORIN @ 2013-05-07 20:59 UTC (permalink / raw)
  To: buildroot

Spenser, All,

On Tue, May 07, 2013 at 03:46:59PM -0500, Spenser Gilliland wrote:
> This patch adds libcec for HDMI device control.  It enables Raspberry Pi
> support if the rpi-userland package is installed.
> 
> Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
[--SNIP--]
> diff --git a/package/libcec/libcec.mk b/package/libcec/libcec.mk
> new file mode 100644
> index 0000000..cc2fbed
> --- /dev/null
> +++ b/package/libcec/libcec.mk
> @@ -0,0 +1,30 @@
> +#############################################################
> +#
> +# libcec
> +#
> +#############################################################
> +
> +LIBCEC_VERSION = libcec-2.1.1
> +LIBCEC_SITE = http://github.com/Pulse-Eight/libcec/tarball/$(LIBCEC_VERSION)
> +LIBCEC_LICENSE = GPLv2+
> +LIBCEC_LICENSE_FILE = COPYING
> +
> +LIBCEC_AUTORECONF = YES

I guess we need autoreconf because we get an extract of the repository,
right? Please add a little note about it, it is not obvious at first
sight.

> +LIBCEC_INSTALL_STAGING = YES
> +LIBCEC_DEPENDENCIES = host-pkgconf
> +
> +ifeq ($(BR2_PACKAGE_LOCKDEV),y)

lockdev is introduced only in a subsequent patch. This should have been
reversed: lockdev first, then libcec.

> +LIBCEC_DEPENDENCIES += lockdev
> +endif
> +
> +ifeq ($(BR2_PACKAGE_UDEV),y)
> +LIBCEC_DEPENDENCIES += udev
> +endif
> +
> +ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
> +LIBCEC_CONF_OPT = --enable-rpi \
> +   --with-rpi-include-path=$(STAGING_DIR)/usr/include
> +LIBCEC_DEPENDENCIES += rpi-userland
> +endif

Although not strictly required, I'd like an explicit --disable-rpi in
the case rpi-userland is not available.

(In my twisted mind, I was imediately thinking of using Buildroot on an
RPi that does have rpi-userland, but would not want it in my generated
image, so would not like to pick the system one. Yes, I'm weird.:-] )

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH v2 2/2] lockdev: add lockdev
  2013-05-07 20:47   ` [Buildroot] [PATCH v2 2/2] lockdev: add lockdev Spenser Gilliland
@ 2013-05-07 21:05     ` Yann E. MORIN
  2013-05-07 21:43       ` Spenser Gilliland
  2013-05-08  6:01       ` Arnout Vandecappelle
  0 siblings, 2 replies; 19+ messages in thread
From: Yann E. MORIN @ 2013-05-07 21:05 UTC (permalink / raw)
  To: buildroot

Spenser, All,

On Tue, May 07, 2013 at 03:47:00PM -0500, Spenser Gilliland wrote:
> Add lockdev a package for locking devices.
> 
> Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
[--SNIP--]
> diff --git a/package/Config.in b/package/Config.in
> index 23af3f5..8498609 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -255,6 +255,7 @@ source "package/iostat/Config.in"
>  source "package/irda-utils/Config.in"
>  source "package/kbd/Config.in"
>  source "package/lcdproc/Config.in"
> +source "package/lockdev/Config.in"
>  source "package/lm-sensors/Config.in"

Alphabetical order, please ('o' comes after 'm', as far as I know! ;-) )

>  source "package/lshw/Config.in"
>  source "package/lsuio/Config.in"
[--SNIP--]
> diff --git a/package/lockdev/lockdev.mk b/package/lockdev/lockdev.mk
> new file mode 100644
> index 0000000..10a5929
> --- /dev/null
> +++ b/package/lockdev/lockdev.mk
> @@ -0,0 +1,30 @@
> +#############################################################
> +#
> +# lockdev
> +#
> +#############################################################
> +
> +LOCKDEV_VERSION = 1.0.3
> +LOCKDEV_SOURCE = lockdev_$(LOCKDEV_VERSION).orig.tar.gz
> +LOCKDEV_SITE = http://ftp.debian.org/debian/pool/main/l/lockdev/
> +LOCKDEV_LICENSE = LGPLv2.1
> +LOCKDEV_LICENSE_FILE = LICENSE
> +LOCKDEV_INSTALL_STAGING = YES
> +
> +define LOCKDEV_BUILD_CMDS
> +	$(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) static shared
> +endef
> +
> +define LOCKDEV_INSTALL_STAGING_CMDS
> +	$(MAKE1) basedir=$(STAGING_DIR)/usr -C $(@D) install
> +	ln -sf $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so
> +	ln -sf $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.1
> +endef
> +
> +define LOCKDEV_INSTALL_TARGET_CMDS
> +	$(MAKE1) basedir=$(TARGET_DIR)/usr -C $(@D) install
> +	ln -sf $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so
> +	ln -sf $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so.1

What is the SONAME of the library? You only need to install the library
to a file named as the SONAME, not any other symlink is required.

But of course, if "development files on target" are selected you need
the .so symlink (but devel-files-on-target this is deprecated now).

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

* [Buildroot] [PATCH v2 2/2] lockdev: add lockdev
  2013-05-07 21:05     ` Yann E. MORIN
@ 2013-05-07 21:43       ` Spenser Gilliland
  2013-05-08  6:01       ` Arnout Vandecappelle
  1 sibling, 0 replies; 19+ messages in thread
From: Spenser Gilliland @ 2013-05-07 21:43 UTC (permalink / raw)
  To: buildroot

Yann,

> Alphabetical order, please ('o' comes after 'm', as far as I know! ;-) )

Fixed. Will resubmit.

> What is the SONAME of the library? You only need to install the library
> to a file named as the SONAME, not any other symlink is required.
>
> But of course, if "development files on target" are selected you need
> the .so symlink (but devel-files-on-target this is deprecated now).

$ objdump liblockdev.1.0.3.so -p | grep SONAME
  SONAME               liblockdev.so.1

So, just install liblockdev.so.1 .  This needs to be changed in the
TARGET_CMDS not the STAGING_CMDS, correct? IE.

+define LOCKDEV_INSTALL_TARGET_CMDS
+     $(MAKE1) basedir=$(TARGET_DIR)/usr -C $(@D) install
+     ln -sf $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so
$(TARGET_DIR)/usr/lib/liblockdev.so.1

Thanks, I'll shoot another patch out soon.

Spenser

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

* [Buildroot] [PATCH v2 1/2] libcec: add libcec for HDMI device Control
  2013-05-07 20:59   ` [Buildroot] [PATCH v2 1/2] libcec: add libcec for HDMI device Control Yann E. MORIN
@ 2013-05-07 21:49     ` Spenser Gilliland
  0 siblings, 0 replies; 19+ messages in thread
From: Spenser Gilliland @ 2013-05-07 21:49 UTC (permalink / raw)
  To: buildroot

On Tue, May 7, 2013 at 3:59 PM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> Spenser, All,
>
> On Tue, May 07, 2013 at 03:46:59PM -0500, Spenser Gilliland wrote:
>> This patch adds libcec for HDMI device control.  It enables Raspberry Pi
>> support if the rpi-userland package is installed.
>>
>> Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
> [--SNIP--]
>> diff --git a/package/libcec/libcec.mk b/package/libcec/libcec.mk
>> new file mode 100644
>> index 0000000..cc2fbed
>> --- /dev/null
>> +++ b/package/libcec/libcec.mk
>> @@ -0,0 +1,30 @@
>> +#############################################################
>> +#
>> +# libcec
>> +#
>> +#############################################################
>> +
>> +LIBCEC_VERSION = libcec-2.1.1
>> +LIBCEC_SITE = http://github.com/Pulse-Eight/libcec/tarball/$(LIBCEC_VERSION)
>> +LIBCEC_LICENSE = GPLv2+
>> +LIBCEC_LICENSE_FILE = COPYING
>> +
>> +LIBCEC_AUTORECONF = YES
>
> I guess we need autoreconf because we get an extract of the repository,
> right? Please add a little note about it, it is not obvious at first
> sight.
>
>> +LIBCEC_INSTALL_STAGING = YES
>> +LIBCEC_DEPENDENCIES = host-pkgconf
>> +
>> +ifeq ($(BR2_PACKAGE_LOCKDEV),y)
>
> lockdev is introduced only in a subsequent patch. This should have been
> reversed: lockdev first, then libcec.

Will fix.

>> +LIBCEC_DEPENDENCIES += lockdev
>> +endif
>> +
>> +ifeq ($(BR2_PACKAGE_UDEV),y)
>> +LIBCEC_DEPENDENCIES += udev
>> +endif
>> +
>> +ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
>> +LIBCEC_CONF_OPT = --enable-rpi \
>> +   --with-rpi-include-path=$(STAGING_DIR)/usr/include
>> +LIBCEC_DEPENDENCIES += rpi-userland
>> +endif
>
> Although not strictly required, I'd like an explicit --disable-rpi in
> the case rpi-userland is not available.

I'll add it to the next patch.

> (In my twisted mind, I was imediately thinking of using Buildroot on an
> RPi that does have rpi-userland, but would not want it in my generated
> image, so would not like to pick the system one. Yes, I'm weird.:-] )

if by it you mean libcec. Then, libcec should be able to be used with
USB adapters and RPI at the same time.  I can test this use case as I
have both an RPI and USB-CEC dongle.  I'll let you know soon.

>
> Regards,
> Yann E. MORIN.
>
> --
> .-----------------.--------------------.------------------.--------------------.
> |  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
> | +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
> | +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
> '------------------------------^-------^------------------^--------------------'



--
Spenser Gilliland
Computer Engineer
Doctoral Candidate

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

* [Buildroot] [PATCH v3 1/2] lockdev: add lockdev
  2013-05-07 20:46 ` [Buildroot] [PATCH v2 1/2] libcec: add " Spenser Gilliland
  2013-05-07 20:47   ` [Buildroot] [PATCH v2 2/2] lockdev: add lockdev Spenser Gilliland
  2013-05-07 20:59   ` [Buildroot] [PATCH v2 1/2] libcec: add libcec for HDMI device Control Yann E. MORIN
@ 2013-05-07 22:02   ` Spenser Gilliland
  2013-05-07 22:02     ` [Buildroot] [PATCH v3 2/2] libcec: add libcec for HDMI device Control Spenser Gilliland
                       ` (2 more replies)
  2 siblings, 3 replies; 19+ messages in thread
From: Spenser Gilliland @ 2013-05-07 22:02 UTC (permalink / raw)
  To: buildroot

Add lockdev a package for locking devices.

Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
---
 package/Config.in          |    1 +
 package/lockdev/Config.in  |    4 ++++
 package/lockdev/lockdev.mk |   29 +++++++++++++++++++++++++++++
 3 files changed, 34 insertions(+)
 create mode 100644 package/lockdev/Config.in
 create mode 100644 package/lockdev/lockdev.mk

diff --git a/package/Config.in b/package/Config.in
index 81a3f76..05e2d45 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -256,6 +256,7 @@ source "package/irda-utils/Config.in"
 source "package/kbd/Config.in"
 source "package/lcdproc/Config.in"
 source "package/lm-sensors/Config.in"
+source "package/lockdev/Config.in"
 source "package/lshw/Config.in"
 source "package/lsuio/Config.in"
 source "package/lvm2/Config.in"
diff --git a/package/lockdev/Config.in b/package/lockdev/Config.in
new file mode 100644
index 0000000..2bd75d1
--- /dev/null
+++ b/package/lockdev/Config.in
@@ -0,0 +1,4 @@
+config BR2_PACKAGE_LOCKDEV
+	bool "lockdev"
+	help
+	  library for locking devices
diff --git a/package/lockdev/lockdev.mk b/package/lockdev/lockdev.mk
new file mode 100644
index 0000000..c6a99a8
--- /dev/null
+++ b/package/lockdev/lockdev.mk
@@ -0,0 +1,29 @@
+#############################################################
+#
+# lockdev
+#
+#############################################################
+
+LOCKDEV_VERSION = 1.0.3
+LOCKDEV_SOURCE = lockdev_$(LOCKDEV_VERSION).orig.tar.gz
+LOCKDEV_SITE = http://ftp.debian.org/debian/pool/main/l/lockdev/
+LOCKDEV_LICENSE = LGPLv2.1
+LOCKDEV_LICENSE_FILE = LICENSE
+LOCKDEV_INSTALL_STAGING = YES
+
+define LOCKDEV_BUILD_CMDS
+	$(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) static shared
+endef
+
+define LOCKDEV_INSTALL_STAGING_CMDS
+	$(MAKE1) basedir=$(STAGING_DIR)/usr -C $(@D) install
+	ln -sf $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so
+	ln -sf $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.1
+endef
+
+define LOCKDEV_INSTALL_TARGET_CMDS
+	$(MAKE1) basedir=$(TARGET_DIR)/usr -C $(@D) install
+	ln -sf $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so.1
+endef
+
+$(eval $(generic-package))
-- 
1.7.9.5

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

* [Buildroot] [PATCH v3 2/2] libcec: add libcec for HDMI device Control
  2013-05-07 22:02   ` [Buildroot] [PATCH v3 1/2] lockdev: add lockdev Spenser Gilliland
@ 2013-05-07 22:02     ` Spenser Gilliland
  2013-05-07 22:55       ` Spenser Gilliland
  2013-05-08 14:41     ` [Buildroot] [PATCH v3 1/2] lockdev: add lockdev Thomas Petazzoni
  2013-05-08 18:55     ` [Buildroot] [PATCH v4 " Spenser Gilliland
  2 siblings, 1 reply; 19+ messages in thread
From: Spenser Gilliland @ 2013-05-07 22:02 UTC (permalink / raw)
  To: buildroot

This patch adds libcec for HDMI device control.  It enables Raspberry Pi
support if the rpi-userland package is installed.

Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
---
 package/Config.in        |    1 +
 package/libcec/Config.in |    8 ++++++++
 package/libcec/libcec.mk |   32 ++++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+)
 create mode 100644 package/libcec/Config.in
 create mode 100644 package/libcec/libcec.mk

diff --git a/package/Config.in b/package/Config.in
index 05e2d45..df1e88e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -464,6 +464,7 @@ source "package/imx-lib/Config.in"
 source "package/lcdapi/Config.in"
 source "package/libaio/Config.in"
 source "package/libatasmart/Config.in"
+source "package/libcec/Config.in"
 source "package/libraw1394/Config.in"
 source "package/tslib/Config.in"
 source "package/libfreefare/Config.in"
diff --git a/package/libcec/Config.in b/package/libcec/Config.in
new file mode 100644
index 0000000..1cacd4a
--- /dev/null
+++ b/package/libcec/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LIBCEC
+	bool "libcec"
+	help
+	  libcec allows you in combination with the right hardware to control your
+	  home theater devices with your TV remote control utilizing existing HDMI
+	  cabling.
+
+	  http://libcec.pulse-eight.com
diff --git a/package/libcec/libcec.mk b/package/libcec/libcec.mk
new file mode 100644
index 0000000..3ca1338
--- /dev/null
+++ b/package/libcec/libcec.mk
@@ -0,0 +1,32 @@
+#############################################################
+#
+# libcec
+#
+#############################################################
+
+LIBCEC_VERSION = libcec-2.1.1
+LIBCEC_SITE = http://github.com/Pulse-Eight/libcec/tarball/$(LIBCEC_VERSION)
+LIBCEC_LICENSE = GPLv2+
+LIBCEC_LICENSE_FILE = COPYING
+
+LIBCEC_AUTORECONF = YES
+LIBCEC_INSTALL_STAGING = YES
+LIBCEC_DEPENDENCIES = host-pkgconf
+
+ifeq ($(BR2_PACKAGE_LOCKDEV),y)
+LIBCEC_DEPENDENCIES += lockdev
+endif
+
+ifeq ($(BR2_PACKAGE_UDEV),y)
+LIBCEC_DEPENDENCIES += udev
+endif
+
+ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
+LIBCEC_CONF_OPT = --enable-rpi \
+   --with-rpi-include-path=$(STAGING_DIR)/usr/include
+LIBCEC_DEPENDENCIES += rpi-userland
+else
+LIBCEC_CONF_OPT = --disable-rpi
+endif
+
+$(eval $(autotools-package))
-- 
1.7.9.5

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

* [Buildroot] [PATCH v3 2/2] libcec: add libcec for HDMI device Control
  2013-05-07 22:02     ` [Buildroot] [PATCH v3 2/2] libcec: add libcec for HDMI device Control Spenser Gilliland
@ 2013-05-07 22:55       ` Spenser Gilliland
  0 siblings, 0 replies; 19+ messages in thread
From: Spenser Gilliland @ 2013-05-07 22:55 UTC (permalink / raw)
  To: buildroot

here's a snippet which shows both a RPI and USB-CEC adapter operating
concurrently.

# modprobe cdc-acm
# cec-client -l
Found devices: 2

device:              1
com port:            /dev/ttyACM0
vendor id:           2548
product id:          1001
firmware version:    2
firmware build date: Fri Jul 20 23:58:27 2012 +0000
type:                Pulse-Eight USB-CEC Adapter

device:              2
com port:            RPI
vendor id:           2708
product id:          1001
firmware version:    1
type:                Raspberry Pi

Spenser

On Tue, May 7, 2013 at 5:02 PM, Spenser Gilliland
<spenser@gillilanding.com> wrote:
> This patch adds libcec for HDMI device control.  It enables Raspberry Pi
> support if the rpi-userland package is installed.
>
> Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
> ---
>  package/Config.in        |    1 +
>  package/libcec/Config.in |    8 ++++++++
>  package/libcec/libcec.mk |   32 ++++++++++++++++++++++++++++++++
>  3 files changed, 41 insertions(+)
>  create mode 100644 package/libcec/Config.in
>  create mode 100644 package/libcec/libcec.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 05e2d45..df1e88e 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -464,6 +464,7 @@ source "package/imx-lib/Config.in"
>  source "package/lcdapi/Config.in"
>  source "package/libaio/Config.in"
>  source "package/libatasmart/Config.in"
> +source "package/libcec/Config.in"
>  source "package/libraw1394/Config.in"
>  source "package/tslib/Config.in"
>  source "package/libfreefare/Config.in"
> diff --git a/package/libcec/Config.in b/package/libcec/Config.in
> new file mode 100644
> index 0000000..1cacd4a
> --- /dev/null
> +++ b/package/libcec/Config.in
> @@ -0,0 +1,8 @@
> +config BR2_PACKAGE_LIBCEC
> +       bool "libcec"
> +       help
> +         libcec allows you in combination with the right hardware to control your
> +         home theater devices with your TV remote control utilizing existing HDMI
> +         cabling.
> +
> +         http://libcec.pulse-eight.com
> diff --git a/package/libcec/libcec.mk b/package/libcec/libcec.mk
> new file mode 100644
> index 0000000..3ca1338
> --- /dev/null
> +++ b/package/libcec/libcec.mk
> @@ -0,0 +1,32 @@
> +#############################################################
> +#
> +# libcec
> +#
> +#############################################################
> +
> +LIBCEC_VERSION = libcec-2.1.1
> +LIBCEC_SITE = http://github.com/Pulse-Eight/libcec/tarball/$(LIBCEC_VERSION)
> +LIBCEC_LICENSE = GPLv2+
> +LIBCEC_LICENSE_FILE = COPYING
> +
> +LIBCEC_AUTORECONF = YES
> +LIBCEC_INSTALL_STAGING = YES
> +LIBCEC_DEPENDENCIES = host-pkgconf
> +
> +ifeq ($(BR2_PACKAGE_LOCKDEV),y)
> +LIBCEC_DEPENDENCIES += lockdev
> +endif
> +
> +ifeq ($(BR2_PACKAGE_UDEV),y)
> +LIBCEC_DEPENDENCIES += udev
> +endif
> +
> +ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
> +LIBCEC_CONF_OPT = --enable-rpi \
> +   --with-rpi-include-path=$(STAGING_DIR)/usr/include
> +LIBCEC_DEPENDENCIES += rpi-userland
> +else
> +LIBCEC_CONF_OPT = --disable-rpi
> +endif
> +
> +$(eval $(autotools-package))
> --
> 1.7.9.5
>



-- 
Spenser Gilliland
Computer Engineer
Doctoral Candidate

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

* [Buildroot] [PATCH v2 2/2] lockdev: add lockdev
  2013-05-07 21:05     ` Yann E. MORIN
  2013-05-07 21:43       ` Spenser Gilliland
@ 2013-05-08  6:01       ` Arnout Vandecappelle
  1 sibling, 0 replies; 19+ messages in thread
From: Arnout Vandecappelle @ 2013-05-08  6:01 UTC (permalink / raw)
  To: buildroot

On 07/05/13 23:05, Yann E. MORIN wrote:
>> >+define LOCKDEV_INSTALL_TARGET_CMDS
>> >+	$(MAKE1) basedir=$(TARGET_DIR)/usr -C $(@D) install
>> >+	ln -sf $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so
>> >+	ln -sf $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so.1
> What is the SONAME of the library? You only need to install the library
> to a file named as the SONAME, not any other symlink is required.
>
> But of course, if "development files on target" are selected you need
> the .so symlink (but devel-files-on-target this is deprecated now).

  But aren't these links created automatically by ldconfig in 
target-finalize? For staging it is still needed, of course.

  Regards,
  Arnout

-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
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] 19+ messages in thread

* [Buildroot] [PATCH v3 1/2] lockdev: add lockdev
  2013-05-07 22:02   ` [Buildroot] [PATCH v3 1/2] lockdev: add lockdev Spenser Gilliland
  2013-05-07 22:02     ` [Buildroot] [PATCH v3 2/2] libcec: add libcec for HDMI device Control Spenser Gilliland
@ 2013-05-08 14:41     ` Thomas Petazzoni
  2013-05-08 18:55     ` [Buildroot] [PATCH v4 " Spenser Gilliland
  2 siblings, 0 replies; 19+ messages in thread
From: Thomas Petazzoni @ 2013-05-08 14:41 UTC (permalink / raw)
  To: buildroot

Dear Spenser Gilliland,

On Tue,  7 May 2013 17:02:21 -0500, Spenser Gilliland wrote:

> diff --git a/package/lockdev/Config.in b/package/lockdev/Config.in
> new file mode 100644
> index 0000000..2bd75d1
> --- /dev/null
> +++ b/package/lockdev/Config.in
> @@ -0,0 +1,4 @@
> +config BR2_PACKAGE_LOCKDEV
> +	bool "lockdev"
> +	help
> +	  library for locking devices

A few more details would be nice to have here, but I see that the
package itself doesn't really provide a more detailed description of
what it does. It also apparently doesn't have an upstream site.

> +LOCKDEV_VERSION = 1.0.3
> +LOCKDEV_SOURCE = lockdev_$(LOCKDEV_VERSION).orig.tar.gz
> +LOCKDEV_SITE = http://ftp.debian.org/debian/pool/main/l/lockdev/

You should use BR2_DEBIAN_MIRROR here. See package/argus/argus.mk for
example. Or probably better, use http://snapshot.debian.net/, as in
package/fakeroot/fakeroot.mk. Using snapshot.debian.net ensures that
the file will always be present at this location.

> +LOCKDEV_LICENSE = LGPLv2.1

I checked and confirm that the license appears to be LGPLv2.1, without
the plus.

> +LOCKDEV_LICENSE_FILE = LICENSE

LOCKDEV_LICENSE_FILES

> +LOCKDEV_INSTALL_STAGING = YES
> +
> +define LOCKDEV_BUILD_CMDS
> +	$(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) static shared
> +endef

Building the shared variant will not work when
BR2_PREFER_STATIC_LIB=y.

> +define LOCKDEV_INSTALL_STAGING_CMDS
> +	$(MAKE1) basedir=$(STAGING_DIR)/usr -C $(@D) install
> +	ln -sf $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so
> +	ln -sf $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.1
> +endef
> +
> +define LOCKDEV_INSTALL_TARGET_CMDS
> +	$(MAKE1) basedir=$(TARGET_DIR)/usr -C $(@D) install
> +	ln -sf $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so.1
> +endef

I am not sure using the 'install' target is appropriate here. Looking
at the package Makefile, it not only installs the library, in usr/lib,
but also some debug stuff in usr/lib/debug, some profile stuff in
usr/lib/profile, etc.

So, I believe it should probably be something like (untested) :

ifeq ($(BR2_PREFER_STATIC_LIB),y)
define LOCKDEV_BUILD_CMDS
	$(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) static
endef

define LOCKDEV_INSTALL_STAGING_CMDS
	$(MAKE1) basedir=$(STAGING_DIR)/usr -C $(@D) install_dev
endef

else # BR2_PREFER_STATIC_LIB

define LOCKDEV_BUILD_CMDS
	$(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) static shared
endef

define LOCKDEV_INSTALL_STAGING_CMDS
	$(MAKE1) basedir=$(STAGING_DIR)/usr -C $(@D) install_dev install_run
	ln -sf $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so
	ln -sf $(STAGING_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.1
endef

define LOCKDEV_INSTALL_TARGET_CMDS
	$(MAKE1) basedir=$(TARGET_DIR)/usr -C $(@D) install_run
	ln -sf $(TARGET_DIR)/usr/lib/liblockdev.$(LOCKDEV_VERSION).so $(TARGET_DIR)/usr/lib/liblockdev.so.1
endef

endif # BR2_PREFER_STATIC_LIB

Best regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH v4 1/2] lockdev: add lockdev
  2013-05-07 22:02   ` [Buildroot] [PATCH v3 1/2] lockdev: add lockdev Spenser Gilliland
  2013-05-07 22:02     ` [Buildroot] [PATCH v3 2/2] libcec: add libcec for HDMI device Control Spenser Gilliland
  2013-05-08 14:41     ` [Buildroot] [PATCH v3 1/2] lockdev: add lockdev Thomas Petazzoni
@ 2013-05-08 18:55     ` Spenser Gilliland
  2013-05-08 18:55       ` [Buildroot] [PATCH v4 2/2] libcec: add libcec for HDMI device Control Spenser Gilliland
  2013-07-29 19:24       ` [Buildroot] [PATCH v4 1/2] lockdev: add lockdev Thomas Petazzoni
  2 siblings, 2 replies; 19+ messages in thread
From: Spenser Gilliland @ 2013-05-08 18:55 UTC (permalink / raw)
  To: buildroot

Add lockdev a package for locking devices.

Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
---
 package/Config.in          |    1 +
 package/lockdev/Config.in  |    4 ++++
 package/lockdev/lockdev.mk |   41 +++++++++++++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+)
 create mode 100644 package/lockdev/Config.in
 create mode 100644 package/lockdev/lockdev.mk

diff --git a/package/Config.in b/package/Config.in
index 81a3f76..05e2d45 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -256,6 +256,7 @@ source "package/irda-utils/Config.in"
 source "package/kbd/Config.in"
 source "package/lcdproc/Config.in"
 source "package/lm-sensors/Config.in"
+source "package/lockdev/Config.in"
 source "package/lshw/Config.in"
 source "package/lsuio/Config.in"
 source "package/lvm2/Config.in"
diff --git a/package/lockdev/Config.in b/package/lockdev/Config.in
new file mode 100644
index 0000000..2bd75d1
--- /dev/null
+++ b/package/lockdev/Config.in
@@ -0,0 +1,4 @@
+config BR2_PACKAGE_LOCKDEV
+	bool "lockdev"
+	help
+	  library for locking devices
diff --git a/package/lockdev/lockdev.mk b/package/lockdev/lockdev.mk
new file mode 100644
index 0000000..9b6efa8
--- /dev/null
+++ b/package/lockdev/lockdev.mk
@@ -0,0 +1,41 @@
+#############################################################
+#
+# lockdev
+#
+#############################################################
+
+LOCKDEV_VERSION = 1.0.3
+LOCKDEV_SOURCE = lockdev_$(LOCKDEV_VERSION).orig.tar.gz
+LOCKDEV_SITE = http://snapshot.debian.org/archive/debian/20130508T154517Z/pool/main/l/lockdev/ 
+LOCKDEV_LICENSE = LGPLv2.1
+LOCKDEV_LICENSE_FILES = LICENSE
+LOCKDEV_INSTALL_STAGING = YES
+
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+define LOCKDEV_BUILD_CMDS
+	$(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) static
+endef
+
+define LOCKDEV_INSTALL_STAGING_CMDS
+	$(MAKE1) basedir=$(STAGING_DIR)/usr -C $(@D) install_dev
+endef
+
+else # BR2_PREFER_STATIC_LIB
+
+define LOCKDEV_BUILD_CMDS
+	$(MAKE1) $(TARGET_CONFIGURE_OPTS) -C $(@D) static shared
+endef
+
+define LOCKDEV_INSTALL_STAGING_CMDS
+	$(MAKE1) basedir=$(STAGING_DIR)/usr -C $(@D) install_dev install_run
+	ln -sf liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so
+	ln -sf liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.1
+endef
+
+define LOCKDEV_INSTALL_TARGET_CMDS
+	$(MAKE1) basedir=$(TARGET_DIR)/usr -C $(@D) install_run
+	ln -sf liblockdev.$(LOCKDEV_VERSION).so $(STAGING_DIR)/usr/lib/liblockdev.so.1
+endef
+endif # BR2_PREFER_STATIC_LIB
+
+$(eval $(generic-package))
-- 
1.7.9.5

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

* [Buildroot] [PATCH v4 2/2] libcec: add libcec for HDMI device Control
  2013-05-08 18:55     ` [Buildroot] [PATCH v4 " Spenser Gilliland
@ 2013-05-08 18:55       ` Spenser Gilliland
  2013-07-29 19:31         ` Thomas Petazzoni
  2013-07-29 19:24       ` [Buildroot] [PATCH v4 1/2] lockdev: add lockdev Thomas Petazzoni
  1 sibling, 1 reply; 19+ messages in thread
From: Spenser Gilliland @ 2013-05-08 18:55 UTC (permalink / raw)
  To: buildroot

This patch adds libcec for HDMI device control.  It enables Raspberry Pi
support if the rpi-userland package is installed.

Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
---
 package/Config.in        |    1 +
 package/libcec/Config.in |    8 ++++++++
 package/libcec/libcec.mk |   33 +++++++++++++++++++++++++++++++++
 3 files changed, 42 insertions(+)
 create mode 100644 package/libcec/Config.in
 create mode 100644 package/libcec/libcec.mk

diff --git a/package/Config.in b/package/Config.in
index 05e2d45..df1e88e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -464,6 +464,7 @@ source "package/imx-lib/Config.in"
 source "package/lcdapi/Config.in"
 source "package/libaio/Config.in"
 source "package/libatasmart/Config.in"
+source "package/libcec/Config.in"
 source "package/libraw1394/Config.in"
 source "package/tslib/Config.in"
 source "package/libfreefare/Config.in"
diff --git a/package/libcec/Config.in b/package/libcec/Config.in
new file mode 100644
index 0000000..1cacd4a
--- /dev/null
+++ b/package/libcec/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_LIBCEC
+	bool "libcec"
+	help
+	  libcec allows you in combination with the right hardware to control your
+	  home theater devices with your TV remote control utilizing existing HDMI
+	  cabling.
+
+	  http://libcec.pulse-eight.com
diff --git a/package/libcec/libcec.mk b/package/libcec/libcec.mk
new file mode 100644
index 0000000..e3a69c6
--- /dev/null
+++ b/package/libcec/libcec.mk
@@ -0,0 +1,33 @@
+#############################################################
+#
+# libcec
+#
+#############################################################
+
+LIBCEC_VERSION = libcec-2.1.1
+LIBCEC_SITE = http://github.com/Pulse-Eight/libcec/tarball/$(LIBCEC_VERSION)
+LIBCEC_LICENSE = GPLv2+
+LIBCEC_LICENSE_FILE = COPYING
+
+# Autoreconf required due to being a dev tarball and not a release tarball.
+LIBCEC_AUTORECONF = YES
+LIBCEC_INSTALL_STAGING = YES
+LIBCEC_DEPENDENCIES = host-pkgconf
+
+ifeq ($(BR2_PACKAGE_LOCKDEV),y)
+LIBCEC_DEPENDENCIES += lockdev
+endif
+
+ifeq ($(BR2_PACKAGE_UDEV),y)
+LIBCEC_DEPENDENCIES += udev
+endif
+
+ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
+LIBCEC_CONF_OPT = --enable-rpi \
+   --with-rpi-include-path=$(STAGING_DIR)/usr/include
+LIBCEC_DEPENDENCIES += rpi-userland
+else
+LIBCEC_CONF_OPT = --disable-rpi
+endif
+
+$(eval $(autotools-package))
-- 
1.7.9.5

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

* [Buildroot] [PATCH v4 1/2] lockdev: add lockdev
  2013-05-08 18:55     ` [Buildroot] [PATCH v4 " Spenser Gilliland
  2013-05-08 18:55       ` [Buildroot] [PATCH v4 2/2] libcec: add libcec for HDMI device Control Spenser Gilliland
@ 2013-07-29 19:24       ` Thomas Petazzoni
  1 sibling, 0 replies; 19+ messages in thread
From: Thomas Petazzoni @ 2013-07-29 19:24 UTC (permalink / raw)
  To: buildroot

Dear Spenser Gilliland,

On Wed,  8 May 2013 13:55:26 -0500, Spenser Gilliland wrote:
> Add lockdev a package for locking devices.
> 
> Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
> ---
>  package/Config.in          |    1 +
>  package/lockdev/Config.in  |    4 ++++
>  package/lockdev/lockdev.mk |   41 +++++++++++++++++++++++++++++++++++++++++
>  3 files changed, 46 insertions(+)
>  create mode 100644 package/lockdev/Config.in
>  create mode 100644 package/lockdev/lockdev.mk

Applied, thanks. I've moved the package to Libraries->Filesystem,
instead of the main "Hardware handling" menu.

Thanks,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

* [Buildroot] [PATCH v4 2/2] libcec: add libcec for HDMI device Control
  2013-05-08 18:55       ` [Buildroot] [PATCH v4 2/2] libcec: add libcec for HDMI device Control Spenser Gilliland
@ 2013-07-29 19:31         ` Thomas Petazzoni
  0 siblings, 0 replies; 19+ messages in thread
From: Thomas Petazzoni @ 2013-07-29 19:31 UTC (permalink / raw)
  To: buildroot

Dear Spenser Gilliland,

On Wed,  8 May 2013 13:55:27 -0500, Spenser Gilliland wrote:
> This patch adds libcec for HDMI device control.  It enables Raspberry Pi
> support if the rpi-userland package is installed.
> 
> Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
> ---
>  package/Config.in        |    1 +
>  package/libcec/Config.in |    8 ++++++++
>  package/libcec/libcec.mk |   33 +++++++++++++++++++++++++++++++++
>  3 files changed, 42 insertions(+)
>  create mode 100644 package/libcec/Config.in
>  create mode 100644 package/libcec/libcec.mk

Thanks, applied, after adding the missing C++ dependency.

Thanks!

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

end of thread, other threads:[~2013-07-29 19:31 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-03 22:08 [Buildroot] [PATCH 1/1] libcec: add the libcec for HDMI device Control Spenser Gilliland
2013-05-06 21:15 ` Thomas Petazzoni
2013-05-06 22:19   ` Peter Korsgaard
2013-05-06 22:51     ` Spenser Gilliland
2013-05-07 20:46 ` [Buildroot] [PATCH v2 1/2] libcec: add " Spenser Gilliland
2013-05-07 20:47   ` [Buildroot] [PATCH v2 2/2] lockdev: add lockdev Spenser Gilliland
2013-05-07 21:05     ` Yann E. MORIN
2013-05-07 21:43       ` Spenser Gilliland
2013-05-08  6:01       ` Arnout Vandecappelle
2013-05-07 20:59   ` [Buildroot] [PATCH v2 1/2] libcec: add libcec for HDMI device Control Yann E. MORIN
2013-05-07 21:49     ` Spenser Gilliland
2013-05-07 22:02   ` [Buildroot] [PATCH v3 1/2] lockdev: add lockdev Spenser Gilliland
2013-05-07 22:02     ` [Buildroot] [PATCH v3 2/2] libcec: add libcec for HDMI device Control Spenser Gilliland
2013-05-07 22:55       ` Spenser Gilliland
2013-05-08 14:41     ` [Buildroot] [PATCH v3 1/2] lockdev: add lockdev Thomas Petazzoni
2013-05-08 18:55     ` [Buildroot] [PATCH v4 " Spenser Gilliland
2013-05-08 18:55       ` [Buildroot] [PATCH v4 2/2] libcec: add libcec for HDMI device Control Spenser Gilliland
2013-07-29 19:31         ` Thomas Petazzoni
2013-07-29 19:24       ` [Buildroot] [PATCH v4 1/2] lockdev: add lockdev Thomas Petazzoni

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