@@ -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
@@ -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