Commit Graph

1479 Commits (b1971089f1c249b577ff370980a22f079acfc6ce)

Author SHA1 Message Date
Alexey Neyman 29422b2eda Disallow PPS SPE ABI
with GCC 9+ and GLIBC 2.30+, they no longer support it.

Signed-off-by: Alexey Neyman <stilor@att.net>
4 years ago
Alexey Neyman 8606251585 Add --with-cpu= on 32-bit SPARC
... if building for GLIBC 2.31+.

Signed-off-by: Alexey Neyman <stilor@att.net>
4 years ago
Alexey Neyman d978290f39 Set --with-cpu-{32,64} for multilib builds
GLIBC 2.31 needs --with-cpu=ultrasparc for both 32/64-bits now, and
--with-cpu only sets the CPU model for the "primary" bitness.

Signed-off-by: Alexey Neyman <stilor@att.net>
4 years ago
Alexey Neyman 4897426202
Merge pull request #1266 from nolange/move_builddir_kconfig
move BUILD_DIR variable into Kconfig
4 years ago
Alexey Neyman 66c2932053
Merge pull request #1259 from nolange/add_binutils_deterministic_archives
enable option for binutils deterministic-archives
4 years ago
Stephanos Ioannidis bb1d687e1d Add newlib retargetable locking configuration
This commit adds support for the newlib configuration option
'--enable-newlib-retargetable-locking'.

Signed-off-by: Stephanos Ioannidis <root@stephanos.io>
4 years ago
Norbert Lange ff0e8ac7ca move BUILD_DIR variable into Kconfig
this allows users to reference this variable,
for ex. in TARGET_CFLAGS to remap paths.

Signed-off-by: Norbert Lange <nolange79@gmail.com>
4 years ago
Norbert Lange 7469bc8a73 enable option for binutils deterministic-archives
Signed-off-by: Norbert Lange <nolange79@gmail.com>
4 years ago
Alexey Neyman 8a7f46f151 GDB 8.3+ needs IPv6
... which wasn't enabled in uClibc-ng by default

Signed-off-by: Alexey Neyman <stilor@att.net>
4 years ago
Alexey Neyman 9d20f56a3d
Merge pull request #1226 from ola1olsson/master
Fix typo in ARM/thumb interworking menuconfig
4 years ago
Alexey Neyman 715591306f
Merge pull request #1231 from cpackham/glibc-2.28-make-4.0
libc: glibc 2.28 needs make 4.0
4 years ago
Chris Packham 7b362e6dae Add glibc 2.30
Add the GNU C Library version 2.30. Bring forward the
typedef-caddr.patch. Skip the ARC patch for now.

https://sourceware.org/ml/libc-alpha/2019-08/msg00029.html

Signed-off-by: Chris Packham <judge.packham@gmail.com>
4 years ago
Chris Packham af2f3ac9c5 libc: glibc 2.28 needs make 4.0
Fixes: #1210

Per the release notes for the GNU C library 2.28[1] make 4.0 or newer is
required. Previously the logic was applied to glibc 2.29 or newer.

[1] - https://www.sourceware.org/ml/libc-alpha/2018-08/msg00003.html

Signed-off-by: Chris Packham <judge.packham@gmail.com>
4 years ago
Ola Olsson d187ee46b3 Fix typo in ARM/thumb help
Signed-off-by: Ola Olsson <ola1olsson@gmail.com>
4 years ago
Alexey Neyman 0472602b51 Require 2.29 if building glibc for RISC-V64
Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 51f1db5c0a
Merge pull request #1178 from stilor/master
Last fixes for 1.24.0
5 years ago
Konstantin Vasin c4bc4f686a uClibc: fix selection of debug level 5 years ago
Alexey Neyman f9b57cc78a Enable zlib companion lib if building LTO
While we may use build machine's library when building a simple cross,
we won't have it for the host machine in a canadian build. Until there
are separate selectables for the build/host components, just build our
own local zlib.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman a34f7e81ae Only select GDB version if GDB is enabled
... which fixes a bogus warning when configuration without GDB is
loaded.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 19cc968f33 Require WCHAR in uClibc for all GDB versions
if building natively. 7.12.1 and 7.11.1 are also breaking in absence of
<wctype.h>

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman c65df691de Mark binutils/gdb requirements for RISC-V
Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 31002a0c0a Add an ability to mark a configuration as invalid
... so that the build will fail early and predictably.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 5e82ca9e3d Only build libinproctrace for *-linux-gnu targets
Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman de36f78f89 Allow older GDB to build against newer glibc
Also, fix the subdir used when only gdbserver is built (without native
GDB).

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 1e25ebc7e0 Move GDB build into a common backend function
... needed to create a common runtime test for an incompatible change
in glibc API.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 4ddad7b34f CentOS6 cannot use newer GDB releases
... unless one retrofits it with a decent compiler instead of stock
GCC 4.4.

