Documentation support
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
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:
Signed-off-by Michael S. Zick <[email protected]>
Config.in +10 -0
@@ -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
@@ -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