Commit Graph

4172 Commits

Author SHA1 Message Date
Alexey Neyman
32909ec654 Merge pull request #662 from stilor/sh-multilib
Fix up the sysroot issue for sh4 in a different way
2017-03-27 10:07:56 -07:00
Alexey Neyman
a596ec5b39 Fix up the sysroot issue for sh4 in a different way
(see the comments in the code for details on the issue)

Old workaround in 100-gcc.sh stopped working (probably, due to one
of GCC version upgrades), so switch to the other approach originally
described there: adjust the list of multilibs to not include the
default target explicitly.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-26 23:32:27 -07:00
Alexey Neyman
de13661329 Merge pull request #660 from stilor/create-release-no-subdir
Go into subdirectory when checksumming/signing
2017-03-24 23:42:42 -07:00
Alexey Neyman
32231e9200 Go into subdirectory when checksumming/signing
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-23 23:18:30 -07:00
Alexey Neyman
e26f04a9d9 Merge pull request #659 from stilor/no-root-no-links
Do not create multilib symlinks if not using sysroot
2017-03-23 09:39:40 -07:00
Alexey Neyman
67ab129fc5 Do not create multilib symlinks if not using sysroot
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-23 09:13:51 -07:00
Alexey Neyman
8dfe2a09ef Merge pull request #658 from stilor/master
Fix unclosed string
2017-03-22 18:34:41 -07:00
Alexey Neyman
9435dfc946 Fix unclosed string
... that resulted in a warning from kconfig

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-22 18:33:19 -07:00
Alexey Neyman
54f43778b1 Merge pull request #657 from stilor/no-ldsoconf
Make creation of ld.so.conf optional
2017-03-22 11:56:39 -07:00
Alexey Neyman
3d1678a7f6 Make creation of ld.so.conf optional
... enabled by default for multilib and disabled otherwise. Buildroot
has been complaining about /etc/ld.so.conf presence for almost a year
now and I missed that.

After the release, xldd will be modified to query the compiler for
the list of multilibs to search. This would be too invasive change
before 1.23, though.

Note that it may lead to configurations where xldd currently does not
find the libraries (if both DEMULTILIB and CREATE_LDSO_CONF are turned
off). This is not the default setting in Kconfig, though.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-22 10:57:45 -07:00
Alexey Neyman
91169535d7 Merge pull request #655 from stilor/release-add-signing
Add tarball signing to release script
2017-03-21 22:39:12 -07:00
Alexey Neyman
83ebd3f433 Add tarball signing to release script
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-21 22:37:18 -07:00
Alexey Neyman
a00978aca9 Merge pull request #654 from stilor/release-mgmt
Release mgmt
2017-03-21 14:51:59 -07:00
Alexey Neyman
de4433298a Add a release creation script
One TBD left is the signing of the tarballs.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-21 14:04:12 -07:00
Alexey Neyman
3906acc007 Move some scripts to a new directory, maintainer
... which are not of much interest to the end user.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-21 14:03:31 -07:00
Alexey Neyman
80daed99de Merge pull request #653 from stilor/fix-make-install
Hot fix for 'make install'
2017-03-20 22:26:29 -07:00
Alexey Neyman
55c9c7f058 Hot fix for 'make install'
... while I continue to work on release script.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-20 22:25:44 -07:00
Alexey Neyman
d44174448a Merge pull request #650 from stilor/update-samples
Run samples through an update
2017-03-20 17:05:29 -07:00
Alexey Neyman
7155ffecaf Merge pull request #649 from stilor/xldd-e_flags
Cross-ldd: handling e_flags is tricky and depends on arch
2017-03-20 17:05:23 -07:00
Alexey Neyman
a295b3f477 Run samples through an update
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-20 15:14:21 -07:00
Alexey Neyman
9ed513c2d8 Cross-ldd: handling e_flags is tricky and depends on arch
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-20 14:51:17 -07:00
Alexey Neyman
44a760965e Merge pull request #646 from stilor/docs-update
Move documents to github.io
2017-03-20 09:29:15 -07:00
Alexey Neyman
850fccd8d3 Merge pull request #647 from stilor/update-elf2flt
elf2flt: patch has been accepted upstream
2017-03-20 09:17:17 -07:00
Alexey Neyman
a6d328124b Merge pull request #648 from stilor/sh4-can-use-gcc6
sh*-*-linux-gnu can use GCC6 now
2017-03-20 09:16:38 -07:00
Alexey Neyman
2b13f8dd78 sh*-*-linux-gnu can use GCC6 now
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-20 01:01:11 -07:00
Alexey Neyman
a6b6bb7a57 elf2flt: patch has been accepted upstream
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-20 00:18:14 -07:00
Alexey Neyman
13f47ef576 Move documents to github.io
Will be pulled into release tarball by a release script.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-20 00:10:26 -07:00
Alexey Neyman
89f0971391 Merge pull request #639 from stilor/tweak-gcc-movelibs
When moving gcc libs, prefer the same directory as libc
2017-03-19 00:34:51 -07:00
Alexey Neyman
63b2a19de4 Add an option to "demultilib"
It turns out buildroot does not currently accept a toolchain where a dynamic
linker does not reside in the multi-os-directory. Unfortunately this is
how glibc installs itself on AArch64 without any extra tricks.

So, provide an option to force everything into /lib or /usr/lib; patch to
buildroot will be worked on separately.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-17 14:31:17 -07:00
Alexey Neyman
1ca65187f7 Make arm-multilib-linux-uclibcgnueabi static
GCC does not distinguish the resulting binary by the CFLAGS (e.g. based
on which -march= was given). This means, while it will use the right
libraries for linking, at runtime they are all going to request the same
ld.so path and load the libraries from the same default path.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-15 23:57:31 -07:00
Alexey Neyman
061765ced6 Mark static gdb/gdbserver EXPERIMENTAL
... and default to 'n'.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-15 23:57:22 -07:00
Alexey Neyman
75d968ad54 Make uClibc-ng search multilib dir if one is set
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-15 01:08:48 -07:00
Alexey Neyman
b00dea9951 Check libraries for compatibility
... as we are going through various multilibs in ld.so.conf

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-14 19:28:26 -07:00
Alexey Neyman
11b52ab6d7 Create ld.so.conf
Also a fix for CT_IterateMultilibs: it didn't pass multi_os_dir_gcc, so
it only worked if the caller did *not* declare it as a local variable.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-13 01:08:13 -07:00
Alexey Neyman
b090e0f74d Fix up ld.so symlinks for musl
Convert absolute targets to relative so that they are valid on the host,
too. The procedure is very similar to uclibc, so it is moved into a
common function.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-12 19:41:09 -07:00
Alexey Neyman
8600f3ce56 Move tools alias creation to a common function
... and in addition to final toolchain aliasing, use it when configuring
multilibs for glibc/musl. Note that uClibc does not need it, it is
explicitly selecting the tools using CROSS_PREFIX.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-12 16:56:19 -07:00
Alexey Neyman
a3dd55b964 Merge pull request #643 from stilor/macos-mingw-malloc.h
mingw-w64: no <malloc.h> on macos
2017-03-12 00:42:09 -08:00
Alexey Neyman
cba1962200 Fix library search paths on PowerPC
binutils 2.23 and earlier are not affected, they had the correct code.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-11 20:26:26 -08:00
Alexey Neyman
0b566d687f Only include <malloc.h> if configure says it exists
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-11 15:36:39 -08:00
Alexey Neyman
a8a080f9b6 Add latest versions of mingw 4.x/3.x/2.x branches
4.0.6 is the only one not marked obsolete.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-11 15:35:47 -08:00
Alexey Neyman
8f4db915bd Merge pull request #640 from stilor/make-no-guile-canadian
Disable Guile in make if building for host in canadian
2017-03-11 13:04:13 -08:00
Alexey Neyman
af2c6c601b Merge pull request #641 from stilor/arm-glibc-2.13
Add ARM patches for 2.12.2/2.13
2017-03-11 13:04:01 -08:00
Alexey Neyman
6a63f5ca7d Merge pull request #642 from stilor/uclibc-gl-patch
Patch from upstream fixing dlopen from a static app
2017-03-11 13:03:53 -08:00
Alexey Neyman
7329ea51b4 Patch from upstream fixing dlopen from a static app
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-10 15:43:18 -08:00
Alexey Neyman
30e8549e3d Add ARM patches for 2.12.2/2.13
Reported-by: Austin Beer (brainwave64)
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-10 14:37:36 -08:00
Alexey Neyman
dd55349646 Disable Guile in make if building for host in canadian
make's configure uses pkg-config to detect if Guile should be enabled;
on ArchLinux, this picks up Guile from build machine's pkgconfig and then
it fails to compile.

A better solution might be to create a ${CT_HOST}-pkg-config in
buildtools/bin that would report "unsupported" for all packages.
However a quick grep only showed pkg-config being used by GCJ
(not sure if it will build in canadian cross - we don't have any
samples with GCJ) and Blackfin simulator in GDB (Blackfin is not
currently supported by crosstool-ng). Hence, leave such pkg-config
implementation and testing for another day.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-10 11:59:52 -08:00
Alexey Neyman
fc2f73fc08 When moving gcc libs, prefer the same directory as libc
If libc ended up in a directory other than /lib, place GCC's libs
in that directory as well.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-09 19:07:21 -08:00
Alexey Neyman
6f226b5efe Merge pull request #637 from stilor/macos-sparc-glibc
SPARC glibc (possibly others) misconfigured on macos
2017-03-09 07:43:44 -08:00
Alexey Neyman
102d25caeb Merge pull request #638 from stilor/macos-linux-2.6.32
Fix unifdef in Linux 2.6.32 on macos
2017-03-09 07:43:26 -08:00
Alexey Neyman
7603e24b4f Fix unifdef in Linux 2.6.32 on macos
... which fails to compile due to incompatible prototype for strlcpy()
which isn't even used.

2.6.33 dropped the prototype, so the patch is n/a for newer kernels.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-09 07:40:54 -08:00