While here, sync up the ax_*.m4 with autoconf-archive.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman b3cce054ef Meet our new companion tool, bison
Which is here courtesy of CentOS6, which only has bison 2.4 - while new
glibc requires 2.7.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 862c35457d Fix build of glibc 2.29 on systems with obsolete host programs
- Force building make as a companion tool if host make is older than
4.0 (CentOS 7 currently has 3.82)
- Disable 2.29 as a choice if host python is older than 3.4
(CentOS 7 has 2.6 unless python from EPEL is installed)
- Python2 emits its version information to STDERR. Ugh.

While there, also use the detected host Python for GDB configuration.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 9b9e5c4162 Make lzip an optional dependency
Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 49b71e71d6 Don't enable "shared flat"
... unless experimental. This unbreaks m68k-uclinux-uclibc sample which
after the recent change in uClibc.sh attempted to build a shared flat
library and failed. We were not building shared flat libraries before.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 2219aab336 Implement an option to store downloads in subdirs
... following the buildroot model.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 0fe21f8db8 Config v2: select relevant parts of each package version
Also, remove a couple of config options that dealt with package versions
that have been since retired.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman adc16046f7 Add upgrade logic to version-check.sh
Slightly rework config version detector to catch the case where neither
CONFIG_VERSION/CONFIG_VERSION_CURRENT is defined in the config file.

Add olddefconfig and use it after the upgrade.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 57e5be632d Basic framework for checking config file version
Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Andrzej Perczak 7d1b10b5e8
Add new Android API levels 5 years ago
Alexey Neyman b0d954f0ec Allow short "moxiebox" alias
... while making use of the new tunables.

Also, unmark the moxie-elf as broken: the ld scripts installed by newlib
can be found by the compiler and can link the binaries. Why the default
script is broken is not ct-ng's problem...

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 5cf859d9d9 Add config flags for omitting 'arch' and 'vendor'
... parts of the config tuple. While here, remove parts that are
setting portions of the target tuple to a value that's already
the default.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 7a7a20bfee Moxiebox requires target to be LE
Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 854b18b2ac Disallow selection of "both endianness"
... if the architecture only supports single endianness selection.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman e149e28e57 Disable -fstack-protector* from being used by glibc
... until it was fixed (to some extent) in 2.25.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 1e5c48f190 Require ld to be default when building mingw-w64
Fixes #674.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman f5b57504d2 Add configuration options for enabling SSP
... in uClibc and glibc.

Fixes #681.

While here, relocate additional "sources" for uClibc/binutils into packages/
directory.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 893932e90f Add a config option for default RELRO setting
Fixes #656.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman d9afcd80fc Warn if architecture is empty on x86/32bit
as that defaults to i386, which will fail with glibc (and likely other
libcs).

Fixes #617.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman d1910b945b Restrict flat format to architectures that support it
Fixes #878

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman a4dc14dba4 Consider it success if DoForceRmdir removes only the content
Fixes #929.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 40d5bf6440 Add moxiebox as a choice for libc
This required some rework of the libc selection, as moxiebox is a layer on
top of another libc - newlib.

Also, moxiebox'es host VM (`sandbox`) needs a libcrypto on the host. We will
not have it if we're cross-compiling a canadian cross. Fortunately, all moxiebox
needs from libcrypto is SHA256, and it already includes a standalone implementation
of SHA256 in its runtime. Provide a little wrapper that allows moxiebox use
that implementation for the host binary, too.

Also, automate collecting/printing the list of all packages in a given category
(e.g. LIBC or COMP_TOOLS), generate a list of all Kconfig symbols for a given
category.

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 172308cb1b Add moxie architecture
and a moxie-unknown-elf target (which is what #1088 apparently wanted).

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman da76ae3ea3 Add DTC as a companion tool
(needed for cross-gdb targeting the moxie-* targets)

Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago
Alexey Neyman 8fe21d70a2 Make license collection optional, on by default
Signed-off-by: Alexey Neyman <stilor@att.net>
5 years ago