Compare commits

...

35 Commits
master ... 1.13

Author SHA1 Message Date
Yann E. MORIN" 9bd6e61695 1.13: close branch 11 years ago
Yann E. MORIN" f209917f5e debug/strace: fix download URL 11 years ago
Yann E. MORIN" ffd4ed482f docs: update my e-mail 11 years ago
Johannes Stezenbach b8bbe07c7a docs/known-issues: add note about build issue on x86_64 with 32bit userspace 11 years ago
Yann E. MORIN" 3b6aa027d7 1.13: re-close the branch 11 years ago
Yann E. MORIN" 88146e5710 1.13: update version to 1.13.4+hg 11 years ago
Yann E. MORIN" f89d93435d Tagging release 1.13.4 11 years ago
Yann E. MORIN" c6392ee2bc 1.13: update version to 1.13.4 11 years ago
Yann E. MORIN" f0b1dcf562 scripts: fix download from sourceforge 11 years ago
Yann E. MORIN" 457786bde1 1.13: close branch 11 years ago
Yann E. MORIN" 3851941375 1.13: update version to 1.13.3+hg 11 years ago
Yann E. MORIN" e729cc6b9b Tagging release 1.13.3 11 years ago
Yann E. MORIN" d70895a000 1.13: update version to 1.13.3 11 years ago
Benoît Thébaudeau" 9dd914a126 libc/eglibc: fix localedef 2.14 build 11 years ago
Yann E. MORIN" 4235dbd5b8 scripts: fix dumping execution backtrace 11 years ago
Benoît Thébaudeau" 3ee64c2768 binutils/binutils: fix extra config array variable name 11 years ago
Yann E. MORIN" 1ad62aae82 scripts: unset CONFIG_SITE 11 years ago
Zhenqiang Chen 0b3127e020 scripts: create CT_HEADERS_DIR 11 years ago
Titus von Boxberg eabd25ae00 scripts: use CT_CONFIG_SHELL instead of CT_SHELL 11 years ago
Titus von Boxberg 421c524532 scripts/functions: extract: portable call for old and defective tars 11 years ago
Zhenqiang Chen 02fb9df45a cc/gcc: Apply CT_CC_GCC_DISABLE_PCH to do_cc_core. 11 years ago
Yann E. MORIN" 3ecfe9776c 1.13: update version to 1.13.2+hg 11 years ago
Yann E. MORIN" 0bcc986ff5 Tagging release 1.13.2 11 years ago
Yann E. MORIN" 542d48813e 1.13: update version to 1.13.2 11 years ago
Titus von Boxberg 0a2b5b9ba5 arch/x86: prescott is an i686 11 years ago
Yann E. MORIN" 5eac4bcc60 complibs/cloog: auto-reconf for 0.15.10 and later 11 years ago
Yann E. MORIN" f8a9bc6760 complibs/cloog: fix extraction 11 years ago
Willy Tarreau b8a99b8be0 debug/gdb: fix tic install path, tell ncurses where to find it 11 years ago
Yann E. MORIN" 581101a329 1.13: update version to 1.13.1+hg 11 years ago
Yann E. MORIN" a80249cd3a Tagging release 1.13.1 11 years ago
Yann E. MORIN" 3ef945bf6a 1.13: update version to 1.13.1 11 years ago
Yann E. MORIN" f2c5014909 kernel/linux: fix packed attribute in exported headers 11 years ago
Yann E. MORIN" 6ad1f80bd7 1.13: update version to 1.13.0+hg 11 years ago
Yann E. MORIN" b4d801e918 Tagging release 1.13.0 11 years ago
Yann E. MORIN" 0bd0455064 1.13: create maintenance branch, update version to 1.13.0 11 years ago
  1. 5
      .hgtags
  2. 2
      .version
  3. 9
      config/companion_libs/cloog.in
  4. 2
      contrib/gcc-test-suite/README
  5. 4
      ct-ng.in
  6. 2
      docs/0 - Table of content.txt
  7. 2
      docs/1 - Introduction.txt
  8. 2
      docs/2 - Installing crosstool-NG.txt
  9. 2
      docs/3 - Configuring a toolchain.txt
  10. 2
      docs/4 - Building the toolchain.txt
  11. 2
      docs/5 - Using the toolchain.txt
  12. 2
      docs/6 - Toolchain types.txt
  13. 4
      docs/7 - Contributing to crosstool-NG.txt
  14. 2
      docs/8 - Internals.txt
  15. 2
      docs/9 - How is a toolchain constructed.txt
  16. 2
      docs/A - Credits.txt
  17. 22
      docs/B - Known issues.txt
  18. 6
      docs/C - Misc. tutorials.txt
  19. 38
      patches/linux/3.0.1/100-headers_install-fix-__packed-in-exported-kernel-head.patch
  20. 38
      patches/linux/3.0.2/100-headers_install-fix-__packed-in-exported-kernel-head.patch
  21. 38
      patches/linux/3.0.3/100-headers_install-fix-__packed-in-exported-kernel-head.patch
  22. 38
      patches/linux/3.0.4/100-headers_install-fix-__packed-in-exported-kernel-head.patch
  23. 38
      patches/linux/3.0/100-headers_install-fix-__packed-in-exported-kernel-head.patch
  24. 1
      scripts/build/arch/x86.sh
  25. 2
      scripts/build/binutils/binutils.sh
  26. 2
      scripts/build/cc/gcc.sh
  27. 29
      scripts/build/companion_libs/cloog.sh
  28. 2
      scripts/build/debug/200-duma.sh
  29. 10
      scripts/build/debug/300-gdb.sh
  30. 3
      scripts/build/debug/500-strace.sh
  31. 2
      scripts/build/debug/duma.in
  32. 1
      scripts/build/libc/eglibc.sh
  33. 10
      scripts/crosstool-NG.sh.in
  34. 98
      scripts/functions
  35. 2
      scripts/xldd.in
  36. 2
      steps.mk

