[BusyBox] hurd patch

Erik Andersen andersen at codepoet.org
Wed Mar 20 04:53:04 UTC 2002


On Wed Jan 30, 2002 at 03:43:40PM +1100, Glenn McGrath wrote:
> I have a patch to support GNU/Hurd here
> 
> http://people.debian.org/~bug1/busybox/hurd.diff
> or
> http://people.debian.org/~bug1/busybox/hurd.diff.bz2
> 
> It has a number of config.hurd.in files that it uses when TARGET_OS :=
> hurd, so options that dont apply or wont compile under the hurd wont
> appear in the menu system.

I (finally) took a few minutes to look over this.  I really do
not at all like the idea of having each supported os having its
own mostly duplicate config.in files.  Imagine the maintainence
nightmare that would create!  Instead, I want to isolate all OS
specific things into the sysdeps/<OS>/ directories.  To support
things like HURD, create sysdeps/hurd/config.in so that it will
hve a 'define_bool CONFIG_OS_HURD  y' and then use that to hide
things elsewhere as needed, and then add in any HURD specific
applets and options there as well.

Making things work properly will involve moving some things out
of libbb and creating a sysdeps<OS>/libarch.a which will include
any OS specific junk or libc specific adaptions.  Things like
libbb/syscalls.c and libbb/libc5.c would move under
sysdeps/linux.  Presumably, at some point, Linux specific things
like pivot_root might move as well, though I am satisfied with
Linux so I'm not anxious to do that work myself.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the busybox mailing list