I' trying to build a kernel for a Sony Xperia Z3 Tablet compact following this guide:
The error I receive is the following upon
make ARCH=arm CROSS_COMPILE=$CROSS_COMPILE -j4
...
CC kernel/exec_domain.o
CC arch/arm/mach-msm/board-8974-gpiomux.o
AS arch/arm/mm/tlb-v7.o
AS arch/arm/mm/proc-v7.o
CC mm/mempool.o
arch/arm/mach-msm/board-8974-gpiomux.c:692:24: error: 'gpio_spi_config' undeclared here (not in a function)
[GPIOMUX_ACTIVE] = &gpio_spi_config,
^
LD arch/arm/mm/built-in.o
scripts/Makefile.build:308: die Regel für Ziel „arch/arm/mach-msm/board-8974-gpiomux.o“ scheiterte
make[1]: *** [arch/arm/mach-msm/board-8974-gpiomux.o] Fehler 1
Makefile:815: die Regel für Ziel „arch/arm/mach-msm“ scheiterte
make: *** [arch/arm/mach-msm] Fehler 2
make: *** Auf noch nicht beendete Prozesse wird gewartet …
CC mm/oom_kill.o
CC kernel/panic.o
CC kernel/printk.o
CC kernel/cpu.o
CC mm/fadvise.o
...
as proposed in the HowTo I did following steps:
- installed 4.8 cross compile toolchain and exported CROSS_COMPILE var
- cloned kernel repository
- took aosp_shinano_scorpion_defconfig from aosp repository
- updated the config
- ran the above mentioned build command
As I could see in the board-8974-gpiomux.c
the declaration of the gpio_spi_config
struct is inside an ifdef
, but the call where the error occured is outside the scope of the ifdef
condition.
So it seems logical to me, that the compiler complains about that. But I also doubt an error in the source, because I'm quite certain that I'm not the first one following that guide.
Any ideas?
Thanks and regards, Timo