Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] pakage/rpi-userland: add and install our bcm_host.pc
@ 2013-10-05 22:17 Yann E. MORIN
  2013-10-06 18:47 ` Peter Korsgaard
  0 siblings, 1 reply; 3+ messages in thread
From: Yann E. MORIN @ 2013-10-05 22:17 UTC (permalink / raw)
  To: buildroot

From: "Yann E. MORIN" <yann.morin.1998@free.fr>

This allows pkg-config-aware packages to include headers from, and
link against Broadcom VideoCore host API library.

bcm_host.pc copied almost as-is from:
    http://cgit.collabora.com/git/user/pq/android-pc-files.git/tree/pkgconfig?h=raspberrypi
with only a fix to the prefix (we're using /usr).

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/rpi-userland/bcm_host.pc     | 11 +++++++++++
 package/rpi-userland/rpi-userland.mk |  7 ++++++-
 2 files changed, 17 insertions(+), 1 deletion(-)
 create mode 100644 package/rpi-userland/bcm_host.pc

diff --git a/package/rpi-userland/bcm_host.pc b/package/rpi-userland/bcm_host.pc
new file mode 100644
index 0000000..28bbe96
--- /dev/null
+++ b/package/rpi-userland/bcm_host.pc
@@ -0,0 +1,11 @@
+prefix=/usr
+exec_prefix=${prefix}
+libdir=${exec_prefix}/lib
+includedir=${prefix}/include
+
+Name: bcm_host
+Description: Broadcom VideoCore host API library
+Version: 1
+Libs: -L${libdir} -lbcm_host -lvcos -lvchiq_arm
+Cflags: -I${includedir} -I${includedir}/interface/vmcs_host/linux -I${includedir}/interface/vcos/pthreads -DUSE_VCHIQ_ARM
+
diff --git a/package/rpi-userland/rpi-userland.mk b/package/rpi-userland/rpi-userland.mk
index c3ea43a..575b0c9 100644
--- a/package/rpi-userland/rpi-userland.mk
+++ b/package/rpi-userland/rpi-userland.mk
@@ -14,7 +14,12 @@ RPI_USERLAND_CONF_OPT = -DVMCS_INSTALL_PREFIX=/usr
 define RPI_USERLAND_POST_TARGET_CLEANUP
     rm -Rf $(TARGET_DIR)/usr/src
 endef
-
 RPI_USERLAND_POST_INSTALL_TARGET_HOOKS += RPI_USERLAND_POST_TARGET_CLEANUP
 
+define RPI_USERLAND_POST_TARGET_PC_FILE
+	install -D -m 0644 package/rpi-userland/bcm_host.pc \
+		$(STAGING_DIR)/usr/lib/pkgconfig/bcm_host.pc
+endef
+RPI_USERLAND_POST_INSTALL_TARGET_HOOKS += RPI_USERLAND_POST_TARGET_PC_FILE
+
 $(eval $(cmake-package))
-- 
1.8.1.2

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

* [Buildroot] [PATCH] pakage/rpi-userland: add and install our bcm_host.pc
  2013-10-05 22:17 [Buildroot] [PATCH] pakage/rpi-userland: add and install our bcm_host.pc Yann E. MORIN
@ 2013-10-06 18:47 ` Peter Korsgaard
  2013-10-06 20:38   ` Yann E. MORIN
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Korsgaard @ 2013-10-06 18:47 UTC (permalink / raw)
  To: buildroot

>>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:

 Yann> From: "Yann E. MORIN" <yann.morin.1998@free.fr>
 Yann> This allows pkg-config-aware packages to include headers from, and
 Yann> link against Broadcom VideoCore host API library.

 Yann> bcm_host.pc copied almost as-is from:
 Yann>     http://cgit.collabora.com/git/user/pq/android-pc-files.git/tree/pkgconfig?h=raspberrypi
 Yann> with only a fix to the prefix (we're using /usr).

 Yann> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
 Yann> ---
 Yann>  package/rpi-userland/bcm_host.pc     | 11 +++++++++++
 Yann>  package/rpi-userland/rpi-userland.mk |  7 ++++++-
 Yann>  2 files changed, 17 insertions(+), 1 deletion(-)
 Yann>  create mode 100644 package/rpi-userland/bcm_host.pc

 Yann> diff --git a/package/rpi-userland/bcm_host.pc b/package/rpi-userland/bcm_host.pc
 Yann> new file mode 100644
 Yann> index 0000000..28bbe96
 Yann> --- /dev/null
 Yann> +++ b/package/rpi-userland/bcm_host.pc
 Yann> @@ -0,0 +1,11 @@
 Yann> +prefix=/usr
 Yann> +exec_prefix=${prefix}
 Yann> +libdir=${exec_prefix}/lib
 Yann> +includedir=${prefix}/include
 Yann> +
 Yann> +Name: bcm_host
 Yann> +Description: Broadcom VideoCore host API library
 Yann> +Version: 1
 Yann> +Libs: -L${libdir} -lbcm_host -lvcos -lvchiq_arm
 Yann> +Cflags: -I${includedir} -I${includedir}/interface/vmcs_host/linux -I${includedir}/interface/vcos/pthreads -DUSE_VCHIQ_ARM
 Yann> +
 Yann> diff --git a/package/rpi-userland/rpi-userland.mk b/package/rpi-userland/rpi-userland.mk
 Yann> index c3ea43a..575b0c9 100644
 Yann> --- a/package/rpi-userland/rpi-userland.mk
 Yann> +++ b/package/rpi-userland/rpi-userland.mk
 Yann> @@ -14,7 +14,12 @@ RPI_USERLAND_CONF_OPT = -DVMCS_INSTALL_PREFIX=/usr
 Yann>  define RPI_USERLAND_POST_TARGET_CLEANUP
 Yann>      rm -Rf $(TARGET_DIR)/usr/src
 Yann>  endef
 Yann> -
 Yann>  RPI_USERLAND_POST_INSTALL_TARGET_HOOKS += RPI_USERLAND_POST_TARGET_CLEANUP
 
 Yann> +define RPI_USERLAND_POST_TARGET_PC_FILE
 Yann> +	install -D -m 0644 package/rpi-userland/bcm_host.pc \
 Yann> +		$(STAGING_DIR)/usr/lib/pkgconfig/bcm_host.pc
 Yann> +endef
 Yann> +RPI_USERLAND_POST_INSTALL_TARGET_HOOKS += RPI_USERLAND_POST_TARGET_PC_FILE

It installs into staging so it should be
RPI_USERLAND_POST_INSTALL_STAGING_HOOKS.

Committed with that fixed, thanks.

-- 
Bye, Peter Korsgaard

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

* [Buildroot] [PATCH] pakage/rpi-userland: add and install our bcm_host.pc
  2013-10-06 18:47 ` Peter Korsgaard
