Cross compiling , yes but with `gcc` or `clang` ?
I need to build a driver for a graphic card of the powerpc architecture. Build with `gcc` The steps to do that seems more of less easy: add toolchain, run make with options to point new toolchain. First: Here in opensuse with `zypper` we added the `ppc64le` toolchain. sudo zypper in cross-ppc64le-linux-glibc-devel cross-ppc64le-gcc15-bootstrap Second: Clean previous configs with `mrproper` and then run `all` (maybe you need to run also `menuconfig`) make -j$(nproc) O=~/LF/cross/powerpc ARCH=powerpc HOSTCC=gcc CROSS_COMPILE=powerpc64le-suse-linux- mrproper make ARCH=powerpc mrproper make -j$(nproc) V=1 O=~/LF/cross/powerpc ARCH=powerpc HOSTCC=gcc CROSS_COMPILE=powerpc64le-suse-linux- all Log: This is a line from the output, we see how the compiler name is composed with $CROSS_COMPILE plus the compiler name `gcc` in this case. powerpc64le-suse-linux-gcc -Wp,-MMD,lib/.iomem_copy.o.d -nostdinc -I/home/jg/LF/linux_work/linux_mainline/arch/...