[Buildroot] [PATCH 3/7] eigen: fix install rules
Samuel Martin
s.martin49 at gmail.com
Mon Nov 11 21:00:09 UTC 2013
Eigen provides a set of headers well-supported (in the Eigen directory),
and another one provided release "as-is", ie. with no real support
according to the README.txt; though other package may depend on these
headers.
Also, remove unnecessary files from installation:
- CMakeLists.txt files since the package does not use the cmake infra;
- doc sources;
- test and bench sources.
Signed-off-by: Samuel Martin <s.martin49 at gmail.com>
---
package/eigen/eigen.mk | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/package/eigen/eigen.mk b/package/eigen/eigen.mk
index 5abd464..63e21e9 100644
--- a/package/eigen/eigen.mk
+++ b/package/eigen/eigen.mk
@@ -16,8 +16,14 @@ EIGEN_INSTALL_TARGET = NO
# 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 $(STAGING_DIR)/usr/include/Eigen
- cp -a $(@D)/Eigen $(STAGING_DIR)/usr/include/
+ for d in Eigen unsupported ; do \
+ $(RM) -r $(STAGING_DIR)/usr/include/$${d} ; \
+ rsync -ar --exclude=CMakeLists.txt \
+ --exclude=test \
+ --exclude=bench \
+ --exclude=doc \
+ $(@D)/$${d} $(STAGING_DIR)/usr/include/ ; \
+ done
endef
$(eval $(generic-package))
--
1.8.4.2
More information about the buildroot
mailing list