@ 2013-10-06 20:38   ` Yann E. MORIN
  0 siblings, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2013-10-06 20:38 UTC (permalink / raw)
  To: buildroot

Peter, All,

On 2013-10-06 20:47 +0200, Peter Korsgaard spake thusly:
> >>>>> "Yann" == Yann E MORIN <yann.morin.1998@free.fr> writes:
>  Yann> From: "Yann E. MORIN" <yann.morin.1998@free.fr>
>  Yann> This allows pkg-config-aware packages to include headers from, and
>  Yann> link against Broadcom VideoCore host API library.
> 
>  Yann> bcm_host.pc copied almost as-is from:
>  Yann>     http://cgit.collabora.com/git/user/pq/android-pc-files.git/tree/pkgconfig?h=raspberrypi
>  Yann> with only a fix to the prefix (we're using /usr).
> 
>  Yann> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[--SNIP--]
> It installs into staging so it should be
> RPI_USERLAND_POST_INSTALL_STAGING_HOOKS.

Doh.. Stupid me... :-/

> Committed with that fixed, thanks.

Thanks!

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

end of thread, other threads:[~2013-10-06 20:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-05 22:17 [Buildroot] [PATCH] pakage/rpi-userland: add and install our bcm_host.pc Yann E. MORIN
2013-10-06 18:47 ` Peter Korsgaard
2013-10-06 20:38   ` Yann E. MORIN

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