Some packages' install-strip target install quite big documentation,
so create an option to remove it similar to the existing man/info options.
If you say n here, your target will not contain any
infopage.
+config BR2_HAVE_DOCUMENTATION
+ bool "documentation on the target"
+ help
+ Leave the documentation on the target.
+ If you say n here, your target will not contain any
+ documentation.
+
config BR2_HAVE_DEVFILES
bool "development files in target filesystem"
help
$(if $(BR2_HAVE_INFOPAGES),,for d in info share/info; do \
rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d; \
done)
+ $(if $(BR2_HAVE_DOCUMENTATION),,for d in doc share/doc; do \
+ rm -rf $(TARGET_DIR)/$$d $(TARGET_DIR)/usr/$$d; \
+ done)
$(Q)mkdir -p $(@D)
touch $@