Bug#379090: preparation for 2.6.18-6 kernel upload on monday 20th of november 2006.
"Christian T. Steigies" <firstname.lastname@example.org> writes:
> On Tue, Nov 21, 2006 at 10:05:06AM +0100, Goswin von Brederlow wrote:
>> 3. How else do you build a kernel for a different arch (amd64) than
>> your systems arch (i386)?
> This is how I build m68k kernels on i386/amd64 machines:
> DEB_HOST_ARCH=m68k debuild -B -am68k
> But I guess you want to something slightly different?
Exactly. If DEB_HOST_ARCH != DEB_BUILD_ARCH then make-kpkg
automatically adds the m68k-gnu-linux- prefix for cross compiling.
But building amd64 on i386 has to be done native with the
i486-linux-gnu-gcc (or just gcc) as it is not cross-compiling.
make-kpkg has the special --cross-compile='-' to tell it to use the
native gcc even if DEB_HOST_ARCH != DEB_BUILD_ARCH.
Could you apply the patch and check that 'DEB_HOST_ARCH=m68k debuild
-B -am68k' still works? If it breaks something I'm happy to fix