24 lines
868 B
Plaintext
24 lines
868 B
Plaintext
$NetBSD: NOTES.xcc,v 1.2 2002/04/26 16:21:25 lukem Exp $
|
|
Notes for creating Cross-Assemblers on NetBSD
|
|
=============================================
|
|
|
|
If your build host runs NetBSD, it is relatively painless to create a
|
|
cross-assembler in this directory.
|
|
|
|
To create a cross-assembler:
|
|
1. Set the environment variable ``TARGET_MACHINE_ARCH'' to the
|
|
desired target architecture:
|
|
sparc, m68k, i386, ns32k, vax, or powerpc
|
|
|
|
If your target is an m68k machine, you must edit config/tc-m68k.h.
|
|
* Remove the line ``#include <machine/param.h>''.
|
|
* Replace ``MID_MACHINE'' in the line:
|
|
#define AOUT_MACHTYPE MID_MACHINE
|
|
with:
|
|
MID_M68K (for m68k 8k page machine targets)
|
|
MID_M68K4K (for m68k 4k page machine targets)
|
|
If you are unsure which of these applies to your target, examine
|
|
$(NETBSDSRCDIR)/sys/arch/<target-machine>/include/param.h
|
|
|
|
2. Run ``make''.
|