5
.hgtags

@ -30,3 +30,8 @@ c71b4f4da4b46aa83e6c013208731edfffd249a1 crosstool-ng-0.0.4
ce34b7cd6509906de6885c084dbef7ddecd603c6 crosstool-ng-1.1.3a
e016efb7036c14f86e1592114e621cfadeaf714c crosstool-ng-0.0.2
fec15dd785b1ab52e15a350665362c3f58852931 crosstool-ng-0.1.0
adc12224e93cb1ec76193529e26aae152cb4b528 crosstool-ng-1.13.0
d3fccce443b6d98e8ee3ea9f683b6d78b48fe1d3 crosstool-ng-1.13.1
d2c675360a172a5e5cafc92cf7bc411aa51e6095 crosstool-ng-1.13.2
2cb187afe0b9d640ba2d1f2efa15a4aa3fc95bcf crosstool-ng-1.13.3
1a29ad87a9ec16fda67e235a5013a6a7872f3f37 crosstool-ng-1.13.4

2
.version

@ -1 +1 @@
hg
1.13.4+hg

9
config/companion_libs/cloog.in

@ -10,10 +10,12 @@ config CLOOG_V_0_15_11
bool
prompt "0.15.11 (EXPERIMENTAL)"
depends on EXPERIMENTAL
select CLOOG_0_15_1x
config CLOOG_V_0_15_10
bool
prompt "0.15.10"
select CLOOG_0_15_1x
config CLOOG_V_0_15_9
bool
@ -46,3 +48,10 @@ config CLOOG_VERSION
default "0.15.5" if CLOOG_V_0_15_5
default "0.15.4" if CLOOG_V_0_15_4
default "0.15.3" if CLOOG_V_0_15_3
config CLOOG_0_15_1x
bool
select CLOOG_NEEDS_AUTORECONF
config CLOOG_NEEDS_AUTORECONF
bool

2
contrib/gcc-test-suite/README

@ -78,6 +78,6 @@ Author
Martin Lund <mgl@doredevelopment.dk>
Initial content
"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
"Yann E. MORIN" <yann.morin.1998@free.fr>
Getting rid of the test-suite
Minor fixes

4
ct-ng.in

@ -1,6 +1,6 @@
#!@@CT_make@@ -rf
# Makefile for crosstool-NG.
# Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
# Copyright 2006 Yann E. MORIN <yann.morin.1998@free.fr>
# Don't print directory as we descend into them
# Don't use built-in rules, we know what we're doing
@ -161,7 +161,7 @@ PHONY += version
version:
@echo 'This is crosstool-NG version $(CT_VERSION)'
@echo
@echo 'Copyright (C) 2008 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>'
@echo 'Copyright (C) 2008 Yann E. MORIN <yann.morin.1998@free.fr>'
@echo 'This is free software; see the source for copying conditions.'
@echo 'There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A'
@echo 'PARTICULAR PURPOSE.'

2
docs/0 - Table of content.txt

@ -1,5 +1,5 @@
File.........: 0 - Table of content.txt
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@free.fr>
License......: Creative Commons Attribution Share Alike (CC-by-sa), v2.5

2
docs/1 - Introduction.txt

@ -1,5 +1,5 @@
File.........: 1 - Introduction.txt
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@free.fr>
License......: Creative Commons Attribution Share Alike (CC-by-sa), v2.5

2
docs/2 - Installing crosstool-NG.txt

@ -1,5 +1,5 @@
File.........: 2 - Installing crosstool-NG.txt
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@free.fr>
License......: Creative Commons Attribution Share Alike (CC-by-sa), v2.5

2
docs/3 - Configuring a toolchain.txt

@ -1,5 +1,5 @@
File.........: 3 - Configuring a toolchain.txt
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@free.fr>
License......: Creative Commons Attribution Share Alike (CC-by-sa), v2.5

2
docs/4 - Building the toolchain.txt

@ -1,5 +1,5 @@
File.........: 4 - Building the toolchain.txt
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@free.fr>
License......: Creative Commons Attribution Share Alike (CC-by-sa), v2.5

2
docs/5 - Using the toolchain.txt

@ -1,5 +1,5 @@
File.........: 5 - Using the toolchain.txt
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@free.fr>
License......: Creative Commons Attribution Share Alike (CC-by-sa), v2.5

2
docs/6 - Toolchain types.txt

@ -1,5 +1,5 @@
File.........: 6 - Toolchain types.txt
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@free.fr>
License......: Creative Commons Attribution Share Alike (CC-by-sa), v2.5

4
docs/7 - Contributing to crosstool-NG.txt

@ -1,5 +1,5 @@
File.........: 7 - Contributing to crosstool-NG.txt
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@free.fr>
License......: Creative Commons Attribution Share Alike (CC-by-sa), v2.5
@ -12,7 +12,7 @@ Sending a bug report |
If you need to send a bug report, please send a mail with subject
prefixed with "[CT_NG]" with to following destinations:
TO: yann.morin.1998 (at) anciens.enib.fr
TO: yann.morin.1998 (at) free.fr
CC: crossgcc (at) sourceware.org

2
docs/8 - Internals.txt

@ -1,5 +1,5 @@
File.........: 8 - Internals.txt
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@free.fr>
License......: Creative Commons Attribution Share Alike (CC-by-sa), v2.5

2
docs/9 - How is a toolchain constructed.txt

@ -1,5 +1,5 @@
File.........: 9 - Build procedure overview.txt
Copyright....: (C) 2011 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Copyright....: (C) 2011 Yann E. MORIN <yann.morin.1998@free.fr>
License......: Creative Commons Attribution Share Alike (CC-by-sa), v2.5

2
docs/A - Credits.txt

@ -1,5 +1,5 @@
File.........: A - Credits.txt
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@free.fr>
License......: Creative Commons Attribution Share Alike (CC-by-sa), v2.5

22
docs/B - Known issues.txt

@ -1,5 +1,5 @@
File.........: B - Known issues.txt
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@free.fr>
License......: Creative Commons Attribution Share Alike (CC-by-sa), v2.5
@ -233,3 +233,23 @@ Workaround:
See above issue.
--------------------------------
Symptoms:
On x86_64 hosts with 32bit userspace the GMP build fails with:
configure: error: Oops, mp_limb_t is 32 bits, but the assembler code
in this configuration expects 64 bits.
You appear to have set $CFLAGS, perhaps you also need to tell GMP the
intended ABI, see "ABI and ISA" in the manual.
Explanations:
"uname -m" detects x86_64 but the build host is really x86.
Status:
CURRENT
Fix:
None so far. See above issue.
Workaround:
use "setarch i686 ct-ng build"
--------------------------------

6
docs/C - Misc. tutorials.txt

