Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v6] eigen: add an option to install unsupported modules
@ 2014-03-30 22:30 Davide Viti
  2014-04-03 19:52 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Davide Viti @ 2014-03-30 22:30 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Davide Viti <d.viti@infosolution.it>
---
Dear Thomas,
here is a new version of the patch 

 Changes v5 -> v6:
   - Make sure "unsupported" dir is created before copying
     any file (suggested by Thomas)
   - install only header files in staging (suggested by Thomas)
 Changes v4 -> v5:
   - fix indentation (spaces > tabs)

regards,

  Davide

 package/eigen/Config.in | 8 ++++++++
 package/eigen/eigen.mk  | 8 ++++++++
 2 files changed, 16 insertions(+)

diff --git a/package/eigen/Config.in b/package/eigen/Config.in
index e94f9a3..03d65b1 100644
--- a/package/eigen/Config.in
+++ b/package/eigen/Config.in
@@ -13,5 +13,13 @@ config BR2_PACKAGE_EIGEN
 
 	  http://eigen.tuxfamily.org/
 
+if BR2_PACKAGE_EIGEN
+
+config BR2_PACKAGE_EIGEN_UNSUPPORTED_MODULES
+	bool "unsupported modules"
+	help
+	  Install eigen unsupported modules
+endif
+
 comment "eigen needs a toolchain w/ C++"
 	depends on !BR2_INSTALL_LIBSTDCPP
diff --git a/package/eigen/eigen.mk b/package/eigen/eigen.mk
index 9a5ce7d..7fd3187 100644
--- a/package/eigen/eigen.mk
+++ b/package/eigen/eigen.mk
@@ -14,12 +14,20 @@ EIGEN_INSTALL_STAGING = YES
 EIGEN_INSTALL_TARGET = NO
 EIGEN_DEST_DIR = $(STAGING_DIR)/usr/include/eigen3
 
+ifeq ($(BR2_PACKAGE_EIGEN_UNSUPPORTED_MODULES),y)
+define EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS
+	mkdir -p $(EIGEN_DEST_DIR)/unsupported
+	cp -a $(@D)/unsupported/Eigen $(EIGEN_DEST_DIR)/unsupported
+endef
+endif
+
 # This package only consists of headers that need to be
 # copied over to the sysroot for compile time use
 define EIGEN_INSTALL_STAGING_CMDS
 	$(RM) -r $(EIGEN_DEST_DIR)
 	mkdir -p $(EIGEN_DEST_DIR)
 	cp -a $(@D)/Eigen $(EIGEN_DEST_DIR)
+	$(EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS)
 endef
 
 $(eval $(generic-package))
-- 
1.9.1

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

* [Buildroot] [PATCH v6] eigen: add an option to install unsupported modules
  2014-03-30 22:30 [Buildroot] [PATCH v6] eigen: add an option to install unsupported modules Davide Viti
@ 2014-04-03 19:52 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-04-03 19:52 UTC (permalink / raw)
  To: buildroot

Dear Davide Viti,

On Mon, 31 Mar 2014 00:30:30 +0200, Davide Viti wrote:
> Signed-off-by: Davide Viti <d.viti@infosolution.it>

Applied, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

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

end of thread, other threads:[~2014-04-03 19:52 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-30 22:30 [Buildroot] [PATCH v6] eigen: add an option to install unsupported modules Davide Viti
2014-04-03 19:52 ` Thomas Petazzoni

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