AnsweredAssumed Answered

【P1010】 How to compile kernel module

Question asked by 陆 禹帆 on Jul 26, 2016
Latest reply on Jul 26, 2016 by bpe

make -C /home/yflu/linux-3.10.48 M=/home/yflu/hello modules ARCH=powerpc CROSS_COMPILE=powerpc-fsl-linux-gnuspe-

make[1]: Entering directory `/home/yflu/linux-3.10.48'

  Building modules, stage 2.

  MODPOST 1 modules

  LD [M]  /home/yflu/hello/mo.ko

powerpc-fsl-linux-gnuspe-ld: unrecognized option '-Wl,-O1'

powerpc-fsl-linux-gnuspe-ld: use the --help option for usage information

make[2]: *** [/home/yflu/hello/mo.ko] Error 1

make[1]: *** [modules] Error 2

make[1]: Leaving directory `/home/yflu/linux-3.10.48'

make: *** [all] Error 2

Outcomes