From c8fb5c6bf7cb328cfa3a030535c54af300f6c3e4 Mon Sep 17 00:00:00 2001 From: Frans Meulenbroeks Date: Sat, 2 Oct 2010 09:14:09 +0200 Subject: mamona : moved unused files to obsolete dir Signed-off-by: Frans Meulenbroeks --- .../gcc-noemu-4.1.2/801-arm-bigendian-eabi.patch | 14 ++++++++++ .../gcc-noemu-4.1.2/zecke-no-host-includes.patch | 31 ++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 recipes/obsolete/mamona/gcc-noemu-4.1.2/801-arm-bigendian-eabi.patch create mode 100644 recipes/obsolete/mamona/gcc-noemu-4.1.2/zecke-no-host-includes.patch (limited to 'recipes/obsolete/mamona/gcc-noemu-4.1.2') diff --git a/recipes/obsolete/mamona/gcc-noemu-4.1.2/801-arm-bigendian-eabi.patch b/recipes/obsolete/mamona/gcc-noemu-4.1.2/801-arm-bigendian-eabi.patch new file mode 100644 index 0000000000..54490fc24f --- /dev/null +++ b/recipes/obsolete/mamona/gcc-noemu-4.1.2/801-arm-bigendian-eabi.patch @@ -0,0 +1,14 @@ +Index: gcc-4.1.1/gcc/config/arm/linux-eabi.h +=================================================================== +--- gcc-4.1.1.orig/gcc/config/arm/linux-eabi.h 2007-02-20 14:51:33.416193250 +0100 ++++ gcc-4.1.1/gcc/config/arm/linux-eabi.h 2007-02-20 14:52:11.622581000 +0100 +@@ -48,7 +48,8 @@ + #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm9tdmi + + #undef SUBTARGET_EXTRA_LINK_SPEC +-#define SUBTARGET_EXTRA_LINK_SPEC " -m armelf_linux_eabi" ++#define SUBTARGET_EXTRA_LINK_SPEC \ ++ " %{mbig-endian:-m armelfb_linux_eabi} %{mlittle-endian:-m armelf_linux_eabi} " + + /* Use ld-linux.so.3 so that it will be possible to run "classic" + GNU/Linux binaries on an EABI system. */ diff --git a/recipes/obsolete/mamona/gcc-noemu-4.1.2/zecke-no-host-includes.patch b/recipes/obsolete/mamona/gcc-noemu-4.1.2/zecke-no-host-includes.patch new file mode 100644 index 0000000000..6afb10d6ef --- /dev/null +++ b/recipes/obsolete/mamona/gcc-noemu-4.1.2/zecke-no-host-includes.patch @@ -0,0 +1,31 @@ +Index: gcc-4.0.2/gcc/c-incpath.c +=================================================================== +--- gcc-4.0.2.orig/gcc/c-incpath.c 2005-01-23 16:05:27.000000000 +0100 ++++ gcc-4.0.2/gcc/c-incpath.c 2006-05-15 21:23:02.000000000 +0200 +@@ -350,6 +350,26 @@ + p->construct = 0; + p->user_supplied_p = user_supplied_p; + ++#ifdef CROSS_COMPILE ++ /* A common error when cross compiling is including ++ host headers. This code below will try to fail fast ++ for cross compiling. Currently we consider /usr/include, ++ /opt/include and /sw/include as harmful. */ ++ { ++ /* printf("Adding Path: %s\n", p->name ); */ ++ if( strstr(p->name, "/usr/include" ) == p->name ) { ++ fprintf(stderr, _("CROSS COMPILE Badness: /usr/include in INCLUDEPATH: %s\n"), p->name); ++ abort(); ++ } else if( strstr(p->name, "/sw/include") == p->name ) { ++ fprintf(stderr, _("CROSS COMPILE Badness: /sw/include in INCLUDEPATH: %s\n"), p->name); ++ abort(); ++ } else if( strstr(p->name, "/opt/include") == p->name ) { ++ fprintf(stderr, _("CROSS COMPILE Badness: /opt/include in INCLUDEPATH: %s\n"), p->name); ++ abort(); ++ } ++ } ++#endif ++ + add_cpp_dir_path (p, chain); + } + -- cgit 1.2.3-korg