diff options
| author | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2005-08-31 10:45:47 +0000 |
| commit | 4b46c1f6e891b1ddd5968536440b888661fade3e (patch) | |
| tree | e0ba2c1f56f61b868bf746da5c4feabb25b800b2 /openembedded/packages/binutils | |
| download | poky-4b46c1f6e891b1ddd5968536440b888661fade3e.tar.gz | |
Initial population
git-svn-id: https://svn.o-hand.com/repos/poky@1 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/binutils')
14 files changed, 1289 insertions, 0 deletions
diff --git a/openembedded/packages/binutils/binutils-2.15.94.0.1/binutils-100_cflags_for_build.patch b/openembedded/packages/binutils/binutils-2.15.94.0.1/binutils-100_cflags_for_build.patch new file mode 100644 index 0000000000..468808bf59 --- /dev/null +++ b/openembedded/packages/binutils/binutils-2.15.94.0.1/binutils-100_cflags_for_build.patch | |||
| @@ -0,0 +1,91 @@ | |||
| 1 | |||
| 2 | # | ||
| 3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
| 4 | # | ||
| 5 | |||
| 6 | --- src/bfd/doc/Makefile.am~binutils-100_cflags_for_build.patch | ||
| 7 | +++ src/bfd/doc/Makefile.am | ||
| 8 | @@ -55,10 +55,10 @@ | ||
| 9 | MKDOC = chew$(EXEEXT_FOR_BUILD) | ||
| 10 | |||
| 11 | $(MKDOC): chew.o | ||
| 12 | - $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(CFLAGS) $(LOADLIBES) $(LDFLAGS) | ||
| 13 | + $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(CFLAGS_FOR_BUILD) $(LOADLIBES) $(LDFLAGS_FOR_BUILD) | ||
| 14 | |||
| 15 | chew.o: chew.c | ||
| 16 | - $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS) $(CFLAGS) $(srcdir)/chew.c | ||
| 17 | + $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS) $(CFLAGS_FOR_BUILD) $(srcdir)/chew.c | ||
| 18 | |||
| 19 | protos: libbfd.h libcoff.h bfd.h | ||
| 20 | |||
| 21 | --- src/binutils/Makefile.am~binutils-100_cflags_for_build.patch | ||
| 22 | +++ src/binutils/Makefile.am | ||
| 23 | @@ -219,20 +219,20 @@ | ||
| 24 | ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h | ||
| 25 | |||
| 26 | sysinfo$(EXEEXT_FOR_BUILD): sysinfo.o syslex.o | ||
| 27 | - $(CC_FOR_BUILD) $(CFLAGS) $(LDFLAGS) -o $@ sysinfo.o syslex.o | ||
| 28 | + $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ sysinfo.o syslex.o | ||
| 29 | |||
| 30 | syslex.o: syslex.c sysinfo.h | ||
| 31 | if [ -r syslex.c ]; then \ | ||
| 32 | - $(CC_FOR_BUILD) -c -I. $(CFLAGS) syslex.c ; \ | ||
| 33 | + $(CC_FOR_BUILD) -c -I. $(CFLAGS_FOR_BUILD) syslex.c ; \ | ||
| 34 | else \ | ||
| 35 | - $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(CFLAGS) $(srcdir)/syslex.c ;\ | ||
| 36 | + $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(CFLAGS_FOR_BUILD) $(srcdir)/syslex.c ;\ | ||
| 37 | fi | ||
| 38 | |||
| 39 | sysinfo.o: sysinfo.c | ||
| 40 | if [ -r sysinfo.c ]; then \ | ||
| 41 | - $(CC_FOR_BUILD) -c -I. $(CFLAGS) sysinfo.c ; \ | ||
| 42 | + $(CC_FOR_BUILD) -c -I. $(CFLAGS_FOR_BUILD) sysinfo.c ; \ | ||
| 43 | else \ | ||
| 44 | - $(CC_FOR_BUILD) -c -I. $(CFLAGS) $(srcdir)/sysinfo.c ; \ | ||
| 45 | + $(CC_FOR_BUILD) -c -I. $(CFLAGS_FOR_BUILD) $(srcdir)/sysinfo.c ; \ | ||
| 46 | fi | ||
| 47 | |||
| 48 | # We need these for parallel make. | ||
| 49 | --- src/bfd/doc/Makefile.in~binutils-100_cflags_for_build.patch | ||
| 50 | +++ src/bfd/doc/Makefile.in | ||
| 51 | @@ -470,10 +470,10 @@ | ||
| 52 | |||
| 53 | |||
| 54 | $(MKDOC): chew.o | ||
| 55 | - $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(CFLAGS) $(LOADLIBES) $(LDFLAGS) | ||
| 56 | + $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(CFLAGS_FOR_BUILD) $(LOADLIBES) $(LDFLAGS_FOR_BUILD) | ||
| 57 | |||
| 58 | chew.o: chew.c | ||
| 59 | - $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS) $(CFLAGS) $(srcdir)/chew.c | ||
| 60 | + $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS) $(CFLAGS_FOR_BUILD) $(srcdir)/chew.c | ||
| 61 | |||
| 62 | protos: libbfd.h libcoff.h bfd.h | ||
| 63 | |||
| 64 | --- src/binutils/Makefile.in~binutils-100_cflags_for_build.patch | ||
| 65 | +++ src/binutils/Makefile.in | ||
| 66 | @@ -978,20 +978,20 @@ | ||
| 67 | ./sysinfo$(EXEEXT_FOR_BUILD) -d <$(srcdir)/sysroff.info >sysroff.h | ||
| 68 | |||
| 69 | sysinfo$(EXEEXT_FOR_BUILD): sysinfo.o syslex.o | ||
| 70 | - $(CC_FOR_BUILD) $(CFLAGS) $(LDFLAGS) -o $@ sysinfo.o syslex.o | ||
| 71 | + $(CC_FOR_BUILD) $(CFLAGS_FOR_BUILD) $(LDFLAGS_FOR_BUILD) -o $@ sysinfo.o syslex.o | ||
| 72 | |||
| 73 | syslex.o: syslex.c sysinfo.h | ||
| 74 | if [ -r syslex.c ]; then \ | ||
| 75 | - $(CC_FOR_BUILD) -c -I. $(CFLAGS) syslex.c ; \ | ||
| 76 | + $(CC_FOR_BUILD) -c -I. $(CFLAGS_FOR_BUILD) syslex.c ; \ | ||
| 77 | else \ | ||
| 78 | - $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(CFLAGS) $(srcdir)/syslex.c ;\ | ||
| 79 | + $(CC_FOR_BUILD) -c -I. -I$(srcdir) $(CFLAGS_FOR_BUILD) $(srcdir)/syslex.c ;\ | ||
| 80 | fi | ||
| 81 | |||
| 82 | sysinfo.o: sysinfo.c | ||
| 83 | if [ -r sysinfo.c ]; then \ | ||
| 84 | - $(CC_FOR_BUILD) -c -I. $(CFLAGS) sysinfo.c ; \ | ||
| 85 | + $(CC_FOR_BUILD) -c -I. $(CFLAGS_FOR_BUILD) sysinfo.c ; \ | ||
| 86 | else \ | ||
| 87 | - $(CC_FOR_BUILD) -c -I. $(CFLAGS) $(srcdir)/sysinfo.c ; \ | ||
| 88 | + $(CC_FOR_BUILD) -c -I. $(CFLAGS_FOR_BUILD) $(srcdir)/sysinfo.c ; \ | ||
| 89 | fi | ||
| 90 | |||
| 91 | # We need these for parallel make. | ||
diff --git a/openembedded/packages/binutils/binutils-2.15.94.0.1/binutils-2.15.90.0.3-uclibc-200-build_modules.patch b/openembedded/packages/binutils/binutils-2.15.94.0.1/binutils-2.15.90.0.3-uclibc-200-build_modules.patch new file mode 100644 index 0000000000..3560d2ca36 --- /dev/null +++ b/openembedded/packages/binutils/binutils-2.15.94.0.1/binutils-2.15.90.0.3-uclibc-200-build_modules.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | |||
| 2 | # | ||
| 3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
| 4 | # | ||
| 5 | |||
| 6 | --- src/configure~binutils-2.15.90.0.3-uclibc-200-build_modules.patch | ||
| 7 | +++ src/configure | ||
| 8 | @@ -940,6 +940,11 @@ | ||
| 9 | build_configdirs=`echo ${build_libs} ${build_tools}` | ||
| 10 | fi | ||
| 11 | |||
| 12 | +case "$target" in | ||
| 13 | + *-*-*-uclibc*) | ||
| 14 | + build_modules= | ||
| 15 | + ;; | ||
| 16 | +esac | ||
| 17 | ################################################################################ | ||
| 18 | |||
| 19 | srcname="gnu development package" | ||
| 20 | --- src/configure.in~binutils-2.15.90.0.3-uclibc-200-build_modules.patch | ||
| 21 | +++ src/configure.in | ||
| 22 | @@ -189,6 +189,11 @@ | ||
| 23 | build_configdirs=`echo ${build_libs} ${build_tools}` | ||
| 24 | fi | ||
| 25 | |||
| 26 | +case "$target" in | ||
| 27 | + *-*-*-uclibc*) | ||
| 28 | + build_modules= | ||
| 29 | + ;; | ||
| 30 | +esac | ||
| 31 | ################################################################################ | ||
| 32 | |||
| 33 | srcname="gnu development package" | ||
diff --git a/openembedded/packages/binutils/binutils-2.15.94.0.1/binutils-2.15.90.0.3-uclibc-210-cflags.patch b/openembedded/packages/binutils/binutils-2.15.94.0.1/binutils-2.15.90.0.3-uclibc-210-cflags.patch new file mode 100644 index 0000000000..40a71c602a --- /dev/null +++ b/openembedded/packages/binutils/binutils-2.15.94.0.1/binutils-2.15.90.0.3-uclibc-210-cflags.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | --- binutils-2.15.90.0.3/bfd/doc/Makefile.am.cflags 2004-01-14 16:07:44.000000000 -0500 | ||
| 2 | +++ binutils-2.15.90.0.3/bfd/doc/Makefile.am 2004-04-22 22:06:35.000000000 -0400 | ||
| 3 | @@ -55,10 +55,10 @@ | ||
| 4 | MKDOC = chew$(EXEEXT_FOR_BUILD) | ||
| 5 | |||
| 6 | $(MKDOC): chew.o | ||
| 7 | - $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(CFLAGS) $(LOADLIBES) $(LDFLAGS) | ||
| 8 | + $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(CFLAGS_FOR_BUILD) $(LOADLIBES) $(LDFLAGS) | ||
| 9 | |||
| 10 | chew.o: chew.c | ||
| 11 | - $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS) $(CFLAGS) $(srcdir)/chew.c | ||
| 12 | + $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS) $(CFLAGS_FOR_BUILD) $(srcdir)/chew.c | ||
| 13 | |||
| 14 | protos: libbfd.h libcoff.h bfd.h | ||
| 15 | |||
| 16 | --- binutils-2.15.90.0.3/bfd/doc/Makefile.in.cflags 2004-04-12 15:56:34.000000000 -0400 | ||
| 17 | +++ binutils-2.15.90.0.3/bfd/doc/Makefile.in 2004-04-22 22:06:35.000000000 -0400 | ||
| 18 | @@ -472,10 +472,10 @@ | ||
| 19 | |||
| 20 | |||
| 21 | $(MKDOC): chew.o | ||
| 22 | - $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(CFLAGS) $(LOADLIBES) $(LDFLAGS) | ||
| 23 | + $(CC_FOR_BUILD) -o $(MKDOC) chew.o $(CFLAGS_FOR_BUILD) $(LOADLIBES) $(LDFLAGS) | ||
| 24 | |||
| 25 | chew.o: chew.c | ||
| 26 | - $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS) $(CFLAGS) $(srcdir)/chew.c | ||
| 27 | + $(CC_FOR_BUILD) -c -I.. -I$(srcdir)/.. -I$(srcdir)/../../include -I$(srcdir)/../../intl -I../../intl $(H_CFLAGS) $(CFLAGS_FOR_BUILD) $(srcdir)/chew.c | ||
| 28 | |||
| 29 | protos: libbfd.h libcoff.h bfd.h | ||
| 30 | |||
diff --git a/openembedded/packages/binutils/binutils-2.15.94.0.1/binutils-2.15.91.0.1-uclibc-100-conf.patch b/openembedded/packages/binutils/binutils-2.15.94.0.1/binutils-2.15.91.0.1-uclibc-100-conf.patch new file mode 100644 index 0000000000..d650cdbc91 --- /dev/null +++ b/openembedded/packages/binutils/binutils-2.15.94.0.1/binutils-2.15.91.0.1-uclibc-100-conf.patch | |||
| @@ -0,0 +1,604 @@ | |||
| 1 | |||
| 2 | # | ||
| 3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
| 4 | # | ||
| 5 | |||
| 6 | --- binutils-2.15.94.0.1/bfd/config.bfd~binutils-2.15.91.0.1-uclibc-100-conf | ||
| 7 | +++ binutils-2.15.94.0.1/bfd/config.bfd | ||
| 8 | @@ -140,7 +140,7 @@ | ||
| 9 | targ_defvec=ecoffalpha_little_vec | ||
| 10 | targ_selvecs=bfd_elf64_alpha_vec | ||
| 11 | ;; | ||
| 12 | - alpha*-*-linux-gnu* | alpha*-*-elf*) | ||
| 13 | + alpha*-*-linux-gnu* | alpha*-*-linux-uclibc* | alpha*-*-elf*) | ||
| 14 | targ_defvec=bfd_elf64_alpha_vec | ||
| 15 | targ_selvecs=ecoffalpha_little_vec | ||
| 16 | ;; | ||
| 17 | @@ -150,7 +150,7 @@ | ||
| 18 | alpha*-*-*) | ||
| 19 | targ_defvec=ecoffalpha_little_vec | ||
| 20 | ;; | ||
| 21 | - ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-elf* | ia64*-*-kfreebsd*-gnu) | ||
| 22 | + ia64*-*-freebsd* | ia64*-*-netbsd* | ia64*-*-linux-gnu* | ia64*-*-elf* | ia64*-*-linux-uclibc* | ia64*-*-kfreebsd*-gnu) | ||
| 23 | targ_defvec=bfd_elf64_ia64_little_vec | ||
| 24 | targ_selvecs="bfd_elf64_ia64_big_vec bfd_efi_app_ia64_vec" | ||
| 25 | ;; | ||
| 26 | @@ -227,7 +227,7 @@ | ||
| 27 | targ_defvec=bfd_elf32_littlearm_vec | ||
| 28 | targ_selvecs=bfd_elf32_bigarm_vec | ||
| 29 | ;; | ||
| 30 | - armeb-*-elf | arm*b-*-linux-gnu*) | ||
| 31 | + armeb-*-elf | arm*b-*-linux-gnu* | arm*b-*-linux-uclibc*) | ||
| 32 | targ_defvec=bfd_elf32_bigarm_vec | ||
| 33 | targ_selvecs=bfd_elf32_littlearm_vec | ||
| 34 | ;; | ||
| 35 | @@ -237,7 +237,7 @@ | ||
| 36 | ;; | ||
| 37 | arm-*-elf | arm-*-freebsd* | arm*-*-linux-gnu* | arm*-*-conix* | \ | ||
| 38 | arm*-*-uclinux* | arm-*-kfreebsd*-gnu | arm-*-vxworks | \ | ||
| 39 | - arm*-*-eabi* ) | ||
| 40 | + arm*-*-eabi* | arm*-*-linux-uclibc* ) | ||
| 41 | targ_defvec=bfd_elf32_littlearm_vec | ||
| 42 | targ_selvecs=bfd_elf32_bigarm_vec | ||
| 43 | ;; | ||
| 44 | @@ -381,7 +381,7 @@ | ||
| 45 | ;; | ||
| 46 | |||
| 47 | #ifdef BFD64 | ||
| 48 | - hppa*64*-*-linux-gnu*) | ||
| 49 | + hppa*64*-*-linux-gnu* | hppa*64*-*-linux-uclibc*) | ||
| 50 | targ_defvec=bfd_elf64_hppa_linux_vec | ||
| 51 | targ_selvecs=bfd_elf64_hppa_vec | ||
| 52 | ;; | ||
| 53 | @@ -392,7 +392,7 @@ | ||
| 54 | ;; | ||
| 55 | #endif | ||
| 56 | |||
| 57 | - hppa*-*-linux-gnu*) | ||
| 58 | + hppa*-*-linux-gnu* | hppa*-*-linux-uclibc*) | ||
| 59 | targ_defvec=bfd_elf32_hppa_linux_vec | ||
| 60 | targ_selvecs=bfd_elf32_hppa_vec | ||
| 61 | ;; | ||
| 62 | @@ -525,7 +525,7 @@ | ||
| 63 | targ_selvecs=bfd_elf32_i386_vec | ||
| 64 | targ_underscore=yes | ||
| 65 | ;; | ||
| 66 | - i[3-7]86-*-linux-gnu*) | ||
| 67 | + i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*) | ||
| 68 | targ_defvec=bfd_elf32_i386_vec | ||
| 69 | targ_selvecs="i386linux_vec bfd_efi_app_ia32_vec" | ||
| 70 | targ64_selvecs=bfd_elf64_x86_64_vec | ||
| 71 | @@ -539,7 +539,7 @@ | ||
| 72 | targ_defvec=bfd_elf64_x86_64_vec | ||
| 73 | targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec bfd_efi_app_ia32_vec" | ||
| 74 | ;; | ||
| 75 | - x86_64-*-linux-gnu*) | ||
| 76 | + x86_64-*-linux-gnu* | x86_64-*-linux-uclibc*) | ||
| 77 | targ_defvec=bfd_elf64_x86_64_vec | ||
| 78 | targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec" | ||
| 79 | ;; | ||
| 80 | @@ -715,7 +715,7 @@ | ||
| 81 | targ_selvecs=bfd_elf32_m68k_vec | ||
| 82 | targ_underscore=yes | ||
| 83 | ;; | ||
| 84 | - m68*-*-linux-gnu*) | ||
| 85 | + m68*-*-linux-gnu* | m68*-*-linux-uclibc*) | ||
| 86 | targ_defvec=bfd_elf32_m68k_vec | ||
| 87 | targ_selvecs=m68klinux_vec | ||
| 88 | ;; | ||
| 89 | @@ -1001,7 +1001,8 @@ | ||
| 90 | ;; | ||
| 91 | #endif | ||
| 92 | powerpc-*-*bsd* | powerpc-*-elf* | powerpc-*-sysv4* | powerpc-*-eabi* | \ | ||
| 93 | - powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-rtems* | \ | ||
| 94 | + powerpc-*-solaris2* | powerpc-*-linux-gnu* | powerpc-*-linux-uclibc* | \ | ||
| 95 | + powerpc-*-rtems* | \ | ||
| 96 | powerpc-*-chorus* | powerpc-*-vxworks* | powerpc-*-windiss*) | ||
| 97 | targ_defvec=bfd_elf32_powerpc_vec | ||
| 98 | targ_selvecs="rs6000coff_vec bfd_elf32_powerpcle_vec ppcboot_vec" | ||
| 99 | @@ -1038,8 +1039,8 @@ | ||
| 100 | targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec" | ||
| 101 | ;; | ||
| 102 | powerpcle-*-elf* | powerpcle-*-sysv4* | powerpcle-*-eabi* | \ | ||
| 103 | - powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-vxworks* |\ | ||
| 104 | - powerpcle-*-rtems*) | ||
| 105 | + powerpcle-*-solaris2* | powerpcle-*-linux-gnu* | powerpcle-*-linux-uclibc* |\ | ||
| 106 | + powerpcle-*-vxworks* | powerpcle-*-rtems*) | ||
| 107 | targ_defvec=bfd_elf32_powerpcle_vec | ||
| 108 | targ_selvecs="rs6000coff_vec bfd_elf32_powerpc_vec ppcboot_vec" | ||
| 109 | targ64_selvecs="bfd_elf64_powerpc_vec bfd_elf64_powerpcle_vec" | ||
| 110 | @@ -1206,7 +1207,7 @@ | ||
| 111 | targ_selvecs="bfd_elf32_sparc_vec sunos_big_vec" | ||
| 112 | targ_underscore=yes | ||
| 113 | ;; | ||
| 114 | - sparc-*-linux-gnu*) | ||
| 115 | + sparc-*-linux-gnu* | sparc-*-linux-uclibc*) | ||
| 116 | targ_defvec=bfd_elf32_sparc_vec | ||
| 117 | targ_selvecs="sparclinux_vec bfd_elf64_sparc_vec sunos_big_vec" | ||
| 118 | ;; | ||
| 119 | @@ -1253,7 +1254,7 @@ | ||
| 120 | targ_defvec=sunos_big_vec | ||
| 121 | targ_underscore=yes | ||
| 122 | ;; | ||
| 123 | - sparc64-*-linux-gnu*) | ||
| 124 | + sparc64-*-linux-gnu* | sparc64-*-linux-uclibc*) | ||
| 125 | targ_defvec=bfd_elf64_sparc_vec | ||
| 126 | targ_selvecs="bfd_elf32_sparc_vec sparclinux_vec sunos_big_vec" | ||
| 127 | ;; | ||
| 128 | --- binutils-2.15.94.0.1/bfd/configure~binutils-2.15.91.0.1-uclibc-100-conf | ||
| 129 | +++ binutils-2.15.94.0.1/bfd/configure | ||
| 130 | @@ -3583,6 +3583,11 @@ | ||
| 131 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | ||
| 132 | ;; | ||
| 133 | |||
| 134 | +linux-uclibc*) | ||
| 135 | + lt_cv_deplibs_check_method=pass_all | ||
| 136 | + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` | ||
| 137 | + ;; | ||
| 138 | + | ||
| 139 | netbsd* | knetbsd*-gnu) | ||
| 140 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
| 141 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | ||
| 142 | @@ -9914,7 +9919,7 @@ | ||
| 143 | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) | ||
| 144 | COREFILE='' | ||
| 145 | ;; | ||
| 146 | - alpha*-*-linux-gnu*) | ||
| 147 | + alpha*-*-linux-gnu* | alpha*-*-linux-uclibc*) | ||
| 148 | COREFILE=trad-core.lo | ||
| 149 | TRAD_HEADER='"hosts/alphalinux.h"' | ||
| 150 | ;; | ||
| 151 | @@ -9978,7 +9983,7 @@ | ||
| 152 | COREFILE=trad-core.lo | ||
| 153 | TRAD_HEADER='"hosts/i386mach3.h"' | ||
| 154 | ;; | ||
| 155 | - i[3-7]86-*-linux-gnu*) | ||
| 156 | + i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*) | ||
| 157 | COREFILE=trad-core.lo | ||
| 158 | TRAD_HEADER='"hosts/i386linux.h"' | ||
| 159 | ;; | ||
| 160 | @@ -10016,7 +10021,7 @@ | ||
| 161 | COREFILE=trad-core.lo | ||
| 162 | TRAD_HEADER='"hosts/hp300bsd.h"' | ||
| 163 | ;; | ||
| 164 | - m68*-*-linux-gnu*) | ||
| 165 | + m68*-*-linux-gnu* | m68*-*-linux-uclibc*) | ||
| 166 | COREFILE=trad-core.lo | ||
| 167 | TRAD_HEADER='"hosts/m68klinux.h"' | ||
| 168 | ;; | ||
| 169 | --- binutils-2.15.94.0.1/bfd/configure.in~binutils-2.15.91.0.1-uclibc-100-conf | ||
| 170 | +++ binutils-2.15.94.0.1/bfd/configure.in | ||
| 171 | @@ -163,7 +163,7 @@ | ||
| 172 | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) | ||
| 173 | COREFILE='' | ||
| 174 | ;; | ||
| 175 | - alpha*-*-linux-gnu*) | ||
| 176 | + alpha*-*-linux-gnu* | alpha*-*-linux-uclibc*) | ||
| 177 | COREFILE=trad-core.lo | ||
| 178 | TRAD_HEADER='"hosts/alphalinux.h"' | ||
| 179 | ;; | ||
| 180 | @@ -248,7 +248,7 @@ | ||
| 181 | TRAD_HEADER='"hosts/i386mach3.h"' | ||
| 182 | ;; | ||
| 183 | changequote(,)dnl | ||
| 184 | - i[3-7]86-*-linux-gnu*) | ||
| 185 | + i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*) | ||
| 186 | changequote([,])dnl | ||
| 187 | COREFILE=trad-core.lo | ||
| 188 | TRAD_HEADER='"hosts/i386linux.h"' | ||
| 189 | @@ -289,7 +289,7 @@ | ||
| 190 | COREFILE=trad-core.lo | ||
| 191 | TRAD_HEADER='"hosts/hp300bsd.h"' | ||
| 192 | ;; | ||
| 193 | - m68*-*-linux-gnu*) | ||
| 194 | + m68*-*-linux-gnu* | m68*-*-linux-uclibc*) | ||
| 195 | COREFILE=trad-core.lo | ||
| 196 | TRAD_HEADER='"hosts/m68klinux.h"' | ||
| 197 | ;; | ||
| 198 | --- binutils-2.15.94.0.1/gas/configure~binutils-2.15.91.0.1-uclibc-100-conf | ||
| 199 | +++ binutils-2.15.94.0.1/gas/configure | ||
| 200 | @@ -3420,6 +3420,11 @@ | ||
| 201 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | ||
| 202 | ;; | ||
| 203 | |||
| 204 | +linux-uclibc*) | ||
| 205 | + lt_cv_deplibs_check_method=pass_all | ||
| 206 | + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` | ||
| 207 | + ;; | ||
| 208 | + | ||
| 209 | netbsd* | knetbsd*-gnu) | ||
| 210 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
| 211 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | ||
| 212 | @@ -4256,6 +4261,7 @@ | ||
| 213 | alpha*-*-osf*) fmt=ecoff ;; | ||
| 214 | alpha*-*-linuxecoff*) fmt=ecoff ;; | ||
| 215 | alpha*-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 216 | + alpha*-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 217 | alpha*-*-netbsd*) fmt=elf em=nbsd ;; | ||
| 218 | alpha*-*-openbsd*) fmt=elf em=obsd ;; | ||
| 219 | |||
| 220 | @@ -4271,6 +4277,7 @@ | ||
| 221 | arm*-*-conix*) fmt=elf ;; | ||
| 222 | arm-*-linux*aout*) fmt=aout em=linux ;; | ||
| 223 | arm*-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 224 | + arm*-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 225 | arm*-*-uclinux*) fmt=elf em=linux ;; | ||
| 226 | arm-*-netbsdelf*) fmt=elf em=nbsd ;; | ||
| 227 | arm-*-*n*bsd*) fmt=aout em=nbsd ;; | ||
| 228 | @@ -4284,6 +4291,7 @@ | ||
| 229 | |||
| 230 | cris-*-linux-gnu* | crisv32-*-linux-gnu*) | ||
| 231 | fmt=multi bfd_gas=yes em=linux ;; | ||
| 232 | + cris-*-linux-uclibc*) fmt=multi bfd_gas=yes em=linux ;; | ||
| 233 | cris-*-* | crisv32-*-*) fmt=multi bfd_gas=yes ;; | ||
| 234 | |||
| 235 | crx-*-elf*) fmt=elf ;; | ||
| 236 | @@ -4343,7 +4351,9 @@ | ||
| 237 | i386-*-linux*oldld) fmt=aout em=linux ;; | ||
| 238 | i386-*-linux*coff*) fmt=coff em=linux ;; | ||
| 239 | i386-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 240 | + i386-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 241 | x86_64-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 242 | + x86_64-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 243 | i386-*-lynxos*) fmt=elf em=lynx bfd_gas=yes ;; | ||
| 244 | i386-*-sysv[45]*) fmt=elf ;; | ||
| 245 | i386-*-solaris*) fmt=elf ;; | ||
| 246 | @@ -4403,6 +4413,7 @@ | ||
| 247 | ia64-*-elf*) fmt=elf ;; | ||
| 248 | ia64-*-aix*) fmt=elf em=ia64aix ;; | ||
| 249 | ia64-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 250 | + ia64-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 251 | ia64-*-hpux*) fmt=elf em=hpux ;; | ||
| 252 | ia64-*-netbsd*) fmt=elf em=nbsd ;; | ||
| 253 | |||
| 254 | @@ -4430,6 +4441,7 @@ | ||
| 255 | m68k-*-hpux*) fmt=hp300 em=hp300 ;; | ||
| 256 | m68k-*-linux*aout*) fmt=aout em=linux ;; | ||
| 257 | m68k-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 258 | + m68k-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 259 | m68k-*-uclinux*) fmt=elf ;; | ||
| 260 | m68k-*-gnu*) fmt=elf ;; | ||
| 261 | m68k-*-lynxos*) fmt=coff em=lynx ;; | ||
| 262 | @@ -4504,7 +4516,7 @@ | ||
| 263 | ppc-*-beos*) fmt=coff ;; | ||
| 264 | ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;; | ||
| 265 | ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;; | ||
| 266 | - ppc-*-linux-gnu*) fmt=elf em=linux | ||
| 267 | + ppc-*-linux-uclibc* | ppc-*-linux-gnu*) fmt=elf em=linux | ||
| 268 | case "$endian" in | ||
| 269 | big) ;; | ||
| 270 | *) { { echo "$as_me:$LINENO: error: GNU/Linux must be configured big endian" >&5 | ||
| 271 | @@ -4531,7 +4543,9 @@ | ||
| 272 | ppc-*-lynxos*) fmt=elf em=lynx bfd_gas=yes ;; | ||
| 273 | |||
| 274 | s390x-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 275 | + s390x-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 276 | s390-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 277 | + s390-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 278 | |||
| 279 | sh*-*-linux*) fmt=elf em=linux | ||
| 280 | case ${cpu} in | ||
| 281 | @@ -4566,6 +4580,7 @@ | ||
| 282 | sparc-*-coff) fmt=coff ;; | ||
| 283 | sparc-*-linux*aout*) fmt=aout em=linux ;; | ||
| 284 | sparc-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 285 | + sparc-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 286 | sparc-*-lynxos*) fmt=coff em=lynx ;; | ||
| 287 | sparc-fujitsu-none) fmt=aout ;; | ||
| 288 | sparc-*-elf) fmt=elf ;; | ||
| 289 | --- binutils-2.15.94.0.1/gas/configure.in~binutils-2.15.91.0.1-uclibc-100-conf | ||
| 290 | +++ binutils-2.15.94.0.1/gas/configure.in | ||
| 291 | @@ -202,6 +202,7 @@ | ||
| 292 | alpha*-*-osf*) fmt=ecoff ;; | ||
| 293 | alpha*-*-linuxecoff*) fmt=ecoff ;; | ||
| 294 | alpha*-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 295 | + alpha*-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 296 | alpha*-*-netbsd*) fmt=elf em=nbsd ;; | ||
| 297 | alpha*-*-openbsd*) fmt=elf em=obsd ;; | ||
| 298 | |||
| 299 | @@ -217,6 +218,7 @@ | ||
| 300 | arm*-*-conix*) fmt=elf ;; | ||
| 301 | arm-*-linux*aout*) fmt=aout em=linux ;; | ||
| 302 | arm*-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 303 | + arm*-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 304 | arm*-*-uclinux*) fmt=elf em=linux ;; | ||
| 305 | arm-*-netbsdelf*) fmt=elf em=nbsd ;; | ||
| 306 | arm-*-*n*bsd*) fmt=aout em=nbsd ;; | ||
| 307 | @@ -230,6 +232,7 @@ | ||
| 308 | |||
| 309 | cris-*-linux-gnu* | crisv32-*-linux-gnu*) | ||
| 310 | fmt=multi bfd_gas=yes em=linux ;; | ||
| 311 | + cris-*-linux-uclibc*) fmt=multi bfd_gas=yes em=linux ;; | ||
| 312 | cris-*-* | crisv32-*-*) fmt=multi bfd_gas=yes ;; | ||
| 313 | |||
| 314 | crx-*-elf*) fmt=elf ;; | ||
| 315 | @@ -289,7 +292,9 @@ | ||
| 316 | i386-*-linux*oldld) fmt=aout em=linux ;; | ||
| 317 | i386-*-linux*coff*) fmt=coff em=linux ;; | ||
| 318 | i386-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 319 | + i386-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 320 | x86_64-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 321 | + x86_64-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 322 | i386-*-lynxos*) fmt=elf em=lynx bfd_gas=yes ;; | ||
| 323 | changequote(,)dnl | ||
| 324 | i386-*-sysv[45]*) fmt=elf ;; | ||
| 325 | @@ -342,6 +347,7 @@ | ||
| 326 | ia64-*-elf*) fmt=elf ;; | ||
| 327 | ia64-*-aix*) fmt=elf em=ia64aix ;; | ||
| 328 | ia64-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 329 | + ia64-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 330 | ia64-*-hpux*) fmt=elf em=hpux ;; | ||
| 331 | ia64-*-netbsd*) fmt=elf em=nbsd ;; | ||
| 332 | |||
| 333 | @@ -369,6 +375,7 @@ | ||
| 334 | m68k-*-hpux*) fmt=hp300 em=hp300 ;; | ||
| 335 | m68k-*-linux*aout*) fmt=aout em=linux ;; | ||
| 336 | m68k-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 337 | + m68k-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 338 | m68k-*-uclinux*) fmt=elf ;; | ||
| 339 | m68k-*-gnu*) fmt=elf ;; | ||
| 340 | m68k-*-lynxos*) fmt=coff em=lynx ;; | ||
| 341 | @@ -440,7 +447,7 @@ | ||
| 342 | ppc-*-beos*) fmt=coff ;; | ||
| 343 | ppc-*-*n*bsd* | ppc-*-elf*) fmt=elf ;; | ||
| 344 | ppc-*-eabi* | ppc-*-sysv4*) fmt=elf ;; | ||
| 345 | - ppc-*-linux-gnu*) fmt=elf em=linux | ||
| 346 | + ppc-*-linux-uclibc* | ppc-*-linux-gnu*) fmt=elf em=linux | ||
| 347 | case "$endian" in | ||
| 348 | big) ;; | ||
| 349 | *) AC_MSG_ERROR(GNU/Linux must be configured big endian) ;; | ||
| 350 | @@ -460,7 +467,9 @@ | ||
| 351 | ppc-*-lynxos*) fmt=elf em=lynx bfd_gas=yes ;; | ||
| 352 | |||
| 353 | s390x-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 354 | + s390x-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 355 | s390-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 356 | + s390-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 357 | |||
| 358 | sh*-*-linux*) fmt=elf em=linux | ||
| 359 | case ${cpu} in | ||
| 360 | @@ -491,6 +500,7 @@ | ||
| 361 | sparc-*-coff) fmt=coff ;; | ||
| 362 | sparc-*-linux*aout*) fmt=aout em=linux ;; | ||
| 363 | sparc-*-linux-gnu*) fmt=elf em=linux ;; | ||
| 364 | + sparc-*-linux-uclibc*) fmt=elf em=linux ;; | ||
| 365 | sparc-*-lynxos*) fmt=coff em=lynx ;; | ||
| 366 | sparc-fujitsu-none) fmt=aout ;; | ||
| 367 | sparc-*-elf) fmt=elf ;; | ||
| 368 | --- binutils-2.15.94.0.1/ld/configure~binutils-2.15.91.0.1-uclibc-100-conf | ||
| 369 | +++ binutils-2.15.94.0.1/ld/configure | ||
| 370 | @@ -1579,6 +1579,11 @@ | ||
| 371 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | ||
| 372 | ;; | ||
| 373 | |||
| 374 | +linux-uclibc*) | ||
| 375 | + lt_cv_deplibs_check_method=pass_all | ||
| 376 | + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` | ||
| 377 | + ;; | ||
| 378 | + | ||
| 379 | netbsd* | knetbsd*-gnu) | ||
| 380 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
| 381 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' | ||
| 382 | --- binutils-2.15.94.0.1/ld/configure.tgt~binutils-2.15.91.0.1-uclibc-100-conf | ||
| 383 | +++ binutils-2.15.94.0.1/ld/configure.tgt | ||
| 384 | @@ -32,6 +32,7 @@ | ||
| 385 | targ_extra_libpath=$targ_extra_emuls ;; | ||
| 386 | cris-*-linux-gnu* | cris-*-linux-gnu*) | ||
| 387 | targ_emul=crislinux ;; | ||
| 388 | +cris-*-linux-uclibc*) targ_emul=crislinux ;; | ||
| 389 | cris-*-* | crisv32-*-*) targ_emul=criself | ||
| 390 | targ_extra_emuls="crisaout crislinux" | ||
| 391 | targ_extra_libpath=$targ_extra_emuls ;; | ||
| 392 | @@ -62,14 +63,16 @@ | ||
| 393 | tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/aout//'` | ||
| 394 | tdir_sun4=sparc-sun-sunos4 | ||
| 395 | ;; | ||
| 396 | -sparc64-*-linux-gnu*) targ_emul=elf64_sparc | ||
| 397 | +sparc64-*-linux-gnu* | sparc64-*-linux-uclibc*) \ | ||
| 398 | + targ_emul=elf64_sparc | ||
| 399 | targ_extra_emuls="elf32_sparc sparclinux sun4" | ||
| 400 | targ_extra_libpath=elf32_sparc | ||
| 401 | tdir_elf32_sparc=`echo ${targ_alias} | sed -e 's/64//'` | ||
| 402 | tdir_sparclinux=${tdir_elf32_sparc}aout | ||
| 403 | tdir_sun4=sparc-sun-sunos4 | ||
| 404 | ;; | ||
| 405 | -sparc*-*-linux-gnu*) targ_emul=elf32_sparc | ||
| 406 | +sparc*-*-linux-gnu* | sparc*-*-linux-uclibc*) \ | ||
| 407 | + targ_emul=elf32_sparc | ||
| 408 | targ_extra_emuls="sparclinux elf64_sparc sun4" | ||
| 409 | targ_extra_libpath=elf64_sparc | ||
| 410 | tdir_sparclinux=${targ_alias}aout | ||
| 411 | @@ -132,7 +135,7 @@ | ||
| 412 | m68*-apple-aux*) targ_emul=m68kaux ;; | ||
| 413 | maxq-*-coff) targ_emul=maxqcoff;; | ||
| 414 | *-tandem-none) targ_emul=st2000 ;; | ||
| 415 | -i370-*-elf* | i370-*-linux-gnu*) targ_emul=elf32i370 ;; | ||
| 416 | +i370-*-elf* | i370-*-linux-gnu* | i370-*-linux-uclibc*) targ_emul=elf32i370 ;; | ||
| 417 | i[3-7]86-*-nto-qnx*) targ_emul=i386nto ;; | ||
| 418 | i[3-7]86-*-vsta) targ_emul=vsta ;; | ||
| 419 | i[3-7]86-go32-rtems*) targ_emul=i386go32 ;; | ||
| 420 | @@ -156,14 +159,16 @@ | ||
| 421 | tdir_elf_i386=`echo ${targ_alias} | sed -e 's/aout//'` | ||
| 422 | ;; | ||
| 423 | i[3-7]86-*-linux*oldld) targ_emul=i386linux; targ_extra_emuls=elf_i386 ;; | ||
| 424 | -i[3-7]86-*-linux-gnu*) targ_emul=elf_i386 | ||
| 425 | +i[3-7]86-*-linux-gnu* | i[3-7]86-*-linux-uclibc*) \ | ||
| 426 | + targ_emul=elf_i386 | ||
| 427 | targ_extra_emuls=i386linux | ||
| 428 | if test x${want64} = xtrue; then | ||
| 429 | targ_extra_emuls="$targ_extra_emuls elf_x86_64" | ||
| 430 | fi | ||
| 431 | tdir_i386linux=${targ_alias}aout | ||
| 432 | ;; | ||
| 433 | -x86_64-*-linux-gnu*) targ_emul=elf_x86_64 | ||
| 434 | +x86_64-*-linux-gnu* | x86_64-*-linux-uclibc*) \ | ||
| 435 | + targ_emul=elf_x86_64 | ||
| 436 | targ_extra_emuls="elf_i386 i386linux" | ||
| 437 | targ_extra_libpath=elf_i386 | ||
| 438 | tdir_i386linux=`echo ${targ_alias}aout | sed -e 's/x86_64/i386/'` | ||
| 439 | @@ -263,11 +268,14 @@ | ||
| 440 | arm-*-kaos*) targ_emul=armelf ;; | ||
| 441 | arm9e-*-elf) targ_emul=armelf ;; | ||
| 442 | arm*b-*-linux-gnu*) targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;; | ||
| 443 | +arm*b-*-linux-uclibc*) targ_emul=armelfb_linux; targ_extra_emuls=armelfb ;; | ||
| 444 | arm*-*-linux-gnueabi) targ_emul=armelf_linux_eabi ;; | ||
| 445 | arm*-*-linux-gnu*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;; | ||
| 446 | +arm*-*-linux-uclibc*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;; | ||
| 447 | arm*-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;; | ||
| 448 | arm*-*-conix*) targ_emul=armelf ;; | ||
| 449 | -thumb-*-linux-gnu* | thumb-*-uclinux*) targ_emul=armelf_linux; targ_extra_emuls=armelf ;; | ||
| 450 | +thumb-*-linux-gnu* | thumb-*-linux-uclibc* | thumb-*-uclinux*) | ||
| 451 | + targ_emul=armelf_linux; targ_extra_emuls=armelf ;; | ||
| 452 | strongarm-*-coff) targ_emul=armcoff ;; | ||
| 453 | strongarm-*-elf) targ_emul=armelf ;; | ||
| 454 | strongarm-*-kaos*) targ_emul=armelf ;; | ||
| 455 | @@ -371,7 +379,8 @@ | ||
| 456 | targ_extra_emuls=m68kelf | ||
| 457 | tdir_m68kelf=`echo ${targ_alias} | sed -e 's/aout//'` | ||
| 458 | ;; | ||
| 459 | -m68k-*-linux-gnu*) targ_emul=m68kelf | ||
| 460 | +m68k-*-linux-gnu* | m68k-*-linux-uclibc*) \ | ||
| 461 | + targ_emul=m68kelf | ||
| 462 | targ_extra_emuls=m68klinux | ||
| 463 | tdir_m68klinux=`echo ${targ_alias} | sed -e 's/linux/linuxaout/'` | ||
| 464 | ;; | ||
| 465 | @@ -388,9 +397,9 @@ | ||
| 466 | m68*-*-psos*) targ_emul=m68kpsos ;; | ||
| 467 | m68*-*-rtemscoff*) targ_emul=m68kcoff ;; | ||
| 468 | m68*-*-rtems*) targ_emul=m68kelf ;; | ||
| 469 | -hppa*64*-*-linux-gnu*) targ_emul=hppa64linux ;; | ||
| 470 | +hppa*64*-*-linux-gnu* | hppa*64*-*-linux-uclibc*) targ_emul=hppa64linux ;; | ||
| 471 | hppa*64*-*) targ_emul=elf64hppa ;; | ||
| 472 | -hppa*-*-linux-gnu*) targ_emul=hppalinux ;; | ||
| 473 | +hppa*-*-linux-gnu* | hppa*-*-linux-uclibc*) targ_emul=hppalinux ;; | ||
| 474 | hppa*-*-*elf*) targ_emul=hppaelf ;; | ||
| 475 | hppa*-*-lites*) targ_emul=hppaelf ;; | ||
| 476 | hppa*-*-netbsd*) targ_emul=hppanbsd ;; | ||
| 477 | @@ -436,16 +445,20 @@ | ||
| 478 | mips*-*-vxworks*) targ_emul=elf32ebmip | ||
| 479 | targ_extra_emuls="elf32elmip" ;; | ||
| 480 | mips*-*-windiss) targ_emul=elf32mipswindiss ;; | ||
| 481 | -mips64*el-*-linux-gnu*) targ_emul=elf32ltsmipn32 | ||
| 482 | +mips64*el-*-linux-gnu* | mips64*el-*-linux-uclibc*) | ||
| 483 | + targ_emul=elf32ltsmipn32 | ||
| 484 | targ_extra_emuls="elf32btsmipn32 elf32ltsmip elf32btsmip elf64ltsmip elf64btsmip" | ||
| 485 | ;; | ||
| 486 | -mips64*-*-linux-gnu*) targ_emul=elf32btsmipn32 | ||
| 487 | +mips64*-*-linux-gnu* | mips64*-*-linux-uclibc*) | ||
| 488 | + targ_emul=elf32btsmipn32 | ||
| 489 | targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip" | ||
| 490 | ;; | ||
| 491 | -mips*el-*-linux-gnu*) targ_emul=elf32ltsmip | ||
| 492 | +mips*el-*-linux-gnu* | mips*el-*-linux-uclibc*) | ||
| 493 | + targ_emul=elf32ltsmip | ||
| 494 | targ_extra_emuls="elf32btsmip elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip" | ||
| 495 | ;; | ||
| 496 | -mips*-*-linux-gnu*) targ_emul=elf32btsmip | ||
| 497 | +mips*-*-linux-gnu* | mips*-*-linux-uclibc*) | ||
| 498 | + targ_emul=elf32btsmip | ||
| 499 | targ_extra_emuls="elf32ltsmip elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip" | ||
| 500 | ;; | ||
| 501 | mips*-*-lnews*) targ_emul=mipslnews ;; | ||
| 502 | @@ -468,6 +481,10 @@ | ||
| 503 | alpha*-*-linux-gnu*) targ_emul=elf64alpha targ_extra_emuls=alpha | ||
| 504 | tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'` | ||
| 505 | ;; | ||
| 506 | +alpha*-*-linux-uclibc*) targ_emul=elf64alpha targ_extra_emuls=alpha | ||
| 507 | + # The following needs to be checked... | ||
| 508 | + tdir_alpha=`echo ${targ_alias} | sed -e 's/linux/linuxecoff/'` | ||
| 509 | + ;; | ||
| 510 | alpha*-*-osf*) targ_emul=alpha ;; | ||
| 511 | alpha*-*-gnu*) targ_emul=elf64alpha ;; | ||
| 512 | alpha*-*-netware*) targ_emul=alpha ;; | ||
| 513 | --- binutils-2.15.94.0.1/configure~binutils-2.15.91.0.1-uclibc-100-conf | ||
| 514 | +++ binutils-2.15.94.0.1/configure | ||
| 515 | @@ -1341,6 +1341,18 @@ | ||
| 516 | i[3456789]86-*-coff | i[3456789]86-*-elf) | ||
| 517 | noconfigdirs="$noconfigdirs ${libgcj}" | ||
| 518 | ;; | ||
| 519 | + i[3456789]86-*-linux-uclibc) | ||
| 520 | + # This section makes it possible to build newlib natively on linux. | ||
| 521 | + # If we are using a cross compiler then don't configure newlib. | ||
| 522 | + if test x${is_cross_compiler} != xno ; then | ||
| 523 | + noconfigdirs="$noconfigdirs target-newlib" | ||
| 524 | + fi | ||
| 525 | + noconfigdirs="$noconfigdirs target-libgloss" | ||
| 526 | + # If we are not using a cross compiler, do configure newlib. | ||
| 527 | + # Note however, that newlib will only be configured in this situation | ||
| 528 | + # if the --with-newlib option has been given, because otherwise | ||
| 529 | + # 'target-newlib' will appear in skipdirs. | ||
| 530 | + ;; | ||
| 531 | i[3456789]86-*-linux*) | ||
| 532 | # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's | ||
| 533 | # not build java stuff by default. | ||
| 534 | --- binutils-2.15.94.0.1/configure.in~binutils-2.15.91.0.1-uclibc-100-conf | ||
| 535 | +++ binutils-2.15.94.0.1/configure.in | ||
| 536 | @@ -563,6 +563,19 @@ | ||
| 537 | i[[3456789]]86-*-coff | i[[3456789]]86-*-elf) | ||
| 538 | noconfigdirs="$noconfigdirs ${libgcj}" | ||
| 539 | ;; | ||
| 540 | + i[3456789]86-*-linux-uclibc) | ||
| 541 | + # This section makes it possible to build newlib natively on linux. | ||
| 542 | + # If we are using a cross compiler then don't configure newlib. | ||
| 543 | + if test x${is_cross_compiler} != xno ; then | ||
| 544 | + noconfigdirs="$noconfigdirs target-newlib" | ||
| 545 | + fi | ||
| 546 | + noconfigdirs="$noconfigdirs target-libgloss" | ||
| 547 | + build_modules= | ||
| 548 | + # If we are not using a cross compiler, do configure newlib. | ||
| 549 | + # Note however, that newlib will only be configured in this situation | ||
| 550 | + # if the --with-newlib option has been given, because otherwise | ||
| 551 | + # 'target-newlib' will appear in skipdirs. | ||
| 552 | + ;; | ||
| 553 | i[[3456789]]86-*-linux*) | ||
| 554 | # The GCC port for glibc1 has no MD_FALLBACK_FRAME_STATE_FOR, so let's | ||
| 555 | # not build java stuff by default. | ||
| 556 | --- binutils-2.15.94.0.1/libtool.m4~binutils-2.15.91.0.1-uclibc-100-conf | ||
| 557 | +++ binutils-2.15.94.0.1/libtool.m4 | ||
| 558 | @@ -645,6 +645,11 @@ | ||
| 559 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` | ||
| 560 | ;; | ||
| 561 | |||
| 562 | +linux-uclibc*) | ||
| 563 | + lt_cv_deplibs_check_method=pass_all | ||
| 564 | + lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so` | ||
| 565 | + ;; | ||
| 566 | + | ||
| 567 | netbsd* | knetbsd*-gnu) | ||
| 568 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
| 569 | [lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'] | ||
| 570 | --- binutils-2.15.94.0.1/ltconfig~binutils-2.15.91.0.1-uclibc-100-conf | ||
| 571 | +++ binutils-2.15.94.0.1/ltconfig | ||
| 572 | @@ -603,6 +603,7 @@ | ||
| 573 | # Transform linux* to *-*-linux-gnu*, to support old configure scripts. | ||
| 574 | case $host_os in | ||
| 575 | linux-gnu*) ;; | ||
| 576 | +linux-uclibc*) ;; | ||
| 577 | linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` | ||
| 578 | esac | ||
| 579 | |||
| 580 | @@ -1270,6 +1271,24 @@ | ||
| 581 | dynamic_linker='GNU/Linux ld.so' | ||
| 582 | ;; | ||
| 583 | |||
| 584 | +linux-uclibc*) | ||
| 585 | + version_type=linux | ||
| 586 | + need_lib_prefix=no | ||
| 587 | + need_version=no | ||
| 588 | + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' | ||
| 589 | + soname_spec='${libname}${release}.so$major' | ||
| 590 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
| 591 | + shlibpath_var=LD_LIBRARY_PATH | ||
| 592 | + shlibpath_overrides_runpath=no | ||
| 593 | + # This implies no fast_install, which is unacceptable. | ||
| 594 | + # Some rework will be needed to allow for fast_install | ||
| 595 | + # before this can be enabled. | ||
| 596 | + # Note: copied from linux-gnu, and may not be appropriate. | ||
| 597 | + hardcode_into_libs=yes | ||
| 598 | + # Assume using the uClibc dynamic linker. | ||
| 599 | + dynamic_linker="uClibc ld.so" | ||
| 600 | + ;; | ||
| 601 | + | ||
| 602 | netbsd*) | ||
| 603 | need_lib_prefix=no | ||
| 604 | need_version=no | ||
diff --git a/openembedded/packages/binutils/binutils-cross.inc b/openembedded/packages/binutils/binutils-cross.inc new file mode 100644 index 0000000000..c63ea687aa --- /dev/null +++ b/openembedded/packages/binutils/binutils-cross.inc | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | SECTION = "devel" | ||
| 2 | inherit cross | ||
| 3 | DEPENDS += "flex-native bison-native" | ||
| 4 | PROVIDES = "virtual/${TARGET_PREFIX}binutils" | ||
| 5 | PACKAGES = "" | ||
| 6 | EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \ | ||
| 7 | --program-prefix=${TARGET_PREFIX}" | ||
| 8 | |||
| 9 | do_stage () { | ||
| 10 | oe_runmake install | ||
| 11 | |||
| 12 | # We don't really need these, so we'll remove them... | ||
| 13 | rm -rf ${CROSS_DIR}/lib/ldscripts | ||
| 14 | rm -rf ${CROSS_DIR}/share/info | ||
| 15 | rm -rf ${CROSS_DIR}/share/locale | ||
| 16 | rm -rf ${CROSS_DIR}/share/man | ||
| 17 | rmdir ${CROSS_DIR}/share || : | ||
| 18 | rmdir ${CROSS_DIR}/${libdir}/gcc-lib || : | ||
| 19 | rmdir ${CROSS_DIR}/${libdir} || : | ||
| 20 | rmdir ${CROSS_DIR}/${prefix} || : | ||
| 21 | |||
| 22 | # We want to move this into the target specific location | ||
| 23 | mkdir -p ${CROSS_DIR}/${TARGET_SYS}/lib | ||
| 24 | mv -f ${CROSS_DIR}/lib/libiberty.a ${CROSS_DIR}/${TARGET_SYS}/lib | ||
| 25 | rmdir ${CROSS_DIR}/lib || : | ||
| 26 | } | ||
| 27 | |||
| 28 | do_install () { | ||
| 29 | : | ||
| 30 | } | ||
diff --git a/openembedded/packages/binutils/binutils-cross_2.15.94.0.1.bb b/openembedded/packages/binutils/binutils-cross_2.15.94.0.1.bb new file mode 100644 index 0000000000..7e165271d7 --- /dev/null +++ b/openembedded/packages/binutils/binutils-cross_2.15.94.0.1.bb | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | SECTION = "devel" | ||
| 2 | include binutils_${PV}.bb | ||
| 3 | inherit cross | ||
| 4 | DEPENDS += "flex-native bison-native" | ||
| 5 | PROVIDES = "virtual/${TARGET_PREFIX}binutils" | ||
| 6 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-${PV}" | ||
| 7 | PACKAGES = "" | ||
| 8 | EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \ | ||
| 9 | --program-prefix=${TARGET_PREFIX}" | ||
| 10 | |||
| 11 | do_stage () { | ||
| 12 | oe_runmake install | ||
| 13 | |||
| 14 | # We don't really need these, so we'll remove them... | ||
| 15 | rm -rf ${CROSS_DIR}/lib/ldscripts | ||
| 16 | rm -rf ${CROSS_DIR}/share/info | ||
| 17 | rm -rf ${CROSS_DIR}/share/locale | ||
| 18 | rm -rf ${CROSS_DIR}/share/man | ||
| 19 | rmdir ${CROSS_DIR}/share || : | ||
| 20 | rmdir ${CROSS_DIR}/${libdir}/gcc-lib || : | ||
| 21 | rmdir ${CROSS_DIR}/${libdir} || : | ||
| 22 | rmdir ${CROSS_DIR}/${prefix} || : | ||
| 23 | |||
| 24 | # We want to move this into the target specific location | ||
| 25 | mkdir -p ${CROSS_DIR}/${TARGET_SYS}/lib | ||
| 26 | mv -f ${CROSS_DIR}/lib/libiberty.a ${CROSS_DIR}/${TARGET_SYS}/lib | ||
| 27 | rmdir ${CROSS_DIR}/lib || : | ||
| 28 | } | ||
| 29 | |||
| 30 | do_install () { | ||
| 31 | : | ||
| 32 | } | ||
diff --git a/openembedded/packages/binutils/binutils-cross_cvs.bb b/openembedded/packages/binutils/binutils-cross_cvs.bb new file mode 100644 index 0000000000..0e338b52a7 --- /dev/null +++ b/openembedded/packages/binutils/binutils-cross_cvs.bb | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | SECTION = "devel" | ||
| 2 | include binutils_cvs.bb | ||
| 3 | inherit cross | ||
| 4 | DEPENDS += "flex-native bison-native" | ||
| 5 | PROVIDES = "virtual/${TARGET_PREFIX}binutils" | ||
| 6 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-cvs" | ||
| 7 | PACKAGES = "" | ||
| 8 | EXTRA_OECONF = "--with-sysroot=${CROSS_DIR}/${TARGET_SYS} \ | ||
| 9 | --program-prefix=${TARGET_PREFIX}" | ||
| 10 | |||
| 11 | do_stage () { | ||
| 12 | oe_runmake install | ||
| 13 | |||
| 14 | # We don't really need these, so we'll remove them... | ||
| 15 | rm -rf ${CROSS_DIR}/lib/ldscripts | ||
| 16 | rm -rf ${CROSS_DIR}/share/info | ||
| 17 | rm -rf ${CROSS_DIR}/share/locale | ||
| 18 | rm -rf ${CROSS_DIR}/share/man | ||
| 19 | rmdir ${CROSS_DIR}/share || : | ||
| 20 | rmdir ${CROSS_DIR}/${libdir}/gcc-lib || : | ||
| 21 | rmdir ${CROSS_DIR}/${libdir} || : | ||
| 22 | rmdir ${CROSS_DIR}/${prefix} || : | ||
| 23 | |||
| 24 | # We want to move this into the target specific location | ||
| 25 | mkdir -p ${CROSS_DIR}/${TARGET_SYS}/lib | ||
| 26 | mv -f ${CROSS_DIR}/lib/libiberty.a ${CROSS_DIR}/${TARGET_SYS}/lib | ||
| 27 | rmdir ${CROSS_DIR}/lib || : | ||
| 28 | } | ||
| 29 | |||
| 30 | do_install () { | ||
| 31 | : | ||
| 32 | } | ||
diff --git a/openembedded/packages/binutils/binutils.inc b/openembedded/packages/binutils/binutils.inc new file mode 100644 index 0000000000..e544e9ef53 --- /dev/null +++ b/openembedded/packages/binutils/binutils.inc | |||
| @@ -0,0 +1,117 @@ | |||
| 1 | inherit autotools gettext | ||
| 2 | |||
| 3 | PACKAGES = "${PN} ${PN}-dev ${PN}-doc ${PN}-symlinks" | ||
| 4 | |||
| 5 | FILES_${PN} = " \ | ||
| 6 | ${bindir}/${TARGET_PREFIX}* \ | ||
| 7 | ${libdir}/lib*-*.so \ | ||
| 8 | ${prefix}/${TARGET_SYS}/bin/*" | ||
| 9 | |||
| 10 | FILES_${PN}-dev = " \ | ||
| 11 | ${includedir} \ | ||
| 12 | ${libdir}/*.a \ | ||
| 13 | ${libdir}/*.la \ | ||
| 14 | ${libdir}/libbfd.so \ | ||
| 15 | ${libdir}/libopcodes.so" | ||
| 16 | |||
| 17 | FILES_${PN}-symlinks = " \ | ||
| 18 | ${bindir}/addr2line \ | ||
| 19 | ${bindir}/as \ | ||
| 20 | ${bindir}/c++filt \ | ||
| 21 | ${bindir}/gprof \ | ||
| 22 | ${bindir}/ld \ | ||
| 23 | ${bindir}/nm \ | ||
| 24 | ${bindir}/objcopy \ | ||
| 25 | ${bindir}/objdump \ | ||
| 26 | ${bindir}/ranlib \ | ||
| 27 | ${bindir}/readelf \ | ||
| 28 | ${bindir}/size \ | ||
| 29 | ${bindir}/strip" | ||
| 30 | |||
| 31 | EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ | ||
| 32 | --enable-shared" | ||
| 33 | |||
| 34 | # This is necessary due to a bug in the binutils Makefiles | ||
| 35 | EXTRA_OEMAKE = "configure-build-libiberty all" | ||
| 36 | |||
| 37 | export AR = "${HOST_PREFIX}ar" | ||
| 38 | export AS = "${HOST_PREFIX}as" | ||
| 39 | export LD = "${HOST_PREFIX}ld" | ||
| 40 | export NM = "${HOST_PREFIX}nm" | ||
| 41 | export RANLIB = "${HOST_PREFIX}ranlib" | ||
| 42 | export OBJCOPY = "${HOST_PREFIX}objcopy" | ||
| 43 | export OBJDUMP = "${HOST_PREFIX}objdump" | ||
| 44 | |||
| 45 | export AR_FOR_TARGET = "${TARGET_PREFIX}ar" | ||
| 46 | export AS_FOR_TARGET = "${TARGET_PREFIX}as" | ||
| 47 | export LD_FOR_TARGET = "${TARGET_PREFIX}ld" | ||
| 48 | export NM_FOR_TARGET = "${TARGET_PREFIX}nm" | ||
| 49 | export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib" | ||
| 50 | |||
| 51 | export CC_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc" | ||
| 52 | export CXX_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc" | ||
| 53 | |||
| 54 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
| 55 | export CPP_FOR_BUILD = "${BUILD_CPP}" | ||
| 56 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" | ||
| 57 | |||
| 58 | export CC = "${CCACHE} ${HOST_PREFIX}gcc" | ||
| 59 | |||
| 60 | do_configure () { | ||
| 61 | (cd ${S}; gnu-configize) || die "Failed to run gnu-configize" | ||
| 62 | oe_runconf | ||
| 63 | } | ||
| 64 | |||
| 65 | do_stage () { | ||
| 66 | oe_libinstall -so -a -C opcodes libopcodes ${STAGING_LIBDIR}/ | ||
| 67 | oe_libinstall -a -C libiberty libiberty ${STAGING_LIBDIR}/ | ||
| 68 | oe_libinstall -so -a -C bfd libbfd ${STAGING_LIBDIR}/ | ||
| 69 | install -m 0644 ${S}/include/dis-asm.h ${STAGING_INCDIR}/ | ||
| 70 | install -m 0644 ${S}/include/symcat.h ${STAGING_INCDIR}/ | ||
| 71 | install -m 0644 ${S}/include/libiberty.h ${STAGING_INCDIR}/ | ||
| 72 | install -m 0644 ${S}/include/ansidecl.h ${STAGING_INCDIR}/ | ||
| 73 | install -m 0644 ${S}/include/bfdlink.h ${STAGING_INCDIR}/ | ||
| 74 | install -m 0644 bfd/bfd.h ${STAGING_INCDIR}/ | ||
| 75 | } | ||
| 76 | |||
| 77 | do_install () { | ||
| 78 | autotools_do_install | ||
| 79 | |||
| 80 | # We don't really need these, so we'll remove them... | ||
| 81 | rm -rf ${D}${libdir}/ldscripts | ||
| 82 | |||
| 83 | # Fix the /usr/${TARGET_SYS}/bin/* links | ||
| 84 | for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do | ||
| 85 | rm -f $l | ||
| 86 | ln -sf `echo ${prefix}/${TARGET_SYS}/bin \ | ||
| 87 | | tr -s / \ | ||
| 88 | | sed -e 's,^/,,' -e 's,[^/]*,..,g'`${bindir}/${TARGET_PREFIX}`basename $l` $l | ||
| 89 | done | ||
| 90 | |||
| 91 | # Install the libiberty header | ||
| 92 | install -d ${D}${includedir} | ||
| 93 | install -m 644 ${S}/include/ansidecl.h ${D}${includedir} | ||
| 94 | install -m 644 ${S}/include/libiberty.h ${D}${includedir} | ||
| 95 | |||
| 96 | cd ${D}${bindir} | ||
| 97 | |||
| 98 | # Symlinks for ease of running these on the native target | ||
| 99 | for p in ${TARGET_SYS}-* ; do | ||
| 100 | ln -sf $p `echo $p | sed -e s,${TARGET_SYS}-,,` | ||
| 101 | done | ||
| 102 | |||
| 103 | rm ${D}${bindir}/ar ${D}${bindir}/strings | ||
| 104 | } | ||
| 105 | |||
| 106 | |||
| 107 | pkg_postinst_${PN}-symlinks () { | ||
| 108 | update-alternatives --install ${bindir}/ar ar ${TARGET_SYS}-ar 100 | ||
| 109 | update-alternatives --install ${bindir}/strings strings ${TARGET_SYS}-strings 100 | ||
| 110 | } | ||
| 111 | |||
| 112 | |||
| 113 | pkg_prerm_${PN}-symlinks () { | ||
| 114 | update-alternatives --remove ar ${TARGET_SYS}-ar | ||
| 115 | update-alternatives --remove strings ${TARGET_SYS}-strings | ||
| 116 | } | ||
| 117 | |||
diff --git a/openembedded/packages/binutils/binutils_2.15.94.0.1.bb b/openembedded/packages/binutils/binutils_2.15.94.0.1.bb new file mode 100644 index 0000000000..5edf4548a3 --- /dev/null +++ b/openembedded/packages/binutils/binutils_2.15.94.0.1.bb | |||
| @@ -0,0 +1,123 @@ | |||
| 1 | DESCRIPTION = "A GNU collection of binary utilities" | ||
| 2 | HOMEPAGE = "http://www.gnu.org/software/binutils/" | ||
| 3 | SECTION = "devel" | ||
| 4 | LICENSE = "GPL" | ||
| 5 | MAINTAINER = "Gerald Britton <gbritton@doomcom.org>" | ||
| 6 | PR = "r1" | ||
| 7 | |||
| 8 | inherit autotools gettext | ||
| 9 | |||
| 10 | PACKAGES = "${PN} ${PN}-dev ${PN}-doc ${PN}-symlinks" | ||
| 11 | |||
| 12 | FILES_${PN} = " \ | ||
| 13 | ${bindir}/${TARGET_PREFIX}* \ | ||
| 14 | ${libdir}/lib*-*.so \ | ||
| 15 | ${prefix}/${TARGET_SYS}/bin/*" | ||
| 16 | |||
| 17 | FILES_${PN}-dev = " \ | ||
| 18 | ${includedir} \ | ||
| 19 | ${libdir}/*.a \ | ||
| 20 | ${libdir}/*.la \ | ||
| 21 | ${libdir}/libbfd.so \ | ||
| 22 | ${libdir}/libopcodes.so" | ||
| 23 | |||
| 24 | FILES_${PN}-symlinks = " \ | ||
| 25 | ${bindir}/addr2line \ | ||
| 26 | ${bindir}/ar \ | ||
| 27 | ${bindir}/as \ | ||
| 28 | ${bindir}/c++filt \ | ||
| 29 | ${bindir}/gprof \ | ||
| 30 | ${bindir}/ld \ | ||
| 31 | ${bindir}/nm \ | ||
| 32 | ${bindir}/objcopy \ | ||
| 33 | ${bindir}/objdump \ | ||
| 34 | ${bindir}/ranlib \ | ||
| 35 | ${bindir}/readelf \ | ||
| 36 | ${bindir}/size \ | ||
| 37 | ${bindir}/strings \ | ||
| 38 | ${bindir}/strip" | ||
| 39 | |||
| 40 | SRC_URI = \ | ||
| 41 | "http://ftp.kernel.org/pub/linux/devel/binutils/binutils-${PV}.tar.bz2 \ | ||
| 42 | file://ld_makefile.patch;patch=1 \ | ||
| 43 | file://better_file_error.patch;patch=1 \ | ||
| 44 | file://signed_char_fix.patch;patch=1 \ | ||
| 45 | file://binutils-100_cflags_for_build.patch;patch=1 \ | ||
| 46 | file://binutils-2.15.91.0.1-uclibc-100-conf.patch;patch=1 \ | ||
| 47 | file://binutils-2.15.90.0.3-uclibc-200-build_modules.patch;patch=1" | ||
| 48 | |||
| 49 | S = "${WORKDIR}/binutils-${PV}" | ||
| 50 | B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" | ||
| 51 | |||
| 52 | EXTRA_OECONF = "--program-prefix=${TARGET_PREFIX} \ | ||
| 53 | --enable-shared" | ||
| 54 | |||
| 55 | # This is necessary due to a bug in the binutils Makefiles | ||
| 56 | EXTRA_OEMAKE = "configure-build-libiberty all" | ||
| 57 | |||
| 58 | export AR = "${HOST_PREFIX}ar" | ||
| 59 | export AS = "${HOST_PREFIX}as" | ||
| 60 | export LD = "${HOST_PREFIX}ld" | ||
| 61 | export NM = "${HOST_PREFIX}nm" | ||
| 62 | export RANLIB = "${HOST_PREFIX}ranlib" | ||
| 63 | export OBJCOPY = "${HOST_PREFIX}objcopy" | ||
| 64 | export OBJDUMP = "${HOST_PREFIX}objdump" | ||
| 65 | |||
| 66 | export AR_FOR_TARGET = "${TARGET_PREFIX}ar" | ||
| 67 | export AS_FOR_TARGET = "${TARGET_PREFIX}as" | ||
| 68 | export LD_FOR_TARGET = "${TARGET_PREFIX}ld" | ||
| 69 | export NM_FOR_TARGET = "${TARGET_PREFIX}nm" | ||
| 70 | export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib" | ||
| 71 | |||
| 72 | export CC_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | ||
| 73 | export CXX_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | ||
| 74 | |||
| 75 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
| 76 | export CPP_FOR_BUILD = "${BUILD_CPP}" | ||
| 77 | export CFLAGS_FOR_BUILD = "${BUILD_CFLAGS}" | ||
| 78 | |||
| 79 | export CC = "${CCACHE} ${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | ||
| 80 | |||
| 81 | do_configure () { | ||
| 82 | (cd ${S}; gnu-configize) || die "Failed to run gnu-configize" | ||
| 83 | oe_runconf | ||
| 84 | } | ||
| 85 | |||
| 86 | do_stage () { | ||
| 87 | oe_libinstall -so -a -C opcodes libopcodes ${STAGING_LIBDIR}/ | ||
| 88 | oe_libinstall -a -C libiberty libiberty ${STAGING_LIBDIR}/ | ||
| 89 | oe_libinstall -so -a -C bfd libbfd ${STAGING_LIBDIR}/ | ||
| 90 | install -m 0644 ${S}/include/dis-asm.h ${STAGING_INCDIR}/ | ||
| 91 | install -m 0644 ${S}/include/symcat.h ${STAGING_INCDIR}/ | ||
| 92 | install -m 0644 ${S}/include/libiberty.h ${STAGING_INCDIR}/ | ||
| 93 | install -m 0644 ${S}/include/ansidecl.h ${STAGING_INCDIR}/ | ||
| 94 | install -m 0644 ${S}/include/bfdlink.h ${STAGING_INCDIR}/ | ||
| 95 | install -m 0644 bfd/bfd.h ${STAGING_INCDIR}/ | ||
| 96 | } | ||
| 97 | |||
| 98 | do_install () { | ||
| 99 | autotools_do_install | ||
| 100 | |||
| 101 | # We don't really need these, so we'll remove them... | ||
| 102 | rm -rf ${D}${libdir}/ldscripts | ||
| 103 | |||
| 104 | # Fix the /usr/${TARGET_SYS}/bin/* links | ||
| 105 | for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do | ||
| 106 | rm -f $l | ||
| 107 | ln -sf `echo ${prefix}/${TARGET_SYS}/bin \ | ||
| 108 | | tr -s / \ | ||
| 109 | | sed -e 's,^/,,' -e 's,[^/]*,..,g'`${bindir}/${TARGET_PREFIX}`basename $l` $l | ||
| 110 | done | ||
| 111 | |||
| 112 | # Install the libiberty header | ||
| 113 | install -d ${D}${includedir} | ||
| 114 | install -m 644 ${S}/include/ansidecl.h ${D}${includedir} | ||
| 115 | install -m 644 ${S}/include/libiberty.h ${D}${includedir} | ||
| 116 | |||
| 117 | cd ${D}${bindir} | ||
| 118 | |||
| 119 | # Symlinks for ease of running these on the native target | ||
| 120 | for p in ${TARGET_SYS}-* ; do | ||
| 121 | ln -sf $p `echo $p | sed -e s,${TARGET_SYS}-,,` | ||
| 122 | done | ||
| 123 | } | ||
diff --git a/openembedded/packages/binutils/binutils_cvs.bb b/openembedded/packages/binutils/binutils_cvs.bb new file mode 100644 index 0000000000..f295795554 --- /dev/null +++ b/openembedded/packages/binutils/binutils_cvs.bb | |||
| @@ -0,0 +1,122 @@ | |||
| 1 | SECTION = "devel" | ||
| 2 | inherit autotools gettext | ||
| 3 | |||
| 4 | DESCRIPTION = "A GNU collection of binary utilities" | ||
| 5 | HOMEPAGE = "http://www.gnu.org/software/binutils/" | ||
| 6 | LICENSE = "GPL" | ||
| 7 | MAINTAINER = "Gerald Britton <gbritton@doomcom.org>" | ||
| 8 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/binutils-cvs" | ||
| 9 | PV = "0.0cvs${CVSDATE}" | ||
| 10 | PR = "r2" | ||
| 11 | |||
| 12 | PACKAGES = "${PN} ${PN}-dev ${PN}-doc ${PN}-symlinks" | ||
| 13 | |||
| 14 | FILES_${PN} = " \ | ||
| 15 | ${bindir}/${TARGET_PREFIX}* \ | ||
| 16 | ${libdir}/lib*-*.so \ | ||
| 17 | ${prefix}/${TARGET_SYS}/bin/*" | ||
| 18 | |||
| 19 | FILES_${PN}-dev = " \ | ||
| 20 | ${includedir} \ | ||
| 21 | ${libdir}/*.a \ | ||
| 22 | ${libdir}/*.la \ | ||
| 23 | ${libdir}/libbfd.so \ | ||
| 24 | ${libdir}/libopcodes.so" | ||
| 25 | |||
| 26 | FILES_${PN}-symlinks = " \ | ||
| 27 | ${bindir}/addr2line \ | ||
| 28 | ${bindir}/ar \ | ||
| 29 | ${bindir}/as \ | ||
| 30 | ${bindir}/c++filt \ | ||
| 31 | ${bindir}/gprof \ | ||
| 32 | ${bindir}/ld \ | ||
| 33 | ${bindir}/nm \ | ||
| 34 | ${bindir}/objcopy \ | ||
| 35 | ${bindir}/objdump \ | ||
| 36 | ${bindir}/ranlib \ | ||
| 37 | ${bindir}/readelf \ | ||
| 38 | ${bindir}/size \ | ||
| 39 | ${bindir}/strings \ | ||
| 40 | ${bindir}/strip" | ||
| 41 | |||
| 42 | SRC_URI = "cvs://anoncvs:anoncvs@sources.redhat.com/cvs/src;module=binutils;method=pserver;localdir=src \ | ||
| 43 | file://ld_makefile.patch;patch=1 \ | ||
| 44 | file://better_file_error.patch;patch=1 \ | ||
| 45 | file://signed_char_fix.patch;patch=1 \ | ||
| 46 | file://binutils-100_cflags_for_build.patch;patch=1 \ | ||
| 47 | file://binutils-2.15.91.0.1-uclibc-100-conf.patch;patch=1 \ | ||
| 48 | file://binutils-2.15.90.0.3-uclibc-200-build_modules.patch;patch=1" | ||
| 49 | |||
| 50 | S = "${WORKDIR}/src" | ||
| 51 | B = "${S}/build.${HOST_SYS}.${TARGET_SYS}" | ||
| 52 | |||
| 53 | EXTRA_OECONF = "--with-sysroot=${prefix} \ | ||
| 54 | --program-prefix=${TARGET_PREFIX} \ | ||
| 55 | --enable-shared" | ||
| 56 | |||
| 57 | # This is necessary due to a bug in the binutils Makefiles | ||
| 58 | EXTRA_OEMAKE = "configure-build-libiberty all" | ||
| 59 | |||
| 60 | export AR = "${HOST_PREFIX}ar" | ||
| 61 | export AS = "${HOST_PREFIX}as" | ||
| 62 | export LD = "${HOST_PREFIX}ld" | ||
| 63 | export NM = "${HOST_PREFIX}nm" | ||
| 64 | export RANLIB = "${HOST_PREFIX}ranlib" | ||
| 65 | export OBJCOPY = "${HOST_PREFIX}objcopy" | ||
| 66 | export OBJDUMP = "${HOST_PREFIX}objdump" | ||
| 67 | |||
| 68 | export AR_FOR_TARGET = "${TARGET_PREFIX}ar" | ||
| 69 | export AS_FOR_TARGET = "${TARGET_PREFIX}as" | ||
| 70 | export LD_FOR_TARGET = "${TARGET_PREFIX}ld" | ||
| 71 | export NM_FOR_TARGET = "${TARGET_PREFIX}nm" | ||
| 72 | export RANLIB_FOR_TARGET = "${TARGET_PREFIX}ranlib" | ||
| 73 | |||
| 74 | export CC_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc" | ||
| 75 | export CXX_FOR_HOST = "${CCACHE} ${HOST_PREFIX}gcc" | ||
| 76 | |||
| 77 | export CC_FOR_BUILD = "${BUILD_CC}" | ||
| 78 | |||
| 79 | export CC = "${CCACHE} ${HOST_PREFIX}gcc" | ||
| 80 | |||
| 81 | do_configure () { | ||
| 82 | (cd ${S}; gnu-configize) || die "Failed to run gnu-configize" | ||
| 83 | oe_runconf | ||
| 84 | } | ||
| 85 | |||
| 86 | do_stage () { | ||
| 87 | oe_libinstall -so -a -C opcodes libopcodes ${STAGING_LIBDIR}/ | ||
| 88 | oe_libinstall -a -C libiberty libiberty ${STAGING_LIBDIR}/ | ||
| 89 | oe_libinstall -so -a -C bfd libbfd ${STAGING_LIBDIR}/ | ||
| 90 | install -m 0644 ${S}/include/dis-asm.h ${STAGING_INCDIR}/ | ||
| 91 | install -m 0644 ${S}/include/symcat.h ${STAGING_INCDIR}/ | ||
| 92 | install -m 0644 ${S}/include/libiberty.h ${STAGING_INCDIR}/ | ||
| 93 | install -m 0644 ${S}/include/ansidecl.h ${STAGING_INCDIR}/ | ||
| 94 | install -m 0644 ${S}/include/bfdlink.h ${STAGING_INCDIR}/ | ||
| 95 | install -m 0644 bfd/bfd.h ${STAGING_INCDIR}/ | ||
| 96 | } | ||
| 97 | |||
| 98 | do_install () { | ||
| 99 | autotools_do_install | ||
| 100 | |||
| 101 | # We don't really need these, so we'll remove them... | ||
| 102 | rm -rf ${D}${libdir}/ldscripts | ||
| 103 | |||
| 104 | # Fix the /usr/${TARGET_SYS}/bin/* links | ||
| 105 | for l in ${D}${prefix}/${TARGET_SYS}/bin/*; do | ||
| 106 | rm -f $l | ||
| 107 | ln -sf `echo ${prefix}/${TARGET_SYS}/bin \ | ||
| 108 | | tr -s / \ | ||
| 109 | | sed -e 's,^/,,' -e 's,[^/]*,..,g'`${bindir}/${TARGET_PREFIX}`basename $l` $l | ||
| 110 | done | ||
| 111 | |||
| 112 | # Install the libiberty header | ||
| 113 | install -m 644 ${S}/include/ansidecl.h ${D}${includedir} | ||
| 114 | install -m 644 ${S}/include/libiberty.h ${D}${includedir} | ||
| 115 | |||
| 116 | cd ${D}${bindir} | ||
| 117 | |||
| 118 | # Symlinks for ease of running these on the native target | ||
| 119 | for p in ${TARGET_SYS}-* ; do | ||
| 120 | ln -sf $p `echo $p | sed -e s,${TARGET_SYS}-,,` | ||
| 121 | done | ||
| 122 | } | ||
diff --git a/openembedded/packages/binutils/files/better_file_error.patch b/openembedded/packages/binutils/files/better_file_error.patch new file mode 100644 index 0000000000..38ef52966e --- /dev/null +++ b/openembedded/packages/binutils/files/better_file_error.patch | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | diff -urN binutils-2.11.92.0.5/bfd/opncls.c binutils-2.11.92.0.5.new/bfd/opncls.c | ||
| 2 | --- binutils-2.11.92.0.5/bfd/opncls.c Mon Oct 1 18:25:21 2001 | ||
| 3 | +++ binutils-2.11.92.0.5.new/bfd/opncls.c Sat Oct 13 11:26:59 2001 | ||
| 4 | @@ -127,6 +127,13 @@ | ||
| 5 | { | ||
| 6 | bfd *nbfd; | ||
| 7 | const bfd_target *target_vec; | ||
| 8 | + struct stat s; | ||
| 9 | + | ||
| 10 | + if (stat (filename, &s) == 0) | ||
| 11 | + if (S_ISDIR(s.st_mode)) { | ||
| 12 | + bfd_set_error (bfd_error_file_not_recognized); | ||
| 13 | + return NULL; | ||
| 14 | + } | ||
| 15 | |||
| 16 | nbfd = _bfd_new_bfd (); | ||
| 17 | if (nbfd == NULL) | ||
diff --git a/openembedded/packages/binutils/files/ld_makefile.patch b/openembedded/packages/binutils/files/ld_makefile.patch new file mode 100644 index 0000000000..c1d2ac1ece --- /dev/null +++ b/openembedded/packages/binutils/files/ld_makefile.patch | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | --- binutils-2.11.90.0.19.orig/ld/Makefile.am | ||
| 2 | +++ binutils-2.11.90.0.19/ld/Makefile.am | ||
| 3 | @@ -19,7 +19,7 @@ | ||
| 4 | # We put the scripts in the directory $(scriptdir)/ldscripts. | ||
| 5 | # We can't put the scripts in $(datadir) because the SEARCH_DIR | ||
| 6 | # directives need to be different for native and cross linkers. | ||
| 7 | -scriptdir = $(tooldir)/lib | ||
| 8 | +scriptdir = $(libdir) | ||
| 9 | |||
| 10 | EMUL = @EMUL@ | ||
| 11 | EMULATION_OFILES = @EMULATION_OFILES@ | ||
| 12 | --- binutils-2.11.90.0.19.orig/ld/Makefile.in | ||
| 13 | +++ binutils-2.11.90.0.19/ld/Makefile.in | ||
| 14 | @@ -123,7 +123,7 @@ | ||
| 15 | # We put the scripts in the directory $(scriptdir)/ldscripts. | ||
| 16 | # We can't put the scripts in $(datadir) because the SEARCH_DIR | ||
| 17 | # directives need to be different for native and cross linkers. | ||
| 18 | -scriptdir = $(tooldir)/lib | ||
| 19 | +scriptdir = $(libdir) | ||
| 20 | |||
| 21 | EMUL = @EMUL@ | ||
| 22 | EMULATION_OFILES = @EMULATION_OFILES@ | ||
diff --git a/openembedded/packages/binutils/files/plt32trunc.patch b/openembedded/packages/binutils/files/plt32trunc.patch new file mode 100644 index 0000000000..4990f5dbb6 --- /dev/null +++ b/openembedded/packages/binutils/files/plt32trunc.patch | |||
| @@ -0,0 +1,24 @@ | |||
| 1 | --- binutils/bfd/elf32-arm.h.orig 2004-04-22 22:11:15.000000000 -0400 | ||
| 2 | +++ binutils/bfd/elf32-arm.h 2004-04-22 22:28:37.000000000 -0400 | ||
| 3 | @@ -2229,6 +2229,8 @@ elf32_arm_relocate_section (output_bfd, | ||
| 4 | case R_ARM_PC24: | ||
| 5 | case R_ARM_ABS32: | ||
| 6 | case R_ARM_THM_PC22: | ||
| 7 | + case R_ARM_PLT32: | ||
| 8 | + | ||
| 9 | if (info->shared | ||
| 10 | && ( | ||
| 11 | (!info->symbolic && h->dynindx != -1) | ||
| 12 | @@ -2262,11 +2264,6 @@ elf32_arm_relocate_section (output_bfd, | ||
| 13 | relocation = 0; | ||
| 14 | break; | ||
| 15 | |||
| 16 | - case R_ARM_PLT32: | ||
| 17 | - if (h->plt.offset != (bfd_vma)-1) | ||
| 18 | - relocation = 0; | ||
| 19 | - break; | ||
| 20 | - | ||
| 21 | default: | ||
| 22 | if (unresolved_reloc) | ||
| 23 | _bfd_error_handler | ||
| 24 | |||
diff --git a/openembedded/packages/binutils/files/signed_char_fix.patch b/openembedded/packages/binutils/files/signed_char_fix.patch new file mode 100644 index 0000000000..b3709dabed --- /dev/null +++ b/openembedded/packages/binutils/files/signed_char_fix.patch | |||
| @@ -0,0 +1,12 @@ | |||
| 1 | diff -urN binutils-2.11.92.0.12.3/opcodes/i386-dis.c binutils-2.11.92.0.12.3.new/opcodes/i386-dis.c | ||
| 2 | --- binutils-2.11.92.0.12.3/opcodes/i386-dis.c Fri Nov 16 17:05:55 2001 | ||
| 3 | +++ binutils-2.11.92.0.12.3.new/opcodes/i386-dis.c Mon Dec 31 15:55:04 2001 | ||
| 4 | @@ -1830,7 +1830,7 @@ | ||
| 5 | * The function returns the length of this instruction in bytes. | ||
| 6 | */ | ||
| 7 | |||
| 8 | -static char intel_syntax; | ||
| 9 | +static signed char intel_syntax; | ||
| 10 | static char open_char; | ||
| 11 | static char close_char; | ||
| 12 | static char separator_char; | ||
