Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Documentation support
@ 2009-11-18 23:11 Michael S. Zick
  2009-11-19 12:47 ` Michael S. Zick
  0 siblings, 1 reply; 2+ messages in thread
From: Michael S. Zick @ 2009-11-18 23:11 UTC (permalink / raw)
  To: buildroot


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Buildroot] Documentation support
  2009-11-18 23:11 [Buildroot] Documentation support Michael S. Zick
@ 2009-11-19 12:47 ` Michael S. Zick
  0 siblings, 0 replies; 2+ messages in thread
From: Michael S. Zick @ 2009-11-19 12:47 UTC (permalink / raw)
  To: buildroot

On Wed November 18 2009, Michael S. Zick wrote:
> 
> 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 <minimod@morethan.org>

diff --git a/Config.in b/Config.in
index 6967d25..da3fc14 100644
--- a/Config.in
+++ b/Config.in
@@ -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
diff --git a/package/busybox/busybox.mk b/package/busybox/busybox.mk
index 187a06a..d207074 100644
--- a/package/busybox/busybox.mk
+++ b/package/busybox/busybox.mk
@@ -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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-11-19 12:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-18 23:11 [Buildroot] Documentation support Michael S. Zick
2009-11-19 12:47 ` Michael S. Zick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox