summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-09-26Fix build with ISL 0.20Alexey Neyman10-20/+137
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-25Upgrades. Lots of 'em.Alexey Neyman159-730/+1061
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-25Merge pull request #1029 from stilor/fix-bionic-buildAlexey Neyman1-1/+7
Restore *-android build
2018-09-25Restore *-android buildAlexey Neyman1-1/+7
Modify CT_TARGET_CFLAGS (which are passed to GCC's FOR_TARGET flags) rather than CT_ALL_TARGET_CFLAGS. Fixes #1006. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-09-23Merge pull request #1001 from cpackham/kconfig-fixAlexey Neyman1-2/+6
kconfig: display recursive dependency resolution hint just once
2018-09-23Merge pull request #994 from jcmvbkbc/xtensa-fix-pr65416Alexey Neyman4-0/+404
package/gcc: fix xtensa PR target/65416
2018-09-23Merge pull request #1025 from bhundven/update_musl_1_1_20Bryan Hundven3-2/+9
Add musl-libc 1.1.20
2018-09-23Fix compressed for tar, tooBryan Hundven1-1/+1
Signed-off-by: Bryan Hundven <bryan.hundven@gmail.com>
2018-09-23Ignore compressed filesBryan Hundven1-2/+5
Signed-off-by: Bryan Hundven <bryan.hundven@gmail.com>
2018-09-23Add musl-libc 1.1.20Bryan Hundven2-0/+4
Signed-off-by: Bryan Hundven <bryan.hundven@gmail.com>
2018-09-22Merge pull request #990 from antmak/fix_newlib_multilib_optAlexey Neyman1-1/+1
Fix a wrong name for the newlib's multilib option
2018-09-22Merge pull request #1012 from EvgeniiDidin/masterAlexey Neyman1-0/+37
patches: mpfr: Fix obsolete ARC asm constraints
2018-09-22Merge pull request #1020 from sifive/dev/paulw/rv64-fixedAlexey Neyman3-0/+18
riscv: add rv64gc support
2018-09-11riscv64: add rv64gc linux-gnu samplePaul Walmsley2-0/+15
This sample works well for the SiFive U540 device (and similar). Thanks to Jim Wilson <jimw@sifive.com> for his review, discovering several bugs (now fixed). Cc: Jim Wilson <jimw@sifive.com> Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com>
2018-09-10config: arch: riscv: add initial 64-bit supportPaul Walmsley1-0/+3
Add initial rv64 support. Originally based on suggestions from Franz Flasch <franz.flasch@gmx.at>. Cc: Franz Flasch <franz.flasch@gmx.at> Signed-off-by: Paul Walmsley <paul.walmsley@sifive.com> Signed-off-by: Paul Walmsley <paul@pwsan.com>
2018-08-21patches: mpfr: Fix obsolete ARC asm constraintsEvgeniy Didin1-0/+37
Adding this patch fixes errors while building mpfr for native ARC toolcahin. Error messages are: -----------------------------------------------------8<------------------ ... [ERROR] .build/HOST-arc-snps-linux-uclibc/arc-snps-linux-uclibc/src/ mpfr/src/mpfr-longlong.h:423:3: error: impossible constraint in 'asm' ... [ERROR] >> Build failed in step 'Installing MPFR for host' -----------------------------------------------------8<------------------ Signed-off-by: Evgeniy Didin <didin@synopsys.com>
2018-07-10kconfig: display recursive dependency resolution hint just onceMasahiro Yamada1-2/+6
Commit 1c199f2878f6 ("kbuild: document recursive dependency limitation / resolution") probably intended to show a hint along with "recursive dependency detected!" error, but it missed to add {...} guard, and the hint is displayed in every loop of the dep_stack traverse, annoyingly. This error was detected by GCC's -Wmisleading-indentation when switching to build-time generation of lexer/parser. scripts/kconfig/symbol.c: In function ‘sym_check_print_recursive’: scripts/kconfig/symbol.c:1150:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] if (stack->sym == last_sym) ^~ scripts/kconfig/symbol.c:1153:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ fprintf(stderr, "For a resolution refer to Documentation/kbuild/kconfig-language.txt\n"); ^~~~~~~ I could simply add {...} to surround the three fprintf(), but I rather chose to move the hint after the loop to make the whole message readable. Fixes: 1c199f2878f6 ("kbuild: document recursive dependency limitation / resolution" Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Luis R. Rodriguez <mcgrof@kernel.org> [upstream commit e3b03bf29d6b99fab7001fb20c33fe54928c157a] Fixes #1000 Signed-off-by: Chris Packham <judge.packham@gmail.com>
2018-06-24package/gcc: fix xtensa PR target/65416Max Filippov4-0/+404
gcc-8.1 for xtensa miscompiles uClibc dynamic linker due to gcc PR target/65416. The build completes successfully, but the binary is non-functional because the following fragment in the _dl_get_ready_to_run in ld-uClibc.so overwrites register spill area on stack causing register corruption in the previous call frame and a subsequent crash: 419f: f0c1b2 addi a11, a1, -16 41a2: 1ba9 s32i.n a10, a11, 4 41a4: 0bc9 s32i.n a12, a11, 0 41a6: 5127f2 l32i a15, a7, 0x144 41a9: 1765b2 s32i a11, a5, 92 41ac: 4e2782 l32i a8, a7, 0x138 41af: 146af2 s32i a15, a10, 80 41b2: 001b10 movsp a1, a11 The crash terminates the init process and causes kernel panic. The fix prevents reordering of movsp opcode and any access to the stack frame memory and is applicable to all existing gcc versions. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
2018-06-15Fix a wrong name for the newlib's multilib optionAnton Maklakov1-1/+1
2018-06-07Merge pull request #981 from stilor/use-git-version-genAlexey Neyman3-11/+238
Use git-version-gen to generate version info
2018-06-07Use git-version-gen to generate version infoAlexey Neyman3-11/+238
Suggested-by: Chris Packham <judge.packham@gmail.com> Signed-off-by: Alexey Neyman <stilor@att.net>
2018-06-06Merge pull request #979 from stilor/masterAlexey Neyman3-15/+54
Make patch order overridable by individual packages
2018-06-06Make patch order overridable by individual packagesAlexey Neyman3-15/+54
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-06-06Merge pull request #978 from stilor/fix-gcc8-regressionsAlexey Neyman17-38/+121
Fix gcc8 regressions
2018-06-05Disable context functions for ThumbAlexey Neyman1-0/+1
They're written in ARM dialect, and `ldmia r14, {r14, pc}` is not accepted in T2 encoding. GCC8 changed the list of multilibs for arm-*, which now includes a variant with CPU that supports T2 but not A1 encoding. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-06-05Add upstream patch fixing XScale buildAlexey Neyman1-0/+52
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-06-05Add --enable-obsolete for powerpc-*-speAlexey Neyman1-3/+3
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-06-05Detect errors from gasAlexey Neyman1-0/+1
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-06-05Backport a gcc8 fix from upstreamAlexey Neyman1-0/+32
Signed-off-by: Alexey Neyman <stilor@att.net>
2018-06-05Avoid adding arch/cpu/tune flags for target to GCC buildAlexey Neyman12-35/+32
... as it may need to override them for building runtime-selectable code. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-05-31Merge pull request #977 from dimkr/new-uclibc-old-kernelAlexey Neyman6-28/+25
packages: add uClibc-ng 1.0.30 and last Linux 2.6.32.x
2018-05-31linux: removed 2.6.32.27Dima Krasner3-29/+0
Signed-off-by: Dima Krasner <dima@securingsam.com>
2018-05-28packages: add uClibc-ng 1.0.30 and last Linux 2.6.32.xDima Krasner4-0/+26
Signed-off-by: Dima Krasner <dima@dimakrasner.com>
2018-05-21Merge pull request #970 from abrodkin/topic-uclibc-multilibAlexey Neyman6-6/+82
Add support and sample for uclibc multilib toolchain for ARC
2018-05-21ARC: Update Linux samplesAlexey Brodkin4-12/+2
There's no point in keeping samples which are in its essense just a sub-set of multilib toolchain. But still we'd like to cover quite unusual but really existing case - ARC750, i.e. ARC700 with MMU but without so-called atomic instructions (LLOCK/SCOND). To support this HW variation we need: 1) Compile all target binaries without "-matomics" or even better "-mno-atomics" so that's even future-proof (as we may decide to enable "-matomics" by default for Linux targets which is a recommented setup). 2) Configure libc such that it uses Linux-kernel-assisted implementation of atomic operation via "arc_usr_cmpxchg" syscall, see https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=b985fa069187e4c5a7ee84213d9fbead2f219ce5 Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-05-21ARC: Disable CONFIG_ARC_HAS_ATOMICS in uClibc if building without -matomicsAlexey Brodkin1-1/+1
In case we build for ARC core which has no support of atomic ops among other things we need to configure libc to use Linux kernel helper to emulate HS atomic ops. This is done with disabling of CONFIG_ARC_HAS_ATOMICS in uClibc. Currently we __remove__ this option from .config but this makes no sense as its default state is "y" so we need to explicitly disable it instead. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-05-21ARC: Add Linux uClibc multilib sampleAlexey Brodkin2-0/+10
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-05-21ARC: Add multilib support for Linux in GCCAlexey Brodkin1-0/+76
We never bothered to build multilibbed Linux toolchains for ARC and so we ended-up with no support of multilib for arc*-*-linux-* targets in GCC. That is now fixed in upstream by the following commit: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=0eacfbcb2bf1834294f468a2bb41fe5d5e8d3883 Once the fix mentioned above is applied on top of GCC 8.1.0 we may easily build multilibbed uClibc toolchain for ARC. Note sice Glibc port for ARC is still in review process we cannot build any Glibc toolchains for ARC with pure upstream components, for that we eiter need Glibc sources from our Github repo or apply a set of patches on top of Glibc 2.27 - we'll try to address this later though. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-05-16Merge pull request #971 from abrodkin/topic-elf32-multilibAlexey Neyman3-0/+42
ARC: Add support and sample for baremetal/elf32 multilib toolchain
2018-05-16Merge pull request #969 from abrodkin/topic-fix-arc700Alexey Neyman1-0/+402
ARC: Fix Linux kernel compilation for ARC700
2018-05-16ARC: Add baremetal/elf32 multilib sampleAlexey Brodkin2-0/+7
Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-05-16ARC: Don't mention in multilib not yet supported CPUsAlexey Brodkin1-0/+35
hs4x and hs4xd were mistakenly mentioned in MULTILIB_OPTION/DIRNAMES before real support of those CPUs was accepted in upstream. That breaks multilib toolchains building becase we're trying to compile for not yet known CPU. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-05-16ARC: Fix Linux kernel comilation for ARC700Alexey Brodkin1-0/+402
Without this fix we're getting the following error on attempt to build Linux kernel: --------------------------------->8--------------------------------- xfrm4_mode_tunnel.s: Assembler messages: xfrm4_mode_tunnel.s:188: Error: operand out of range (128 is not between - 128 and 127) --------------------------------->8--------------------------------- The fix is taken from https://github.com/foss-for-synopsys-dwc-arc-processors/gcc/commit/d8d716f49c0057e239f2b64e7d902046b92d244f and it is supposed to be merged in upstream GCC sources soonish. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-05-15Merge pull request #968 from stilor/fix-cpu-countAlexey Neyman1-1/+1
Doh. Change the name of the substituted variable
2018-05-15Doh. Change the name of the substituted variableAlexey Neyman1-1/+1
... to match the substituted name. Fixes #966. Signed-off-by: Alexey Neyman <stilor@att.net>
2018-05-15Merge pull request #967 from stilor/fix-building-older-glibcAlexey Neyman88-31/+4259
Fix building older glibc
2018-05-15Merge pull request #964 from abrodkin/topic-arcAlexey Neyman6-0/+69
Add ARC architecture support
2018-05-15Add ARC700 and ARC HS38 Linux samplesAlexey Brodkin4-0/+20
ARC700 is based on ARCompact (AKA ARCv1 ISA) while ARC HS38 is based on modern ARCv2 ISA. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-05-15Add ARC architecture supportAlexey Brodkin2-0/+49
Synopsys' DesignWare ARC Processors are a family of 32-bit CPUs that SoC designers can optimize for a wide range of uses, from deeply embedded to high-performance host applications in a variety of market segments. Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2018-05-15Too many fixes need backporting for GCC8...Alexey Neyman3-14/+14
... so instead, disable -Werror for older versions of glibc. Signed-off-by: Alexey Neyman <stilor@att.net>