[OpenBIOS] [PATCH][RFC] Multiple target support

Blue Swirl blauwirbel at gmail.com
Sun Jan 18 17:19:21 CET 2009


This patch allows configuration for multiple targets, like:
./config/scripts/switch-arch amd64 cross-ppc cross-sparc32
cross-sparc64 cross-x86

The command creates directories (obj-amd64 obj-ppc obj-sparc32
obj-sparc64 obj-x86), Makefiles and other config stuff. To build all
configured targets, use:
make build
make build-verbose

The benefit is that after a change to a file that affect several
architectures, total recompile time is reduced greatly because only
the changed file need to be recompiled and linked. Also there is no
need to use rules.xml and config.xml links in the top level directory.

I've only tested the following targets: amd64 cross-ppc cross-sparc32
cross-sparc64 cross-x86.

Maybe with small further changes it would also be possible to put the
object directories completely outside of the source tree.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove_toplevel_rules_config.diff.bz2
Type: application/x-bzip2
Size: 5460 bytes
Desc: not available
URL: <http://lists.openbios.org/pipermail/openbios/attachments/20090118/481bb90a/attachment.bin>

More information about the OpenBIOS mailing list