From: "Jérôme Pouiller" <jezz@sysmic.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/4] gpu-amd-bin-mx51: install examples
Date: Fri, 7 Nov 2014 16:57:53 +0100 [thread overview]
Message-ID: <1415375874-17331-4-git-send-email-jezz@sysmic.org> (raw)
In-Reply-To: <1415375874-17331-1-git-send-email-jezz@sysmic.org>
Signed-off-by: J?r?me Pouiller <jezz@sysmic.org>
---
package/freescale-imx/gpu-amd-bin-mx51/Config.in | 5 +++++
package/freescale-imx/gpu-amd-bin-mx51/gpu-amd-bin-mx51.mk | 8 ++++++++
2 files changed, 13 insertions(+)
diff --git a/package/freescale-imx/gpu-amd-bin-mx51/Config.in b/package/freescale-imx/gpu-amd-bin-mx51/Config.in
index 86038b8..cabf84d 100644
--- a/package/freescale-imx/gpu-amd-bin-mx51/Config.in
+++ b/package/freescale-imx/gpu-amd-bin-mx51/Config.in
@@ -51,4 +51,9 @@ config BR2_PACKAGE_PROVIDES_LIBGLES
config BR2_PACKAGE_PROVIDES_LIBOPENVG
default "gpu-amd-bin-mx51"
+config BR2_PACKAGE_GPU_AMD_BIN_MX51_EXAMPLES
+ bool "install examples"
+ help
+ Copy the examples to the target.
+
endif
diff --git a/package/freescale-imx/gpu-amd-bin-mx51/gpu-amd-bin-mx51.mk b/package/freescale-imx/gpu-amd-bin-mx51/gpu-amd-bin-mx51.mk
index b4f0da4..c4ff917 100644
--- a/package/freescale-imx/gpu-amd-bin-mx51/gpu-amd-bin-mx51.mk
+++ b/package/freescale-imx/gpu-amd-bin-mx51/gpu-amd-bin-mx51.mk
@@ -55,8 +55,16 @@ define GPU_AMD_BIN_MX51_INSTALL_STAGING_CMDS
$(GPU_AMD_BIN_MX51_FIXUP_EGL_HEADERS)
endef
+ifeq ($(BR2_PACKAGE_GPU_AMD_BIN_MX51_EXAMPLES),y)
+define GPU_AMD_BIN_MX51_INSTALL_EXAMPLES
+ $(INSTALL) -d $(TARGET_DIR)/usr/share/examples/gpu_amd_samples
+ $(INSTALL) -m 755 $(@D)/usr/bin/* $(TARGET_DIR)/usr/share/examples/gpu_amd_samples
+endef
+endif
+
define GPU_AMD_BIN_MX51_INSTALL_TARGET_CMDS
$(INSTALL) -m 644 $(@D)/usr/lib/lib*so* $(TARGET_DIR)/usr/lib/
+ $(GPU_AMD_BIN_MX51_INSTALL_EXAMPLES)
endef
define GPU_AMD_BIN_MX51_DEVICES
--
1.9.1
next prev parent reply other threads:[~2014-11-07 15:57 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-07 15:57 [Buildroot] [PATCH 0/4] Add support for iMX5 GPU Jérôme Pouiller
2014-11-07 15:57 ` [Buildroot] [PATCH 1/4] libz160: new package Jérôme Pouiller
2014-11-27 21:32 ` Thomas Petazzoni
2014-11-07 15:57 ` [Buildroot] [PATCH 2/4] gpu-amd-bin-mx51: " Jérôme Pouiller
2014-11-27 21:38 ` Thomas Petazzoni
2014-11-07 15:57 ` Jérôme Pouiller [this message]
2014-11-27 21:39 ` [Buildroot] [PATCH 3/4] gpu-amd-bin-mx51: install examples Thomas Petazzoni
2014-11-07 15:57 ` [Buildroot] [PATCH 4/4] xdriver_xf86-video-imx: new package Jérôme Pouiller
2014-11-07 16:17 ` Jérôme Pouiller
2014-11-27 21:47 ` Thomas Petazzoni
2014-11-27 21:33 ` [Buildroot] [PATCH 0/4] Add support for iMX5 GPU Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1415375874-17331-4-git-send-email-jezz@sysmic.org \
--to=jezz@sysmic.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox