ipipe kernel image compile error
Jan Kiszka
jan.kiszka at web.de
Wed Apr 1 09:06:24 CEST 2020
On 31.03.20 23:42, C Smith via Xenomai wrote:
> Hi,
>
> I'm having a problem compiling Kernel 4.19.109 with
> ipipe-core-4.19.109-cip22-x86-11.patch using Xenomai-3.1.
>
> $ scripts/prepare-kernel.sh --linux=../linux/
> --ipipe=../ipipe-core-4.19.109-cip22-x86-11.patch --arch=x86
>
> I'm compiling with:
> $ m -j4 bzImage
>
> I'm getting following error:
>
> arch/x86/kernel/apb_timer.c: In function ‘apbt_set_mapping’:
> arch/x86/kernel/apb_timer.c:122:21: error: too few arguments to function
> ‘dw_apb_clocksource_init’
> clocksource_apbt = dw_apb_clocksource_init(APBT_CLOCKSOURCE_RATING,
> ^~~~~~~~~~~~~~~~~~~~~~~
> In file included from arch/x86/kernel/apb_timer.c:31:
> ./include/linux/dw_apb_timer.h:50:1: note: declared here
> dw_apb_clocksource_init(unsigned rating, const char *name, void __iomem
> *base,
> ^~~~~~~~~~~~~~~~~~~~~~~
> make[2]: *** [scripts/Makefile.build:303: arch/x86/kernel/apb_timer.o]
> Error 1
> make[1]: *** [scripts/Makefile.build:544: arch/x86/kernel] Error 2
> make[1]: *** Waiting for unfinished jobs....
>
>
> config_20200331
> <https://drive.google.com/file/d/1n3gdgMogUUKjleWzEgAEGu_330mYX_io/view?usp=drive_web>
>
I thought we came across this already and fixed it but... no:
https://gitlab.denx.de/Xenomai/ipipe-noarch/-/commit/a1cfa77db06c3967fc8c790eefa656562f0fba5d
is broken as it is not arch-agnostic. I'll rip that off from the x86
tree for the next release.
Meanwhile, you can work around that by disabling CONFIG_X86_INTEL_MID -
unless you are on an Intel MID platform. Are you?
Jan
More information about the Xenomai
mailing list