From 074d9136d7f431ab544132b976ea9f2d7d84a30a Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Sat, 26 Sep 2009 16:43:17 +0000 Subject: This adds a simple script to build a default toolchain for coreboot compilation, to be independent of broken or missing OS/distribution tool chains. Signed-off-by: Stefan Reinauer Acked-by: Ronald G. Minnich git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4681 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- ...inutils-2.18.50_no-i386-svr4-asm-comments.patch | 10 +++++ ...binutils-2.19.1_no-i386-svr4-asm-comments.patch | 10 +++++ ...-4.3.2_use-gnu-style-comments-in-assembly.patch | 11 +++++ ...-4.3.3_use-gnu-style-comments-in-assembly.patch | 11 +++++ .../patches/gcc-4.4.1_less-junk-in-crtbegin.patch | 50 ++++++++++++++++++++++ 5 files changed, 92 insertions(+) create mode 100644 util/crossgcc/patches/binutils-2.18.50_no-i386-svr4-asm-comments.patch create mode 100644 util/crossgcc/patches/binutils-2.19.1_no-i386-svr4-asm-comments.patch create mode 100644 util/crossgcc/patches/gcc-4.3.2_use-gnu-style-comments-in-assembly.patch create mode 100644 util/crossgcc/patches/gcc-4.3.3_use-gnu-style-comments-in-assembly.patch create mode 100644 util/crossgcc/patches/gcc-4.4.1_less-junk-in-crtbegin.patch (limited to 'util/crossgcc/patches') diff --git a/util/crossgcc/patches/binutils-2.18.50_no-i386-svr4-asm-comments.patch b/util/crossgcc/patches/binutils-2.18.50_no-i386-svr4-asm-comments.patch new file mode 100644 index 0000000000..76d207e99a --- /dev/null +++ b/util/crossgcc/patches/binutils-2.18.50_no-i386-svr4-asm-comments.patch @@ -0,0 +1,10 @@ +--- binutils-2.18.50/gas/config/tc-i386.c~ 2009-01-20 14:19:04.000000000 +0100 ++++ binutils-2.18.50/gas/config/tc-i386.c 2009-01-20 14:20:47.000000000 +0100 +@@ -183,6 +183,7 @@ + && !defined (TE_GNU) \ + && !defined (TE_LINUX) \ + && !defined (TE_NETWARE) \ ++ && 0 \ + && !defined (TE_FreeBSD) \ + && !defined (TE_NetBSD))) + /* This array holds the chars that always start a comment. If the diff --git a/util/crossgcc/patches/binutils-2.19.1_no-i386-svr4-asm-comments.patch b/util/crossgcc/patches/binutils-2.19.1_no-i386-svr4-asm-comments.patch new file mode 100644 index 0000000000..07b1d8403a --- /dev/null +++ b/util/crossgcc/patches/binutils-2.19.1_no-i386-svr4-asm-comments.patch @@ -0,0 +1,10 @@ +--- binutils-2.19.1/gas/config/tc-i386.c~ 2009-01-20 14:19:04.000000000 +0100 ++++ binutils-2.19.1/gas/config/tc-i386.c 2009-01-20 14:20:47.000000000 +0100 +@@ -318,6 +318,7 @@ + && !defined (TE_GNU) \ + && !defined (TE_LINUX) \ + && !defined (TE_NETWARE) \ ++ && 0 \ + && !defined (TE_FreeBSD) \ + && !defined (TE_NetBSD))) + /* This array holds the chars that always start a comment. If the diff --git a/util/crossgcc/patches/gcc-4.3.2_use-gnu-style-comments-in-assembly.patch b/util/crossgcc/patches/gcc-4.3.2_use-gnu-style-comments-in-assembly.patch new file mode 100644 index 0000000000..b5bfb2013a --- /dev/null +++ b/util/crossgcc/patches/gcc-4.3.2_use-gnu-style-comments-in-assembly.patch @@ -0,0 +1,11 @@ +--- gcc-4.3.2/gcc/config/i386/unix.h~ 2009-01-20 16:05:45.000000000 +0100 ++++ gcc-4.3.2/gcc/config/i386/unix.h 2009-01-20 16:05:47.000000000 +0100 +@@ -32,7 +32,7 @@ + + /* String containing the assembler's comment-starter. */ + +-#define ASM_COMMENT_START "/" ++#define ASM_COMMENT_START "#" + + /* Output to assembler file text saying following lines + may contain character constants, extra white space, comments, etc. */ diff --git a/util/crossgcc/patches/gcc-4.3.3_use-gnu-style-comments-in-assembly.patch b/util/crossgcc/patches/gcc-4.3.3_use-gnu-style-comments-in-assembly.patch new file mode 100644 index 0000000000..aa72efb06e --- /dev/null +++ b/util/crossgcc/patches/gcc-4.3.3_use-gnu-style-comments-in-assembly.patch @@ -0,0 +1,11 @@ +--- gcc-4.3.3/gcc/config/i386/unix.h~ 2009-01-20 16:05:45.000000000 +0100 ++++ gcc-4.3.3/gcc/config/i386/unix.h 2009-01-20 16:05:47.000000000 +0100 +@@ -32,7 +32,7 @@ + + /* String containing the assembler's comment-starter. */ + +-#define ASM_COMMENT_START "/" ++#define ASM_COMMENT_START "#" + + /* Output to assembler file text saying following lines + may contain character constants, extra white space, comments, etc. */ diff --git a/util/crossgcc/patches/gcc-4.4.1_less-junk-in-crtbegin.patch b/util/crossgcc/patches/gcc-4.4.1_less-junk-in-crtbegin.patch new file mode 100644 index 0000000000..3c005003df --- /dev/null +++ b/util/crossgcc/patches/gcc-4.4.1_less-junk-in-crtbegin.patch @@ -0,0 +1,50 @@ +--- t/gcc-4.4.1/gcc/crtstuff.c Fr. Apr 10 01:23:07 2009 ++++ gcc-4.4.1/gcc/crtstuff.c Di. Jul 28 16:43:28 2009 +@@ -204,6 +204,7 @@ + = { (func_ptr) (-1) }; + #endif /* __DTOR_LIST__ alternatives */ + ++#if 0 + #ifdef USE_EH_FRAME_REGISTRY + /* Stick a label at the beginning of the frame unwind info so we can register + and deregister it with the exception handling library code. */ +@@ -219,6 +220,7 @@ + __attribute__ ((unused, section(JCR_SECTION_NAME), aligned(sizeof(void*)))) + = { }; + #endif /* JCR_SECTION_NAME */ ++#endif + + #if defined(INIT_SECTION_ASM_OP) || defined(INIT_ARRAY_SECTION_ASM_OP) + +@@ -309,6 +311,7 @@ + } + #endif /* !defined(FINI_ARRAY_SECTION_ASM_OP) */ + ++#if 0 + #ifdef USE_EH_FRAME_REGISTRY + #ifdef CRT_GET_RFIB_DATA + /* If we used the new __register_frame_info_bases interface, +@@ -320,6 +323,7 @@ + __deregister_frame_info (__EH_FRAME_BEGIN__); + #endif + #endif ++#endif + + completed = 1; + } +@@ -333,6 +337,7 @@ + = { __do_global_dtors_aux }; + #endif /* !defined(FINI_SECTION_ASM_OP) */ + ++#if 0 + #if defined(USE_EH_FRAME_REGISTRY) || defined(JCR_SECTION_NAME) + /* Stick a call to __register_frame_info into the .init section. For some + reason calls with no arguments work more reliably in .init, so stick the +@@ -364,6 +369,7 @@ + } + #endif /* JCR_SECTION_NAME */ + } ++#endif + + #ifdef INIT_SECTION_ASM_OP + CRT_CALL_STATIC_FUNCTION (INIT_SECTION_ASM_OP, frame_dummy) -- cgit v1.2.3