Commit Graph

516 Commits

Author SHA1 Message Date
Alexey Neyman
0a654319f9 First stab at gen-versions.sh
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-07-08 10:56:29 -07:00
Alexey Neyman
1b4e784a0b Fix debuild warnings/errors
- Update .gitignore, do not place .gitignore into directories installed
in bulk
- Remove executable permissions and shebangs from the scripts that are
supposed to be invoked only via ct-ng frontent; prepend them with $(bash).
Despite what showSamples.sh said, it already has some bashisms.
- Remove --with autotools-dev and override dh_update_autotools_config
to avoid having config.{sub,guess} clobbered with older versions
- Install bash completion where Debian (now) expects it
- Update man page to use .\" as the comment delimiter, instead of
undefined macro (."); also, minor text edits.
- Install kconfig.mk without execute permission.
- Remove shell wrappers from 170-localedef-fix-trampoline.patch, we
do not use that for applying patches
- Revoke execute permissions on 210-expat.sh
- Get flags from dpkg-buildflags if available

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-06-07 22:38:53 -07:00
Alexey Neyman
8482b2935a Fix the newly added msp430 sample with other GCC versions
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-06-05 23:24:18 -07:00
Alexey Neyman
6aaa2a1a67 Mingw-w64 release 5.0.2
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-06-05 00:29:15 -07:00
Alexey Neyman
872341e314 New GCC releases from Linaro
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-06-05 00:29:14 -07:00
Alexey Neyman
72a5a1d6de Add GDB 8.0 ...
... which now requires C++.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-06-04 23:23:09 -07:00
Alexey Neyman
ef1ff2600d Upgrade newlib to 2.5.0.20170519
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-06-04 23:23:04 -07:00
Alexey Neyman
3b52b2c93b Propagate xtensa fprintf fix to linaro versions.
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-05-31 12:39:04 -07:00
Max Filippov
314aed56b3 gcc: xtensa: backport fix for incorrect code generation
xtensa GCC incorrectly uses %ld/0x%lx format specifiers to output
HOST_WIDE_INT values, which results in incorrect code generation by the
compiler built for armhf host.

The original issue:
  https://github.com/qca/open-ath9k-htc-firmware/issues/130

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2017-05-31 02:12:53 -07:00
Alexey Neyman
189423937f Merge pull request #725 from KirillSmirnov/gcc7
patches: Add patch that fixes gcc6 with gcc7
2017-05-29 23:12:42 -07:00
Alexey Neyman
4490adb5f0 Regenerate with --no-renames
... or older patch(1) breaks over it.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-05-29 18:24:46 -07:00
Kirill K. Smirnov
6aa6c64306 patches: Fix gcc-linaro-6 with gcc7
Duplicate the previous change for linaro version.

Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
2017-05-27 22:32:04 +03:00
Kirill K. Smirnov
4d360c3cc2 patches: Add patch that fixes gcc6 with gcc7
Taken from the openembedded patchset.

Signed-off-by: Kirill K. Smirnov <kirill.k.smirnov@gmail.com>
2017-05-27 21:34:09 +03:00
Alexey Neyman
753236ea22 Handle ming32 as a host
zlib refuses to run configure with mingw32 host and insists that
win32/Makefile.gcc is used instead.

This requires a change in this Makefile to support static-only builds.

Fixes #694.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-05-24 23:03:02 -07:00
Alexey Neyman
0d8e7cbba6 Add patch from GCC #80037
Fixes #719.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-05-23 00:04:09 -07:00
Alexey Neyman
97a20eed5c Disallow duma/ltrace/strace for bionic
Allow cross-gdb and gdbserver. This requires removal of an explicit
check that disables gdbserver on android. However, the comment above
that check refers to exec_elf.h, which has been removed since API level
19. It builds fine with current selection of the sample (21). Only
build-tested, hope someone can give it a try and report back.

We can fine tune the check for GDB but I'll leave it for now.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-05-14 18:49:56 -07:00
Alexey Neyman
131011493b Split the patch from CrystaX to separate commits
... and edit the biggest chunk as in previous 950-bionic-android.patch.

Also, drop arm_neon.h - it is a separate package, will be added
separately.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-05-14 15:23:34 -07:00
hyc
a776367937 Add sample Android config, gcc 6.3 patches 2017-05-14 15:23:34 -07:00
hyc
9062810a11 Fix type mismatch in std::swap() args 2017-05-14 15:23:34 -07:00
hyc
925d0490db Fix for ctype change in NDK 14 2017-05-14 15:23:34 -07:00
hyc
8762c7698c Preliminary bionic/Android support
Mostly from Crystax NDK
2017-05-14 15:23:34 -07:00
Alexey Neyman
487c598b27 Fix sh4-*-linux with GCC7
GCC7 also checks -fsanitize=divide-by-zero, which generates a trap
and in sh4, traps in rtld result in link failure. Pull the fix from
upstream, although it is not a complete fix, I think: this still
generates a trap (SIGILL) rather than the intended SIGFPE.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-05-13 23:23:23 -07:00
Alexey Neyman
5d792b4179 Patches for glibc to compile with GCC7
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-05-13 20:14:24 -07:00
Alexey Neyman
e943889480 Add patch to uClibc-ng that allows building with GCC7
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-05-12 11:20:50 -07:00
Alexey Neyman
2d658b851e Add GCC 7.1.0
Removed patches either picked up upstream, or no longer applicable
(boehm-gc no longer part of GCC).

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-05-11 23:16:40 -07:00
Alexey Neyman
a1c3039811 Sort out newlib patches
- Existing 110-fix-eabihf.patch did not apply to 1.20.0 and earlier
- This patch is also applicable to 2.x versions
- The patch needs to be applied to both configure.in/configure
- Existing 200-optimising-for-space.patch also applies to all versions
  before 2.4.0
- Similar issues exist in other config/mt-* files
- m68k patch is applicable to 2.* versions

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-04-11 01:18:19 -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
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
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
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
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
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
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
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
Alexey Neyman
3b658d15d3 Patch failing grep expression in glibc configure
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-08 21:21:36 -08:00
Alexey Neyman
ea7f559ef4 Merge pull request #627 from dankm/freebsd
FreeBSD build support
2017-03-07 08:50:43 -08:00
Dan McGregor
a511f73276 Drop the stat64 Cygwin patch
It's not needed now that it's been moved to glibc.sh

Signed-off-by: Dan McGregor <dan.mcgregor@usask.ca>
2017-03-06 08:56:40 -06:00
Alexey Neyman
a82b4461f9 Backport patches to glibc 2.14+
... fix building on ARM.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-04 20:14:51 -08:00
Alexey Neyman
6d5ec0c35b Pick up new revision in elf2flt
... and updated cygwin patch.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-03 16:54:14 -08:00
Alexey Neyman
0465c8b6f2 Add binutils 2.28
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-03 16:37:36 -08:00
Alexey Neyman
526c144909 Fix uClibc{,-ng} build on macos
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-01 13:39:53 -08:00
Alexey Neyman
da5e98b60f Backport the fix from 2.19 for cross-rpcgen on macos
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-03-01 00:34:48 -08:00
Alexey Neyman
43fc8224df Macos needs a local ELF header, too
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-28 12:00:25 -08:00
Alexey Neyman
bb48575141 Fix elf2flt build on Cygwin in a different way
... after discussion with elf2flt maintainer.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-28 11:10:18 -08:00
Alexey Neyman
99283866cc Add patches to Linaro GCC
Same as the base release as long as they applied.
MUSL patches didn't, removed.

Also, unobsolete Linaro GCC5 now that they rolled out a new release.

Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-28 00:57:53 -08:00
Alexey Neyman
8397ad2c1a Fix the build of elf2flt on Cygwin
The -lcygwin -lc actually breaks the build: elf2flt picks up the symbols for getopt/optarg via
<getopt.h> in binutils-X.Y/include, where optarg is declared without dllimport attribute.
Therefore it pulls in getopt() from libc/libcygwin, but since optarg is not prefixed with
_imp__, it is pulled from libiberty. But the object file in libiberty also contains getopt()
thus resulting in multiple definitions thereof.

While there, kill extraneous -ldl passed into configure - configure detects -ldl successfully.

Upstream: https://github.com/uclinux-dev/elf2flt/pull/6
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-22 22:17:49 -08:00
Alexey Neyman
dd4cf6dde0 Upgrade GDB 7.11 -> 7.11.1
Signed-off-by: Alexey Neyman <stilor@att.net>
2017-02-19 09:37:01 -08:00