eigen: add an option to install unsupported modules
Signed-off-by: Davide Viti <d.viti@infosolution.it> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
b439a9f11d
commit
feefe6b884
|
@ -13,5 +13,13 @@ config BR2_PACKAGE_EIGEN
|
||||||
|
|
||||||
http://eigen.tuxfamily.org/
|
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++"
|
comment "eigen needs a toolchain w/ C++"
|
||||||
depends on !BR2_INSTALL_LIBSTDCPP
|
depends on !BR2_INSTALL_LIBSTDCPP
|
||||||
|
|
|
@ -14,12 +14,20 @@ EIGEN_INSTALL_STAGING = YES
|
||||||
EIGEN_INSTALL_TARGET = NO
|
EIGEN_INSTALL_TARGET = NO
|
||||||
EIGEN_DEST_DIR = $(STAGING_DIR)/usr/include/eigen3
|
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
|
# This package only consists of headers that need to be
|
||||||
# copied over to the sysroot for compile time use
|
# copied over to the sysroot for compile time use
|
||||||
define EIGEN_INSTALL_STAGING_CMDS
|
define EIGEN_INSTALL_STAGING_CMDS
|
||||||
$(RM) -r $(EIGEN_DEST_DIR)
|
$(RM) -r $(EIGEN_DEST_DIR)
|
||||||
mkdir -p $(EIGEN_DEST_DIR)
|
mkdir -p $(EIGEN_DEST_DIR)
|
||||||
cp -a $(@D)/Eigen $(EIGEN_DEST_DIR)
|
cp -a $(@D)/Eigen $(EIGEN_DEST_DIR)
|
||||||
|
$(EIGEN_INSTALL_UNSUPPORTED_MODULES_CMDS)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(generic-package))
|
$(eval $(generic-package))
|
||||||
|
|
Loading…
Reference in New Issue