I am very sorry for reopening this bug now. But the problem is not really fixed and have only now time for testing it. In the end of the email is a diff that solves the problem for me. I don't have much experiency cross-compiling Linux Kernel and modules, so It may not be the best way of doing it. I have tested with loop-aes-source and a openafs-module-source on i386 sid chroot.
You can download my personall kernel-package with the problem fixed from: http://debian.tagus.ist.utl.pt/debian/dists/etch/UNRELEASED/main/kernel-package_11.002~tp.dsc or use the following diff: diff -ruN kernel-package-11.001/debian/changelog kernel-package-11.002~tp/debian/changelog --- kernel-package-11.001/debian/changelog 2008-01-14 23:49:25.000000000 +0000 +++ kernel-package-11.002~tp/debian/changelog 2008-07-24 15:46:55.000000000 +0100 @@ -1,3 +1,10 @@ +kernel-package (11.002~tp) unstable; urgency=low + + * Really bug fix: "kernel-package: Option --cross-compile=- dont't work + whith target modules*", thanks to Jose Calhariz (Closes: #417948). + + -- Jose Calhariz <[EMAIL PROTECTED]> Thu, 24 Jul 2008 15:46:55 +0100 + kernel-package (11.001-0.1) unstable; urgency=low * Porter NMU. diff -ruN kernel-package-11.001/kernel/ruleset/ChangeLog kernel-package-11.002~tp/kernel/ruleset/ChangeLog --- kernel-package-11.001/kernel/ruleset/ChangeLog 2007-05-05 06:48:30.000000000 +0100 +++ kernel-package-11.002~tp/kernel/ruleset/ChangeLog 2008-07-24 15:46:31.000000000 +0100 @@ -1,3 +1,21 @@ +2008-07-24 Jose Calhariz <[EMAIL PROTECTED]> + + * modules.mk (int_ca): + When doing cross-compilation of kernel and externel + modules, --cross-compile=- option is ignored with + targets modules*. The compilation fails because it + tries to use the "-gcc" compiler. The variable CROSS_ARG + should be passed as is, no need to create a new variable int_ca. + (modules-clean modules_clean): + Added CROSS_ARG + (modules-config modules_config): + Ditto. + (modules): + Ditto. + (modules-image modules_image): + Ditto. + + 2007-05-05 Manoj Srivastava <[EMAIL PROTECTED]> * minimal.mk: diff -ruN kernel-package-11.001/kernel/ruleset/modules.mk kernel-package-11.002~tp/kernel/ruleset/modules.mk --- kernel-package-11.001/kernel/ruleset/modules.mk 2007-05-05 06:48:30.000000000 +0100 +++ kernel-package-11.002~tp/kernel/ruleset/modules.mk 2008-07-24 15:41:45.000000000 +0100 @@ -71,13 +71,6 @@ ) endef -# Pass on cross arg, if not empty -ifneq ($(strip $(CROSS_ARG)),) - int_ca := "CROSS_ARCG=$(CROSS_ARG)" -else - int_ca := -endif - # only generate module image packages modules-image modules_image: .config @@ -102,7 +95,7 @@ KPKG_DEST_DIR="$(KPKG_DEST_DIR)" \ KPKG_MAINTAINER="$(maintainer)" \ KPKG_EXTRAV_ARG="$(EXTRAV_ARG)" \ - ARCH="$(KERNEL_ARCH)" $(int_ca) \ + ARCH="$(KERNEL_ARCH)" $(CROSS_ARG) \ KDREV="$(debian)" kdist_image; then \ echo "Module $$module processed fine"; \ else \ @@ -146,7 +139,7 @@ KMAINT="$(pgp)" KEMAIL="$(email)" \ KPKG_DEST_DIR="$(KPKG_DEST_DIR)" \ KPKG_MAINTAINER="$(maintainer)" \ - ARCH=$(KERNEL_ARCH) $(int_ca) \ + ARCH=$(KERNEL_ARCH) $(CROSS_ARG) \ KPKG_EXTRAV_ARG="$(EXTRAV_ARG)" \ KDREV="$(debian)" kdist; then \ echo "Module $$module processed fine"; \ @@ -191,7 +184,7 @@ KMAINT="$(pgp)" KEMAIL="$(email)" \ KPKG_DEST_DIR="$(KPKG_DEST_DIR)" \ KPKG_MAINTAINER="$(maintainer)" \ - ARCH=$(KERNEL_ARCH) $(int_ca) \ + ARCH=$(KERNEL_ARCH) $(CROSS_ARG) \ KPKG_EXTRAV_ARG="$(EXTRAV_ARG)" \ KDREV="$(debian)" kdist_configure; then\ echo "Module $$module configured fine"; \ @@ -226,7 +219,7 @@ KMAINT="$(pgp)" KEMAIL="$(email)" \ KPKG_DEST_DIR="$(KPKG_DEST_DIR)" \ KPKG_MAINTAINER="$(maintainer)" \ - ARCH=$(KERNEL_ARCH) $(int_ca) \ + ARCH=$(KERNEL_ARCH) $(CROSS_ARG) \ KPKG_EXTRAV_ARG="$(EXTRAV_ARG)" \ KDREV="$(debian)" kdist_clean; then \ echo "Module $$module cleaned"; \ -- -- P. O que significa FeedBack? R. Filho de zagueiro.
signature.asc
Description: Digital signature