diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-25 20:16:31 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-02-25 20:16:31 +0100 |
commit | e473446ff8a93fb8cdc52494b4d6ee15bc15bf61 (patch) | |
tree | db11fdd0a3e2fac1e56675b04eb53be3e5d87895 /toolchain/glibc-ports | |
parent | 86d7ffda38b870dc96035feb4788ae1589aab11c (diff) |
first try to get glibc working for mips/arm (not working yet)
Diffstat (limited to 'toolchain/glibc-ports')
-rw-r--r-- | toolchain/glibc-ports/Makefile | 22 | ||||
-rw-r--r-- | toolchain/glibc-ports/Makefile.inc | 8 | ||||
-rw-r--r-- | toolchain/glibc-ports/patches/mips.patch | 41 |
3 files changed, 71 insertions, 0 deletions
diff --git a/toolchain/glibc-ports/Makefile b/toolchain/glibc-ports/Makefile new file mode 100644 index 000000000..be4a39e65 --- /dev/null +++ b/toolchain/glibc-ports/Makefile @@ -0,0 +1,22 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk +include ../rules.mk +include Makefile.inc + +include ${TOPDIR}/mk/buildhlp.mk + +$(WRKBUILD)/.headers: + touch $@ + +$(WRKBUILD)/.configured: + touch $@ + +$(WRKBUILD)/.compiled: + touch $@ + +$(WRKBUILD)/.installed: + touch $@ + +include ${TOPDIR}/mk/toolchain.mk diff --git a/toolchain/glibc-ports/Makefile.inc b/toolchain/glibc-ports/Makefile.inc new file mode 100644 index 000000000..20e50b577 --- /dev/null +++ b/toolchain/glibc-ports/Makefile.inc @@ -0,0 +1,8 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +PKG_NAME:= glibc-ports +PKG_VERSION:= 2.11 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 55d50abb2d7c366bde6fb5e35e681f9b +PKG_SITES:= ${MASTER_SITE_GNU:=glibc/} diff --git a/toolchain/glibc-ports/patches/mips.patch b/toolchain/glibc-ports/patches/mips.patch new file mode 100644 index 000000000..2176a0a7e --- /dev/null +++ b/toolchain/glibc-ports/patches/mips.patch @@ -0,0 +1,41 @@ +diff -Nur glibc-ports-2.11.orig/sysdeps/mips/mips32/Makefile glibc-ports-2.11/sysdeps/mips/mips32/Makefile +--- glibc-ports-2.11.orig/sysdeps/mips/mips32/Makefile 2009-11-15 21:53:20.000000000 +0100 ++++ glibc-ports-2.11/sysdeps/mips/mips32/Makefile 2010-02-25 05:06:53.093359450 +0100 +@@ -1,3 +1,3 @@ +-ifeq ($(filter -mabi=32,$(CC)),) +-CC += -mabi=32 +-endif ++#ifeq ($(filter -mabi=32,$(CC)),) ++#CC += -mabi=32 ++#endif +diff -Nur glibc-ports-2.11.orig/sysdeps/mips/nptl/tls.h glibc-ports-2.11/sysdeps/mips/nptl/tls.h +--- glibc-ports-2.11.orig/sysdeps/mips/nptl/tls.h 2009-11-15 21:53:20.000000000 +0100 ++++ glibc-ports-2.11/sysdeps/mips/nptl/tls.h 2010-02-25 19:16:31.338162548 +0100 +@@ -55,12 +55,6 @@ + .set pop + #endif /* __ASSEMBLER__ */ + +- +-/* We require TLS support in the tools. */ +-#ifndef HAVE_TLS_SUPPORT +-# error "TLS support is required." +-#endif +- + /* Signal that TLS support is available. */ + #define USE_TLS 1 + +diff -Nur glibc-ports-2.11.orig/sysdeps/mips/preconfigure glibc-ports-2.11/sysdeps/mips/preconfigure +--- glibc-ports-2.11.orig/sysdeps/mips/preconfigure 2009-11-15 21:53:20.000000000 +0100 ++++ glibc-ports-2.11/sysdeps/mips/preconfigure 2010-02-25 05:07:40.565358364 +0100 +@@ -19,11 +19,6 @@ + 32) machine=mips/mips32/kern64 ;; + esac + machine=$machine/$config_machine +- if test $mips_config_abi != $mips_cc_abi; then +- # This won't make it to config.make, but we want to +- # set this in case configure tests depend on it. +- CPPFLAGS="$CPPFLAGS -mabi=$mips_config_abi" +- fi + ;; + mips*) base_machine=mips machine=mips/mips32/$machine ;; + esac |