mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 0/2] Build OSELAS.Toolchain on OS X
@ 2012-01-06 18:57 Andreas Bießmann
  2012-01-06 18:57 ` [ptxdist] [PATCH 1/2] glibc-headers: use freshly generated binutils Andreas Bießmann
  2012-01-06 18:57 ` [ptxdist] [PATCH 2/2] glibc-2.14.1: activate readelf detection Andreas Bießmann
  0 siblings, 2 replies; 3+ messages in thread
From: Andreas Bießmann @ 2012-01-06 18:57 UTC (permalink / raw)
  To: PTXdist ML; +Cc: Andreas Bießmann

These two little patches are required to build the OSELAS.Toolchain on OS X
Lion.
There are still some errors about iconv stuff in gdb but the rest of
toolchain builds fine and works here.

Currently only the
arm-v4t-linux-gnueabi-gcc-4.6.2-glibc-2.14.1-binutils-2.21.1a-kernel-2.6.39-sanitized
tested but since all other use glibc-2.14.1 (except for avr 8 bit) these will also
work.

ptxdist-2010.12.0 plus d05c0e4d998cad85ba82ef9b58a53595e04ad01a (will be in
ptxdist-2012.01.0) is required to build OSELAS.Toolchain for OS X.

Andreas Bießmann (2):
  glibc-headers: use freshly generated binutils
  glibc-2.14.1: activate readelf detection

 patches/glibc-2.14.1/autogen.sh |    8 ++++++++
 rules/glibc-headers.make        |    5 +++++
 2 files changed, 13 insertions(+), 0 deletions(-)
 create mode 100755 patches/glibc-2.14.1/autogen.sh

-- 
1.7.8.2


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ptxdist] [PATCH 1/2] glibc-headers: use freshly generated binutils
  2012-01-06 18:57 [ptxdist] [PATCH 0/2] Build OSELAS.Toolchain on OS X Andreas Bießmann
@ 2012-01-06 18:57 ` Andreas Bießmann
  2012-01-06 18:57 ` [ptxdist] [PATCH 2/2] glibc-2.14.1: activate readelf detection Andreas Bießmann
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Bießmann @ 2012-01-06 18:57 UTC (permalink / raw)
  To: PTXdist ML; +Cc: Andreas Bießmann

Some systems do not provide GNU binutils in sufficient versions to build the
glibc-headers. Building glibc later on, however, will use the freshly
generated cross-binutils and fulfill the GNU binutils version requirement. Use
the freshly generated binutils for glibc-headers too.

Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
---
 rules/glibc-headers.make |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/rules/glibc-headers.make b/rules/glibc-headers.make
index 7a729dd..a197a50 100644
--- a/rules/glibc-headers.make
+++ b/rules/glibc-headers.make
@@ -50,6 +50,11 @@ GLIBC_HEADERS_ENV  := \
 	$(HOST_ENV) \
 	CC="$${CC} $(PTXCONF_GLIBC_HEADERS_FAKE_CROSS)" \
 	\
+	libc_cv_prog_as_gnu=yes \
+	libc_cv_prog_ld_gnu=yes \
+	ac_cv_prog_AS="$(PTXCONF_SYSROOT_CROSS)/bin/$(PTX_TOUPLE_TARGET)-as" \
+	ac_cv_prog_LD="$(PTXCONF_SYSROOT_CROSS)/bin/$(PTX_TOUPLE_TARGET)-ld" \
+	\
 	libc_cv_asm_cfi_directive_sections=yes \
 	libc_cv_asm_cfi_directives=yes \
 	libc_cv_asm_protected_directive=yes \
-- 
1.7.8.2


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ptxdist] [PATCH 2/2] glibc-2.14.1: activate readelf detection
  2012-01-06 18:57 [ptxdist] [PATCH 0/2] Build OSELAS.Toolchain on OS X Andreas Bießmann
  2012-01-06 18:57 ` [ptxdist] [PATCH 1/2] glibc-headers: use freshly generated binutils Andreas Bießmann
@ 2012-01-06 18:57 ` Andreas Bießmann
  1 sibling, 0 replies; 3+ messages in thread
From: Andreas Bießmann @ 2012-01-06 18:57 UTC (permalink / raw)
  To: PTXdist ML; +Cc: Andreas Bießmann

The glibc-2.14.1 patch
0003-configure.in-detect-readelf-with-AC_CHECK_TARGET_TOO.patch adds the
ability to use a specific readelf but does not apply the changes. This
patch adds autogen.sh to re-run autotools on configure.in.

Without this patch OS X can not prepare glibc-headers cause of missing
'readelf' tool.

Signed-off-by: Andreas Bießmann <andreas@biessmann.de>
---
 patches/glibc-2.14.1/autogen.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100755 patches/glibc-2.14.1/autogen.sh

diff --git a/patches/glibc-2.14.1/autogen.sh b/patches/glibc-2.14.1/autogen.sh
new file mode 100755
index 0000000..2ba5507
--- /dev/null
+++ b/patches/glibc-2.14.1/autogen.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+# rebuild ./configure (required by
+# 0003-configure.in-detect-readelf-with-AC_CHECK_TARGET_TOO.patch) but do not
+# use autoreconf, this does not work on every system correctly. Even makefiles
+# do it that way!
+autoconf configure.in > configure
+
-- 
1.7.8.2


-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-06 18:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-06 18:57 [ptxdist] [PATCH 0/2] Build OSELAS.Toolchain on OS X Andreas Bießmann
2012-01-06 18:57 ` [ptxdist] [PATCH 1/2] glibc-headers: use freshly generated binutils Andreas Bießmann
2012-01-06 18:57 ` [ptxdist] [PATCH 2/2] glibc-2.14.1: activate readelf detection Andreas Bießmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox