linux-yocto/arch/arc
Leon Romanovsky 07bb0775ba ARC: build: Try to guess GCC variant of cross compiler
[ Upstream commit 824927e884 ]

ARC GCC compiler is packaged starting from Fedora 39i and the GCC
variant of cross compile tools has arc-linux-gnu- prefix and not
arc-linux-. This is causing that CROSS_COMPILE variable is left unset.

This change allows builds without need to supply CROSS_COMPILE argument
if distro package is used.

Before this change:
$ make -j 128 ARCH=arc W=1 drivers/infiniband/hw/mlx4/
  gcc: warning: ‘-mcpu=’ is deprecated; use ‘-mtune=’ or ‘-march=’ instead
  gcc: error: unrecognized command-line option ‘-mmedium-calls’
  gcc: error: unrecognized command-line option ‘-mlock’
  gcc: error: unrecognized command-line option ‘-munaligned-access’

[1] https://packages.fedoraproject.org/pkgs/cross-gcc/gcc-arc-linux-gnu/index.html
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Vineet Gupta <vgupta@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-01-09 13:33:47 +01:00
..
boot Kbuild updates for v6.10 2024-05-18 12:39:20 -07:00
configs ARC: configs: enable I2C_DESIGNWARE_CORE with I2C_DESIGNWARE_PLATFORM 2024-09-10 00:36:50 +02:00
include ARC: build: Use __force to suppress per-CPU cmpxchg warnings 2025-01-09 13:33:45 +01:00
kernel of/fdt: add dt_phys arg to early_init_dt_scan and early_init_dt_verify 2024-12-05 14:01:32 +01:00
lib ARCv2: memset: don't prefetch for len == 0 which happens a alot 2023-08-17 12:40:26 -07:00
mm mm: make arch_get_unmapped_area() take vm_flags by default 2024-09-09 16:39:13 -07:00
net ARC: bpf: Correct conditional check in 'check_jmp_32' 2025-01-09 13:33:45 +01:00
plat-axs10x arc: Explicitly include correct DT includes 2023-08-23 22:28:53 -07:00
plat-hsdk
plat-sim
plat-tb10x
Kbuild ARC: Add eBPF JIT support 2024-05-12 16:51:36 -07:00
Kconfig ARC: build: disallow invalid PAE40 + 4K page config 2025-01-09 13:33:45 +01:00
Kconfig.debug
Makefile ARC: build: Try to guess GCC variant of cross compiler 2025-01-09 13:33:47 +01:00