[yocto] Build External Kernel Modules error

Ayoub Zaki ayoub.zaki at googlemail.com
Fri Feb 26 04:33:10 PST 2016


Hello all,

I'm trying to build external kernel module for example : bitbake
cryptodev-module with yocto jethro based branch, but I get the follwoing
error :

NOTE: Preparing RunQueue
WARNING:
/home/inst/Projects/poky/build/../meta/recipes-kernel/cryptodev/cryptodev-module_1.7.bb.do_rm_work_all
is tainted from a forced run
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_make_scripts (log file is located at
/home/inst/Projects/poky/build/tmp/work/shc-poky-linux-gnueabi/cryptodev-module/1.7-r0/temp/log.do_make_scripts.21222)
ERROR: Logfile of failure stored in:
/home/inst/Projects/poky/build/tmp/work/shc-poky-linux-gnueabi/cryptodev-module/1.7-r0/temp/log.do_make_scripts.21222
Log data follows:
| DEBUG: Executing shell function do_make_scripts
| make: Entering directory
`/home/inst/Projects/poky/build/tmp/work-shared/shc/kernel-source'
| make[1]: Entering directory
`/home/inst/Projects/poky/build/tmp/work-shared/shc/kernel-build-artifacts'
|   HOSTCC  scripts/basic/fixdep
|   GEN     ./Makefile
|   HOSTCC  scripts/kconfig/conf.o
|   SHIPPED scripts/kconfig/zconf.tab.c
|   SHIPPED scripts/kconfig/zconf.lex.c
|   SHIPPED scripts/kconfig/zconf.hash.c
|   HOSTCC  scripts/kconfig/zconf.tab.o
|   HOSTLD  scripts/kconfig/conf
| scripts/kconfig/conf  --silentoldconfig Kconfig
| ***
| *** Configuration file ".config" not found!
| ***
| *** Please run some configurator (e.g. "make oldconfig" or
| *** "make menuconfig" or "make xconfig").
| ***
| make[3]: *** [silentoldconfig] Error 1
| make[2]: *** [silentoldconfig] Error 2
| make[1]: *** No rule to make target `include/config/auto.conf', needed by
`scripts'.  Stop.
| make[1]: Leaving directory
`/home/inst/Projects/poky/build/tmp/work-shared/shc/kernel-build-artifacts'
| make: *** [sub-make] Error 2

I'm using a linux 4.1 mainline based kernel and I set the Kernel defconfig
in my machine.conf as follow :

KBUILD_DEFCONFIG = "shc_defconfig"

The kernel and internal modules are built correctly.

Anyone facing the same issue ? how to fix that ?

Cheers,

Ayoub Zaki
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20160226/9c8d7bd3/attachment.html>


More information about the yocto mailing list