@ -1,5 +1,5 @@
File.........: C - Misc. tutorials.txt
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
Copyright....: (C) 2010 Yann E. MORIN <yann.morin.1998@free.fr>
License......: Creative Commons Attribution Share Alike (CC-by-sa), v2.5
@ -209,7 +209,7 @@ Here is a sample `hg email` complete command line:
Note: replace " (at) " with "@"
hg email --outgoing --intro \
--to '"Yann E. MORIN" <yann.morin.1998 (at) anciens.enib.fr>' \
--to '"Yann E. MORIN" <yann.morin.1998 (at) free.fr>' \
--cc 'crossgcc (at) sourceware.org'
# It then opens an editor and lets you enter the subject
@ -305,4 +305,4 @@ Here is an example commit message (see revision 8bb5151c5b01):
I missed refreshing the patch before pushing. :-(
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

38
patches/linux/3.0.1/100-headers_install-fix-__packed-in-exported-kernel-head.patch

@ -0,0 +1,38 @@
commit f210735fe2f17a6225432ee3d1239bcf23a8659c
Author: Markus Trippelsdorf <markus@trippelsdorf.de>
Date: Fri Jun 24 15:51:00 2011 +0200
headers_install: fix __packed in exported kernel headers
checkpatch.pl warns about using __attribute__((packed)) in kernel
headers: "__packed is preferred over __attribute__((packed))". If one
follows that advice it could cause problems in the exported header
files, because the outside world doesn't know about this shortcut.
For example busybox will fail to compile:
CC miscutils/ubi_attach_detach.o
In file included from miscutils/ubi_attach_detach.c:27:0:
/usr/include/mtd/ubi-user.h:330:3: error: conflicting types for ‘__packed’
/usr/include/mtd/ubi-user.h:314:3: note: previous declaration of ‘__packed’ was here
...
Fix the problem by substituting __packed with __attribute__((packed)) in
the header_install.pl script.
Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
CC: Joe Perches <joe@perches.com>
Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
diff --git a/scripts/headers_install.pl b/scripts/headers_install.pl
index efb3be1..48462be 100644
--- a/scripts/headers_install.pl
+++ b/scripts/headers_install.pl
@@ -35,6 +35,7 @@ foreach my $file (@files) {
$line =~ s/([\s(])__iomem\s/$1/g;
$line =~ s/\s__attribute_const__\s/ /g;
$line =~ s/\s__attribute_const__$//g;
+ $line =~ s/\b__packed\b/__attribute__((packed))/g;
$line =~ s/^#include <linux\/compiler.h>//;
$line =~ s/(^|\s)(inline)\b/$1__$2__/g;
$line =~ s/(^|\s)(asm)\b(\s|[(]|$)/$1__$2__$3/g;

38
patches/linux/3.0.2/100-headers_install-fix-__packed-in-exported-kernel-head.patch

@ -0,0 +1,38 @@
commit f210735fe2f17a6225432ee3d1239bcf23a8659c
Author: Markus Trippelsdorf <markus@trippelsdorf.de>
Date: Fri Jun 24 15:51:00 2011 +0200
headers_install: fix __packed in exported kernel headers
checkpatch.pl warns about using __attribute__((packed)) in kernel
headers: "__packed is preferred over __attribute__((packed))". If one
follows that advice it could cause problems in the exported header
files, because the outside world doesn't know about this shortcut.
For example busybox will fail to compile:
CC miscutils/ubi_attach_detach.o
In file included from miscutils/ubi_attach_detach.c:27:0:
/usr/include/mtd/ubi-user.h:330:3: error: conflicting types for ‘__packed’
/usr/include/mtd/ubi-user.h:314:3: note: previous declaration of ‘__packed’ was here
...
Fix the problem by substituting __packed with __attribute__((packed)) in
the header_install.pl script.
Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
CC: Joe Perches <joe@perches.com>
Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
diff --git a/scripts/headers_install.pl b/scripts/headers_install.pl
index efb3be1..48462be 100644
--- a/scripts/headers_install.pl
+++ b/scripts/headers_install.pl
@@ -35,6 +35,7 @@ foreach my $file (@files) {
$line =~ s/([\s(])__iomem\s/$1/g;
$line =~ s/\s__attribute_const__\s/ /g;
$line =~ s/\s__attribute_const__$//g;
+ $line =~ s/\b__packed\b/__attribute__((packed))/g;
$line =~ s/^#include <linux\/compiler.h>//;
$line =~ s/(^|\s)(inline)\b/$1__$2__/g;
$line =~ s/(^|\s)(asm)\b(\s|[(]|$)/$1__$2__$3/g;

38
patches/linux/3.0.3/100-headers_install-fix-__packed-in-exported-kernel-head.patch

@ -0,0 +1,38 @@
commit f210735fe2f17a6225432ee3d1239bcf23a8659c
Author: Markus Trippelsdorf <markus@trippelsdorf.de>
Date: Fri Jun 24 15:51:00 2011 +0200
headers_install: fix __packed in exported kernel headers
checkpatch.pl warns about using __attribute__((packed)) in kernel
headers: "__packed is preferred over __attribute__((packed))". If one
follows that advice it could cause problems in the exported header
files, because the outside world doesn't know about this shortcut.
For example busybox will fail to compile:
CC miscutils/ubi_attach_detach.o
In file included from miscutils/ubi_attach_detach.c:27:0:
/usr/include/mtd/ubi-user.h:330:3: error: conflicting types for ‘__packed’
/usr/include/mtd/ubi-user.h:314:3: note: previous declaration of ‘__packed’ was here
...
Fix the problem by substituting __packed with __attribute__((packed)) in
the header_install.pl script.
Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
CC: Joe Perches <joe@perches.com>
Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
diff --git a/scripts/headers_install.pl b/scripts/headers_install.pl
index efb3be1..48462be 100644
--- a/scripts/headers_install.pl
+++ b/scripts/headers_install.pl
@@ -35,6 +35,7 @@ foreach my $file (@files) {
$line =~ s/([\s(])__iomem\s/$1/g;
$line =~ s/\s__attribute_const__\s/ /g;
$line =~ s/\s__attribute_const__$//g;
+ $line =~ s/\b__packed\b/__attribute__((packed))/g;
$line =~ s/^#include <linux\/compiler.h>//;
$line =~ s/(^|\s)(inline)\b/$1__$2__/g;
$line =~ s/(^|\s)(asm)\b(\s|[(]|$)/$1__$2__$3/g;

38
patches/linux/3.0.4/100-headers_install-fix-__packed-in-exported-kernel-head.patch

@ -0,0 +1,38 @@
commit f210735fe2f17a6225432ee3d1239bcf23a8659c
Author: Markus Trippelsdorf <markus@trippelsdorf.de>
Date: Fri Jun 24 15:51:00 2011 +0200
headers_install: fix __packed in exported kernel headers
checkpatch.pl warns about using __attribute__((packed)) in kernel
headers: "__packed is preferred over __attribute__((packed))". If one
follows that advice it could cause problems in the exported header
files, because the outside world doesn't know about this shortcut.
For example busybox will fail to compile:
CC miscutils/ubi_attach_detach.o
In file included from miscutils/ubi_attach_detach.c:27:0:
/usr/include/mtd/ubi-user.h:330:3: error: conflicting types for ‘__packed’
/usr/include/mtd/ubi-user.h:314:3: note: previous declaration of ‘__packed’ was here
...
Fix the problem by substituting __packed with __attribute__((packed)) in
the header_install.pl script.
Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
CC: Joe Perches <joe@perches.com>
Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
diff --git a/scripts/headers_install.pl b/scripts/headers_install.pl
index efb3be1..48462be 100644
--- a/scripts/headers_install.pl
+++ b/scripts/headers_install.pl
@@ -35,6 +35,7 @@ foreach my $file (@files) {
$line =~ s/([\s(])__iomem\s/$1/g;
$line =~ s/\s__attribute_const__\s/ /g;
$line =~ s/\s__attribute_const__$//g;
+ $line =~ s/\b__packed\b/__attribute__((packed))/g;
$line =~ s/^#include <linux\/compiler.h>//;
$line =~ s/(^|\s)(inline)\b/$1__$2__/g;
$line =~ s/(^|\s)(asm)\b(\s|[(]|$)/$1__$2__$3/g;

38
patches/linux/3.0/100-headers_install-fix-__packed-in-exported-kernel-head.patch

@ -0,0 +1,38 @@
commit f210735fe2f17a6225432ee3d1239bcf23a8659c
Author: Markus Trippelsdorf <markus@trippelsdorf.de>
Date: Fri Jun 24 15:51:00 2011 +0200
headers_install: fix __packed in exported kernel headers
checkpatch.pl warns about using __attribute__((packed)) in kernel
headers: "__packed is preferred over __attribute__((packed))". If one
follows that advice it could cause problems in the exported header
files, because the outside world doesn't know about this shortcut.
For example busybox will fail to compile:
CC miscutils/ubi_attach_detach.o
In file included from miscutils/ubi_attach_detach.c:27:0:
/usr/include/mtd/ubi-user.h:330:3: error: conflicting types for ‘__packed’
/usr/include/mtd/ubi-user.h:314:3: note: previous declaration of ‘__packed’ was here
...
Fix the problem by substituting __packed with __attribute__((packed)) in
the header_install.pl script.
Cc: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
CC: Joe Perches <joe@perches.com>
Signed-off-by: Markus Trippelsdorf <markus@trippelsdorf.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
diff --git a/scripts/headers_install.pl b/scripts/headers_install.pl
index efb3be1..48462be 100644
--- a/scripts/headers_install.pl
+++ b/scripts/headers_install.pl
@@ -35,6 +35,7 @@ foreach my $file (@files) {
$line =~ s/([\s(])__iomem\s/$1/g;
$line =~ s/\s__attribute_const__\s/ /g;
$line =~ s/\s__attribute_const__$//g;
+ $line =~ s/\b__packed\b/__attribute__((packed))/g;
$line =~ s/^#include <linux\/compiler.h>//;
$line =~ s/(^|\s)(inline)\b/$1__$2__/g;
$line =~ s/(^|\s)(asm)\b(\s|[(]|$)/$1__$2__$3/g;

1
scripts/build/arch/x86.sh

@ -16,6 +16,7 @@ CT_DoArchTupleValues() {
winchip*) CT_TARGET_ARCH=i486;;
pentium|pentium-mmx|c3*) CT_TARGET_ARCH=i586;;
pentiumpro|pentium*|athlon*) CT_TARGET_ARCH=i686;;
prescott) CT_TARGET_ARCH=i686;;
*) CT_TARGET_ARCH=i586;;
esac
fi

2
scripts/build/binutils/binutils.sh

@ -165,7 +165,7 @@ do_binutils_target() {
--disable-multilib \
"${extra_config[@]}" \
${CT_ARCH_WITH_FLOAT} \
"${CT_BINUTILS_EXTRA_CONFIG[@]}"
"${CT_BINUTILS_EXTRA_CONFIG_ARRAY[@]}"
CT_DoLog EXTRA "Building binutils' libraries (${targets[*]}) for target"
CT_DoExecLog ALL make ${JOBSFLAGS} "${build_targets[@]}"

2
scripts/build/cc/gcc.sh

@ -288,6 +288,8 @@ do_cc_core() {
extra_config+=(--disable-libgomp)
extra_config+=(--disable-libmudflap)
[ "${CT_CC_GCC_DISABLE_PCH}" = "y" ] && extra_config+=("--disable-libstdcxx-pch")
CT_DoLog DEBUG "Extra config passed: '${extra_config[*]}'"
# Use --with-local-prefix so older gccs don't look in /usr/local (http://gcc.gnu.org/PR10532)

29
scripts/build/companion_libs/cloog.sh

@ -19,31 +19,22 @@ do_cloog_get() {
do_cloog_extract() {
local _t
CT_Extract "cloog-ppl-${CT_CLOOG_VERSION}"
# Version 0.15.3 has a dirname 'cloog-ppl' (with no version in it!)
# while versions 0.15.4 onward do have the version in the dirname.
case "${CT_CLOOG_VERSION}" in
0.15.3) _t="";;
*) _t="-${CT_CLOOG_VERSION}";;
esac
CT_Pushd "${CT_SRC_DIR}/cloog-ppl${_t}"
CT_Patch nochdir "cloog-ppl" "${CT_CLOOG_VERSION}"
if [ "${CT_CLOOG_VERSION}" = "0.15.10" ]; then
# But, because the infrastructure properly creates the extracted
# directories (with tar's --strip-components), we can live safely...
CT_Extract "cloog-ppl-${CT_CLOOG_VERSION}"
CT_Patch "cloog-ppl" "${CT_CLOOG_VERSION}"
if [ "${CT_CLOOG_NEEDS_AUTORECONF}" = "y" ]; then
CT_Pushd "${CT_SRC_DIR}/cloog-ppl-${CT_CLOOG_VERSION}"
CT_DoExecLog CFG ./autogen.sh
CT_Popd
fi
CT_Popd
}
do_cloog() {
local _t
# Version 0.15.3 has a dirname 'cloog-ppl' (with no version in it!)
# while versions 0.15.4 onward do have the version in the dirname.
case "${CT_CLOOG_VERSION}" in
0.15.3) _t="";;
*) _t="-${CT_CLOOG_VERSION}";;
esac
local cloog_src_dir="${CT_SRC_DIR}/cloog-ppl-${CT_CLOOG_VERSION}"
mkdir -p "${CT_BUILD_DIR}/build-cloog-ppl"
cd "${CT_BUILD_DIR}/build-cloog-ppl"
@ -55,7 +46,7 @@ do_cloog() {
CT_DoExecLog CFG \
CFLAGS="${CT_CFLAGS_FOR_HOST}" \
LDFLAGS="-lm" \
"${CT_SRC_DIR}/cloog-ppl${_t}/configure" \
"${cloog_src_dir}/configure" \
--build=${CT_BUILD} \
--host=${CT_HOST} \
--prefix="${CT_COMPLIBS_DIR}" \

2
scripts/build/debug/200-duma.sh

@ -4,7 +4,7 @@ do_debug_duma_get() {
# Downloading an non-existing file from sourceforge will give you an
# HTML file containing an error message, instead of returning a 404.
# Sigh...
CT_GetFile "duma_${CT_DUMA_VERSION}" .tar.gz http://mesh.dl.sourceforge.net/sourceforge/duma/
CT_GetFile "duma_${CT_DUMA_VERSION}" .tar.gz http://kent.dl.sourceforge.net/sourceforge/duma/
# Downloading from sourceforge may leave garbage, cleanup
CT_DoExecLog ALL rm -f "${CT_TARBALLS_DIR}/showfiles.php"*
}

10
scripts/build/debug/300-gdb.sh

@ -62,7 +62,7 @@ do_debug_gdb_get() {
if [ "${do_expat}" = "y" ]; then
CT_GetFile "expat-${CT_DEBUG_GDB_EXPAT_VERSION}" .tar.gz \
http://mesh.dl.sourceforge.net/sourceforge/expat/expat/${CT_DEBUG_GDB_EXPAT_VERSION}
http://kent.dl.sourceforge.net/project/expat/expat/${CT_DEBUG_GDB_EXPAT_VERSION}
fi
}
@ -219,13 +219,14 @@ do_debug_gdb_build() {
CT_DoExecLog ALL make ${JOBSFLAGS} -C include
CT_DoExecLog ALL make ${JOBSFLAGS} -C progs "tic${tic_ext}"
CT_DoExecLog ALL install -d -m 0755 "${CT_PREFIX_DIR}/buildtools"
CT_DoExecLog ALL install -m 0755 "progs/tic${tic_ext}" "${CT_PREFIX_DIR}/buildtools"
CT_DoExecLog ALL install -d -m 0755 "${CT_BUILDTOOLS_PREFIX_DIR}/bin"
CT_DoExecLog ALL install -m 0755 "progs/tic${tic_ext}" "${CT_BUILDTOOLS_PREFIX_DIR}/bin"
mkdir -p "${CT_BUILD_DIR}/build-ncurses"
cd "${CT_BUILD_DIR}/build-ncurses"
CT_DoExecLog CFG \
TIC_PATH="${CT_BUILDTOOLS_PREFIX_DIR}/bin/tic${tic_ext}" \
"${CT_SRC_DIR}/ncurses-${CT_DEBUG_GDB_NCURSES_VERSION}/configure" \
--build=${CT_BUILD} \
--host=${CT_TARGET} \
@ -243,9 +244,6 @@ do_debug_gdb_build() {
CT_DoExecLog ALL make install
# We no longer need the temporary tic. Remove it
CT_DoExecLog DEBUG rm -fv "${CT_PREFIX_DIR}/buildtools/tic${tic_ext}"
native_extra_config+=("--with-curses")
# There's no better way to tell gdb where to find -lcurses... :-(
gdb_native_CFLAGS+=("-I${CT_BUILD_DIR}/static-target/include")

3
scripts/build/debug/500-strace.sh

@ -1,7 +1,8 @@
# Build script for strace
do_debug_strace_get() {
CT_GetFile "strace-${CT_STRACE_VERSION}" http://mesh.dl.sourceforge.net/sourceforge/strace/
local base_url="http://kent.dl.sourceforge.net/project/strace/strace"
CT_GetFile "strace-${CT_STRACE_VERSION}" "${base_url}/${CT_STRACE_VERSION}"
# Downloading from sourceforge leaves garbage, cleanup
CT_DoExecLog ALL rm -f "${CT_TARBALLS_DIR}/showfiles.php"*
}

2
scripts/build/debug/duma.in

@ -1,5 +1,5 @@
#!/bin/sh
# (C) 2008 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
# (C) 2008 Yann E. MORIN <yann.morin.1998@free.fr>
# Licensed under the GPL v.2
LIBDUMA_SO=

1
scripts/build/libc/eglibc.sh

@ -142,6 +142,7 @@ do_libc_locales() {
# Configure with --prefix the way we want it on the target...
CT_DoExecLog CFG \
CPPFLAGS="-DNOT_IN_libc" \
"${src_dir}/configure" \
--prefix=/usr \
--cache-file="$(pwd)/config.cache" \

10
scripts/crosstool-NG.sh.in

@ -41,6 +41,8 @@ CT_TestAndAbort "Don't set CFLAGS. It screws up the build." -n "${CFLAGS}"
CT_TestAndAbort "Don't set CXXFLAGS. It screws up the build." -n "${CXXFLAGS}"
CT_Test "GREP_OPTIONS screws up the build. Resetting." -n "${GREP_OPTIONS}"
export GREP_OPTIONS=
# Workaround against openSUSE 12.1 that breaks ./configure for cross-compilation:
export CONFIG_SITE=
# Some sanity checks on paths content
for d in \
@ -80,7 +82,7 @@ cat "${CT_LIB_DIR}/paths.mk" |while read trash line; do
tool="${line%%=*}"
path="${line#*=}"
CT_DoLog DEBUG "Creating script-override for '${tool}' -> '${path}'"
printf "#${BANG}${CT_SHELL}\nexec '${path}' \"\${@}\"\n" >"${CT_TOOLS_OVERIDE_DIR}/bin/${tool}"
printf "#${BANG}${CT_CONFIG_SHELL}\nexec '${path}' \"\${@}\"\n" >"${CT_TOOLS_OVERIDE_DIR}/bin/${tool}"
CT_DoExecLog ALL chmod 700 "${CT_TOOLS_OVERIDE_DIR}/bin/${tool}"
done
export PATH="${CT_TOOLS_OVERIDE_DIR}/bin:${PATH}"
@ -303,7 +305,7 @@ if [ -z "${CT_RESTART}" ]; then
CT_DoExecLog ALL mkdir -p "${CT_PREFIX_DIR}/lib"
CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/lib"
CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/usr/lib"
CT_DoExecLog ALL mkdir -p "${CT_SYSROOT_DIR}/usr/include"
CT_DoExecLog ALL mkdir -p "${CT_HEADERS_DIR}"
if [ "${CT_USE_SYSROOT}" = "y" ]; then
# Prevent gcc from installing its libraries outside of the sysroot
@ -414,7 +416,7 @@ if [ -z "${CT_RESTART}" ]; then
# bally needed
if [ -n "${where}" ]; then
CT_DoLog DEBUG " '${!v}-${tool}' -> '${where}'"
printf "#${BANG}${CT_SHELL}\nexec '${where}' \"\${@}\"\n" >"${CT_BUILDTOOLS_PREFIX_DIR}/bin/${!v}-${tool}"
printf "#${BANG}${CT_CONFIG_SHELL}\nexec '${where}' \"\${@}\"\n" >"${CT_BUILDTOOLS_PREFIX_DIR}/bin/${!v}-${tool}"
CT_DoExecLog ALL chmod 700 "${CT_BUILDTOOLS_PREFIX_DIR}/bin/${!v}-${tool}"
else
case "${tool}" in
@ -448,7 +450,7 @@ if [ -z "${CT_RESTART}" ]; then
# Go ahead with those, by creating a wrapper that keeps partial files, and that
# never fails:
CT_DoLog DEBUG " 'makeinfo' -> '$(CT_Which makeinfo)'"
printf "#${BANG}${CT_SHELL}\n$(CT_Which makeinfo) --force \"\${@}\"\ntrue\n" >"${CT_BUILDTOOLS_PREFIX_DIR}/bin/makeinfo"
printf "#${BANG}${CT_CONFIG_SHELL}\n$(CT_Which makeinfo) --force \"\${@}\"\ntrue\n" >"${CT_BUILDTOOLS_PREFIX_DIR}/bin/makeinfo"
CT_DoExecLog ALL chmod 700 "${CT_BUILDTOOLS_PREFIX_DIR}/bin/makeinfo"
# Carefully add paths in the order we want them:

98
scripts/functions

@ -6,52 +6,52 @@
CT_OnError() {
local ret=$?
local intro
local file
local line
local func
local step_depth
# Bail out early in subshell, the upper level shell will act accordingly.
[ ${BASH_SUBSHELL} -eq 0 ] || exit $ret
# Print steps backtrace
step_depth=${CT_STEP_COUNT}
CT_STEP_COUNT=2
CT_DoLog ERROR ""
intro="Build failed"
for((step=step_depth; step>1; step--)); do
CT_DoLog ERROR ">> ${intro} in step '${CT_STEP_MESSAGE[${step}]}'"
intro=" called"
done
# Print functions backtrace
intro="Error happened in"
offset=1
CT_DoLog ERROR ">>"
for((depth=1; ${BASH_LINENO[$((${depth}-1))]}>0; depth++)); do
file="${BASH_SOURCE[${depth}]#${CT_LIB_DIR}/}"
case "${depth}" in
1) line="";;
*) line="@${BASH_LINENO[${depth}-1]}"
esac
func="${FUNCNAME[${depth}]}"
CT_DoLog ERROR ">> ${intro}: ${func}[${file}${line}]"
intro=" called from"
done
local file line func
local step step_depth
# To avoid printing the backtace for each sub-shell
# up to the top-level, just remember we've dumped it
if [ ! -f "${CT_BUILD_DIR}/backtrace" ]; then
touch "${CT_BUILD_DIR}/backtrace"
# Print steps backtrace
step_depth=${CT_STEP_COUNT}
CT_STEP_COUNT=1 # To have a zero-indentation
CT_DoLog ERROR ""
CT_DoLog ERROR ">>"
intro="Build failed"
for((step=step_depth; step>0; step--)); do
CT_DoLog ERROR ">> ${intro} in step '${CT_STEP_MESSAGE[${step}]}'"
intro=" called"
done
# Help diagnose the error
CT_DoLog ERROR ">>"
if [ "${CT_LOG_TO_FILE}" = "y" ]; then
CT_DoLog ERROR ">> For more info on this error, look at the file: '${tmp_log_file#${CT_TOP_DIR}/}'"
# Print functions backtrace
intro="Error happened in"
CT_DoLog ERROR ">>"
for((depth=1; ${BASH_LINENO[$((${depth}-1))]}>0; depth++)); do
file="${BASH_SOURCE[${depth}]#${CT_LIB_DIR}/}"
func="${FUNCNAME[${depth}]}"
line="@${BASH_LINENO[${depth}-1]:-?}"
CT_DoLog ERROR ">> ${intro}: ${func}[${file}${line}]"
intro=" called from"
done
fi
CT_DoLog ERROR ">> There is a list of known issues, some with workarounds, in:"
CT_DoLog ERROR ">> '${CT_DOC_DIR#${CT_TOP_DIR}/}/B - Known issues.txt'"
CT_DoLog ERROR ""
CT_DoLog ERROR "Build failed in step '${CT_STEP_MESSAGE[${CT_STEP_COUNT}]}'"
# And finally, in top-level shell, print some hints
if [ ${BASH_SUBSHELL} -eq 0 ]; then
# Help diagnose the error
CT_STEP_COUNT=1 # To have a zero-indentation
CT_DoLog ERROR ">>"
if [ "${CT_LOG_TO_FILE}" = "y" ]; then
CT_DoLog ERROR ">> For more info on this error, look at the file: '${tmp_log_file#${CT_TOP_DIR}/}'"
fi
CT_DoLog ERROR ">> There is a list of known issues, some with workarounds, in:"
CT_DoLog ERROR ">> '${CT_DOC_DIR#${CT_TOP_DIR}/}/B - Known issues.txt'"
CT_DoLog ERROR ""
CT_DoEnd ERROR
CT_DoLog ERROR ""
CT_DoEnd ERROR
rm -f "${CT_BUILD_DIR}/backtrace"
fi
exit $ret
}
@ -288,7 +288,7 @@ CT_DoDate() {
}
CT_STEP_COUNT=1
CT_STEP_MESSAGE[${CT_STEP_COUNT}]="<none>"
CT_STEP_MESSAGE[${CT_STEP_COUNT}]="(top-level)"
# Memorise a step being done so that any error is caught
# Usage: CT_DoStep <loglevel> <message>
CT_DoStep() {
@ -761,15 +761,15 @@ CT_Extract() {
# - so, if we get an lzma tarball, and either 'xz' or 'lzma' is
# missing, we can assume the other is available
if [ "${CT_CONFIGURE_has_lzma}" = "y" ]; then
lzma_prog=lzma
lzma_prog="lzma -fdc"
else
lzma_prog=xz
lzma_prog="xz -fdc"
fi
case "${ext}" in
.tar.xz) CT_DoExecLog FILE tar "${tar_opts[@]}" --use-compress-program=xz -f "${full_file}";;
.tar.lzma) CT_DoExecLog FILE tar "${tar_opts[@]}" --use-compress-program="${lzma_prog}" -f "${full_file}";;
.tar.bz2) CT_DoExecLog FILE tar "${tar_opts[@]}" -j -f "${full_file}";;
.tar.gz|.tgz) CT_DoExecLog FILE tar "${tar_opts[@]}" -z -f "${full_file}";;
.tar.xz) xz -fdc "${full_file}" | CT_DoExecLog FILE tar "${tar_opts[@]}" -f -;;
.tar.lzma) ${lzma_prog} "${full_file}" | CT_DoExecLog FILE tar "${tar_opts[@]}" -f -;;
.tar.bz2) bzip2 -dc "${full_file}" | CT_DoExecLog FILE tar "${tar_opts[@]}" -f -;;
.tar.gz|.tgz) gzip -dc "${full_file}" | CT_DoExecLog FILE tar "${tar_opts[@]}" -f -;;
.tar) CT_DoExecLog FILE tar "${tar_opts[@]}" -f "${full_file}";;
/.git) CT_ExtractGit "${basename}" "${@}";;
*) CT_DoLog WARN "Don't know how to handle '${basename}${ext}': unknown extension"

2
scripts/xldd.in

@ -39,7 +39,7 @@ show_version() {
# Fake a real ldd, just in case some dumb script would check
cat <<_EOF_
ldd (crosstool-NG) ${version}
Copyright (C) 2010 "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Copyright (C) 2010 "Yann E. MORIN" <yann.morin.1998@free.fr>
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Licensed under the GPLv2, see the file LICENSES in the top-directory of the

2
steps.mk

@ -1,5 +1,5 @@
# Makefile for each steps
# Copyright 2006 Yann E. MORIN <yann.morin.1998@anciens.enib.fr>
# Copyright 2006 Yann E. MORIN <yann.morin.1998@free.fr>
# ----------------------------------------------------------
# This is the steps help entry

Loading…
Cancel
Save