Building additional binaries

Shaun Jackman sjackman at gmail.com
Tue Jul 4 16:13:30 PDT 2006


I had been using the following patch to build a bFLT binary in the
top-level Makefile. This configuration should be accomplished in the
.config.mak file in the output directory. Unfortunately, it's not as
simple as adding `all: busybox.bflt' to .config.mak, because
.config.mak is included from Rules.mak and by every Makefile, not just
the top-level. So, I added `busybox: busybox.bflt' to .config.mak,
which is a bit of a hack, but works. In any case, I thought I'd poll
the mailing list for a better solution. Perhaps the `all' target of
the top-level Makefile should depend on a phony `all-extra' target
that could be defined by .config.mak.

Cheers,
Shaun

--- Makefile    4f6d75d68f1f127442ffa6c934395b5742523e2b
+++ Makefile    04f799f965031624109a130c6a94d83fffd1fd8c
@@ -251,7 +251,7 @@

  else # ifneq ($(strip $(HAVE_DOT_CONFIG)),y)

-all: busybox busybox.links doc
+all: busybox busybox.bflt busybox.links doc

  # In this section, we need .config
  -include $(top_builddir)/.config.cmd


More information about the busybox mailing list