[PATCH] some Mac OS X fixes

Rob Landley rob at landley.net
Wed Feb 22 18:44:05 UTC 2006


On Wednesday 22 February 2006 12:20 pm, Michael S. Zick wrote:
> Perhaps use the kernel tree as a guide...
> I am thinking the handling of hardware differences with a standard name
> in the include tree that is a symbolic link to the "hardware of the moment"
>
> I.E: code for: arch/whatever.h
> Have include/MacOSx, include/Linux, include/something_else
>
> Then the user directions are not "run ./configure" but instead:
> ln -s ../MacOSx arch
>
> Mike

The kernel autodetects your current hardware.  You can override with ARCH=xxx.

It's in the top level kernel Makefile:

ARCH ?= $(shell uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \
				-e s/arm.*/arm/ -e s/sa110/arm/ \
				-e s/s390x/s390/ -e s/parisc64/parisc/ \
				-e s/ppc.*/powerpc/ )

I still want to keep the differences to a minimum, but if we really wind up 
needing to care...

Rob
-- 
Never bet against the cheap plastic solution.



More information about the busybox mailing list