eigen: add an option to install unsupported modules
authorDavide Viti <zinosat@tiscali.it>
Sun, 30 Mar 2014 22:30:30 +0000 (00:30 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Thu, 3 Apr 2014 19:49:20 +0000 (21:49 +0200)
Signed-off-by: Davide Viti <d.viti@infosolution.it>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/eigen/Config.in
package/eigen/eigen.mk

index e94f9a3e0b9c77f12877dcdfcce9cc406695f277..03d65b19d17707dd267abdba92f5eeaac8385e8f 100644 (file)
@@ -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
index 9a5ce7dfb98a8ad3d9ef45e4d52f75d036dd4100..7fd318748dda25d033fdcf7c114b459d07621a47 100644 (file)
@@ -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))