diff options
author | Leon Romanovsky <leonro@nvidia.com> | 2024-12-03 13:37:15 +0100 |
---|---|---|
committer | Vineet Gupta <vgupta@kernel.org> | 2024-12-13 23:39:24 +0100 |
commit | 824927e88456331c7a999fdf5d9d27923b619590 (patch) | |
tree | 3b8d9b75967bd86610d69b21a7e26e3ef8ea4f6b /drivers/bus/fsl-mc/dpmcp.c | |
parent | ARC: bpf: Correct conditional check in 'check_jmp_32' (diff) | |
download | linux-824927e88456331c7a999fdf5d9d27923b619590.tar.xz linux-824927e88456331c7a999fdf5d9d27923b619590.zip |
ARC: build: Try to guess GCC variant of cross compiler
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>
Diffstat (limited to 'drivers/bus/fsl-mc/dpmcp.c')
0 files changed, 0 insertions, 0 deletions