Trouble cross compiling for powerpc
Tony Breeds
tony at bakeyournoodle.com
Sun Feb 1 22:29:33 UTC 2015
On Fri, Jan 30, 2015 at 02:01:57PM +0100, Paul Bolle wrote:
> I'm having trouble cross compiling on an up-to-date x64_64 F20 machine.
>
> make CROSS_COMPILE=powerpc64-linux-gnu- ARCH=powerpc drivers/dma/ppc4xx/adma.o
> CHK include/config/kernel.release
> CHK include/generated/uapi/linux/version.h
> CHK include/generated/utsrelease.h
> CALL scripts/checksyscalls.sh
> CC drivers/dma/ppc4xx/adma.o
> {standard input}: Assembler messages:
> {standard input}:4475: Error: junk at end of line: `1'
> {standard input}:4616: Error: junk at end of line: `1'
> {standard input}:4626: Error: junk at end of line: `1'
> {standard input}:4649: Error: junk at end of line: `1'
> make[1]: *** [drivers/dma/ppc4xx/adma.o] Error 1
> make: *** [drivers/dma/ppc4xx/adma.o] Error 2
>
> make CROSS_COMPILE=powerpc64-linux-gnu- ARCH=powerpc CFLAGS_adma.o="-S" drivers/dma/ppc4xx/adma.o
> CHK include/config/kernel.release
> CHK include/generated/uapi/linux/version.h
> CHK include/generated/utsrelease.h
> CALL scripts/checksyscalls.sh
> CC drivers/dma/ppc4xx/adma.o
>
> sed -n -e "4475p; 4616p; 4626p; 4649p" drivers/dma/ppc4xx/adma.o
> mfcr 10,1
> mfcr 10,1
> mfcr 10,1
> mfcr 10,1
>
> Anyone else seeing this? Is powerpc64-linux-gnu-gcc choking on the
> assembler it generates itself, or am I doing something wrong?
Sorry to get to the party late but I just grabbed:
https://www.kernel.org/pub/tools/crosstool/files/bin/x86_64/4.8.0/x86_64-gcc-4.8.0-nolibc_powerpc64-linux.tar.xz
and built adma.o without issue.
I used 44x/katmai_defconfig with the following additions.
+CONFIG_DMADEVICES=y
+CONFIG_AMCC_PPC440SPE_ADMA=y
Yours Tony.
More information about the kernel
mailing list