Package: kernel-package Version: 8.125
The CROSS_COMPILE environment variable's meaning is inconsistent between kernel-package & the Linux kernel source -
According to these lines from "/usr/share/kernel-package/rules", for build tools "XXX-tool", CROSS_COMPILE should be "XXX" -
[...] KERNEL_CROSS:=$(CROSS_COMPILE)- [...] CROSS_ARG:=CROSS_COMPILE=$(KERNEL_CROSS) [...]
However, according to these lines from "linux/Makefile", CROSS_COMPILE should be "XXX-" -
[...] AS = $(CROSS_COMPILE)as LD = $(CROSS_COMPILE)ld CC = $(CROSS_COMPILE)gcc [...]
This problem is more serious than spurious warnings (#297677) since some external modules fail to build - either by setting CROSS_COMPILE "powerpc-linux" -
[...]
make[4]: Entering directory `/home/me/src/modules/mol/src/kmod'
+ Entering Linux
/home/me/src/kernel/linux-2.6.10-fis-200502221/scripts/gcc-version.sh: line 11: powerpc-linuxgcc: command not found
[...]
- or CROSS_COMPILE "powerpc-linux-" -
/usr/bin/make EXTRAVERSION=-fis-200503060 CROSS_COMPILE=powerpc-linux-- \
ARCH=ppc prepare
make[1]: powerpc-linux--gcc: Command not found
I think the meaning of CROSS_COMPILE according to kernel-package should be reconciled with its meaning according to the Linux kernel source.
Thanks for maintaining kernel-package!
Jack
patch
Description: Binary data