AnsweredAssumed Answered

How to compile linux kernel for P4080 with no SMP (just one cpu)

Question asked by Paramahansa Polo on Jan 5, 2017
Latest reply on Jan 11, 2017 by Pavel Chubakov

Hello,

 

I'm trying to compile the linux kernel (SDK 2.0) with no SMP support, since I intended to run it just on one CPU.

I disabled CONFIG_SMP in menuconfig, after that compilation fails with the following error message

 

  CC      arch/powerpc/sysdev/fsl_rcpm.o
  CC      arch/powerpc/sysdev/fsl_lbc.o
/home/ppolo/Workspace/QorIQ-SDK-V2.0-20160527-yocto/build_p4080ds/tmp/work-shared/p4080ds/kernel-source/arch/powerpc/sysdev/fsl_rcpm.c: In function 'rcpm_v1_irq_mask':
/home/ppolo/Workspace/QorIQ-SDK-V2.0-20160527-yocto/build_p4080ds/tmp/work-shared/p4080ds/kernel-source/arch/powerpc/sysdev/fsl_rcpm.c:32:2: error: implicit declaration of function 'get_hard_smp_processor_id' [-Werror=implicit-function-declaration]
  int hw_cpu = get_hard_smp_processor_id(cpu);
  ^
cc1: all warnings being treated as errors
make[3]: *** [arch/powerpc/sysdev/fsl_rcpm.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [arch/powerpc/sysdev] Error 2
make[1]: *** [sub-make] Error 2
make: *** [__sub-make] Error 2
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /home/ppolo/Workspace/QorIQ-SDK-V2.0-20160527-yocto/build_p4080ds/tmp/work/p4080ds-fsl-linux/linux-qoriq/4.1-r0/temp/log.do_compile.16729)

 

 

Does anybody knows what other step has to be taken in order to compile the linux kernel with no SMP support?

Many thank in advance,

 

-Paramahansa

Outcomes