Skip to contentSkip to conversation

Documentation support

Buildroot Michael S. Zick 1 participant 2 messages Nov 18, 2009 – Nov 19, 2009

lore
Share & tools
lore
#0 lore raw

Is there a way to "turn on" the "man" utility in BB when the buildroot option to store man pages in the target is selected?

Mike

#1 lore raw
Quoted 5 lines · Michael S. Zick

Is there a way to "turn on" the "man" utility in BB when the buildroot option to store man pages in the target is selected?

In answer to my own question. . .
The short answer: Yes

The longer answer:

Config.in +10 -0
index 6967d25..da3fc14 100644
@@ -318,6 +318,16 @@ config BR2_HAVE_MANPAGES
 	  If you say n here, your target will not contain any
 	  manpage.
 
+config BR2_USE_PACKAGE_BUSYBOX_MAN
+	bool "use Busybox man page reader"
+	depends on BR2_HAVE_MANPAGES
+	default n
+	help
+	  Enables the man utility in the BusyBox configuration.
+
+	  Not required if your build includes another way to
+	  use man pages on the target.
+
 config BR2_HAVE_INFOPAGES
 	bool "infopages on the target"
 	help
package/busybox/busybox.mk +4 -0
index 187a06a..d207074 100644
@@ -77,6 +77,10 @@ ifeq ($(BR2_INET_RPC),y)
 else
 	$(SED) "s/^.*CONFIG_FEATURE_MOUNT_NFS.*/CONFIG_FEATURE_MOUNT_NFS=n/;" $(BUSYBOX_DIR)/.config
 endif
+ifeq ($(BR2_USE_PACKAGE_BUSYBOX_MAN),y)
+	# force man utility on
+	$(SED) "s/^.*CONFIG_MAN.*/CONFIG_MAN=y/" $(BUSYBOX_DIR)/.config
+endif
 ifeq ($(BR2_PACKAGE_BUSYBOX_MKSTATIC),y)
 	# force static build on
 	$(SED) "s/^.*CONFIG_STATIC.*/CONFIG_STATIC=y/" $(BUSYBOX_DIR)/.config