Skip to contentSkip to conversation

eigen: (optionally) install unsupported modules

PATCH New Davide Viti 1 participant 2 messages Mar 18, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 eigen: (optionally) install unsupported modules

I'm working on a package which depends on some include files residing in the "unsupported" folder. The following patch makes it possible to include the "unsupported" folder in the staging dir.

regards,
Davide

#1 lore raw

PATCH 1/1 eigen: (optionally) install unsupported modules

---
 package/eigen/Config.in | 8 ++++++++
 package/eigen/eigen.mk  | 8 ++++++++
 2 files changed, 16 insertions(+)
package/eigen/Config.in +8 -0
index e94f9a3..a653e37 100644
@@ -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
package/eigen/eigen.mk +8 -0
index 5abd464..388dd63 100644
@@ -13,6 +13,14 @@ EIGEN_LICENSE_FILES = COPYING.MPL2 COPYING.BSD COPYING.LGPL COPYING.README
 EIGEN_INSTALL_STAGING = YES
 EIGEN_INSTALL_TARGET = NO
 
+define EIGEN_INSTALL_UNSUPPORTED_MODULES
+	cp -a $(@D)/unsupported $(STAGING_DIR)/usr/include/
+endef
+
+ifeq ($(BR2_PACKAGE_EIGEN_UNSUPPORTED_MODULES),y)
+	EIGEN_POST_INSTALL_STAGING_HOOKS += EIGEN_INSTALL_UNSUPPORTED_MODULES
+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
Signature · 1 line
1.9.0