Import NetBSD tools and build.sh
This commit finalizes support for cross compilation. The tools directory are all links to the actual tools and are built on the host system to build Minix. build.sh is the work horse that takes care of all environment settings. It's slightly adjusted for Minix. The /usr/src/Makefile has additional targets needed for cross compilation.
This commit is contained in:
15
tools/binutils/patches/patch-an
Normal file
15
tools/binutils/patches/patch-an
Normal file
@@ -0,0 +1,15 @@
|
||||
$NetBSD$
|
||||
|
||||
--- gas/config/tc-i386.h.orig Mon Feb 27 15:35:37 2006
|
||||
+++ gas/config/tc-i386.h
|
||||
@@ -59,6 +59,10 @@ extern unsigned long i386_mach (void);
|
||||
#define ELF_TARGET_FORMAT "elf32-i386-vxworks"
|
||||
#endif
|
||||
|
||||
+#ifdef TE_MINIX
|
||||
+#define ELF_TARGET_FORMAT "elf32-i386-minix"
|
||||
+#endif
|
||||
+
|
||||
#ifndef ELF_TARGET_FORMAT
|
||||
#define ELF_TARGET_FORMAT "elf32-i386"
|
||||
#endif
|
||||
Reference in New Issue
Block a user