Commit graph

15 commits

Author SHA1 Message Date
Demetris Ierokipides
fd58bd5200 Merge branch 'master' of github.com:LibreELEC/LibreELEC.tv into Lakka-v5.x 2022-09-25 18:05:43 +03:00
Ian Leonard
e6cade60d9 buildsystem: remove march and mcpu from LDFLAGS
march and mcpu were added in ~2011. I don't know why. I have seen CFLAGS added
en masse to LDFLAGS when using LTO, but that does not explain these inclusions.

Remove to cleanup LDFLAGS.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2022-09-14 22:36:16 +00:00
Demetris Ierokipides
c15f289756 Merge branch 'master' of github.com:LibreELEC/LibreELEC.tv into Lakka-v4.x 2022-09-12 02:08:19 +03:00
GavinDarkglider
9e969c418d
WIP - Add Support for Ayn Odin (#1713)
* Initial fully buildable/bootable Odin Support

* Rework NX-Boot to FAT32 Boot for shared usage between switch and odin

* Move shared packages from switch/odin to main packages folder
2022-08-03 20:43:23 +03:00
Ian Leonard
79d1e14510 buildsystem: rename GCC_OPTS to TARGET_ARCH_GCC_OPTS
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-12-25 21:28:35 +00:00
Ian Leonard
6ed29b1e4b config: set architecture TARGET_FEATURES in config/arch.ARCH
Should PROJECT or DEVICE options set TARGET_FEATURES, tack them on
instead of overwriting them.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-06-20 19:39:44 +00:00
heitbaum
bbcf591e66 aarch64: add TARGET_CPU option cortex-a73.cortex-a53
These are the cpus used in Odroid N2/N2+ and Khadas VIM3

A311D/S922X-B/S922X - cortex-a73.cortex-a53
2021-01-30 08:31:29 +00:00
Ian Leonard
148f1d563c arch.aarch64: don't attempt to use the LSE cpu feature
ARMv8.0-A cpus have an optional LSE feature. This is mandatory in
ARMv8.1-A. By default, gcc will attempt to build support for runtime
detection of the LSE feature on ARMv8.0-A. This causes build failures
when attempting to create a 64-bit userland.

Test packages for this failure include gdb and mesa. Errors manifest
as undefined references to "__aarch64_cas4_acq_rel" or
"__aarch64_swp4_acq_rel" at compile time.

Disable runtime detection to always use its fallback by adding
-mno-outline-atomics to cflags.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2020-09-07 17:44:43 +00:00
kszaq
07e83b2bca config: don't use mcpu switch for arm and aarch64
When compiling glibc for cortex-a9, the following errors appears:
cc1: error: switch -mcpu=cortex-a9 conflicts with -march=armv7-a switch [-Werror]

Using mcpu with march and mtune is not recommended and compiler emits
warnings/errors when mismatched.
2019-05-16 01:19:34 +02:00
Sascha Kuehndel (InuSasha)
58d7972dad
buildsystem: add -mtune to CFLAGS, to be in sync with LDFLAGS. Else segfault is triggered in lto build 2018-06-04 20:07:06 +02:00
MilhouseVH
4d0336e729 buildsystem: simd support (neon/mmx/sse/sse2) is a feature of CPU not project 2018-03-12 22:16:38 +00:00
kszaq
2398539cf8 aarch64: define CPU extensions project-wise
S905 does not support crypto extensions, while other aarch64 CPUs may implement them.
Solution: define CPU extensions project-wise.
2016-09-07 16:06:56 +02:00
zalaare
7a84cdc96f allow all current gcc aarch64 cpu's 2016-04-06 12:01:29 -04:00
zalaare
4e73d4c625 add big.LITTLE support for arm architectures 2016-04-06 10:19:45 -04:00
Lukas Rusak
0fec249b24 config/arch.aarch64: initial support 2016-03-01 00:49:53 +01:00