<div dir="ltr"><div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I am using yocto for wandboard. I have written one I2C driver for my I2C device.<br><br></div> <b>The procedure which I followed to add and build the driver in yocto is as</b>:<br>

<br></div><span style="color:rgb(0,0,255)">1) Make the entry of my driver in Makefile and Kconfig in build directory.<br></span></div><div><span style="color:rgb(0,0,255)">2) Replace the defconfig (present in source directory) with .config (present in build directory).<br>

</span></div><span style="color:rgb(0,0,255)">3) Add the driver information in device tree file. </span><br><br></div>Then<span style="color:rgb(255,0,0)"> <span style="color:rgb(0,0,0)">I run the</span> <b>bitbake linux-imx -c compile -f</b></span> to compile the kernel and face some errors. So is there any way (like to add as a patch <i>(patch of conf file and driver source code</i>) in some .bbappend file or something equivalent to it) through which I can add and compile my driver successfully<br>

<br></div><span style="color:rgb(0,0,255)"><i><b>But during compilation I faced the below errors:</b></i></span><br><br><i>vinod@vinod:~/vvdn/VSTI_PoSX/yocto_src/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.17-r0/git$
 bitbake linux-imx -c compile -f<br>Loading cache: 100% 
|############################################################################################|
 ETA:  00:00:00<br>Loaded 1820 entries from dependency cache.<br>NOTE: Resolving any missing task queue dependencies<br><br>Build Configuration:<br>BB_VERSION        = "1.22.0"<br>BUILD_SYS         = "x86_64-linux"<br>

NATIVELSBSTRING   = "Ubuntu-12.04"<br>TARGET_SYS        = "arm-poky-linux-gnueabi"<br>MACHINE           = "imx6qsabresd"<br>DISTRO            = "poky"<br>DISTRO_VERSION    = "1.6.1"<br>

TUNE_FEATURES     = "armv7a vfp neon callconvention-hard cortexa9"<br>TARGET_FPU        = "vfp-neon"<br>meta              <br>meta-yocto        = "(nobranch):8e05d5e3fe04face623c4f9fb08b12f13c22edab"<br>

meta-oe           = "(nobranch):ee24939c4c70b63a9fb7e93a58889a3231d3d367"<br>meta-fsl-arm      = "(nobranch):d91871446d6baee8397522c4fa10d45985aa8645"<br>meta-fsl-arm-extra = "(nobranch):456c27085a70bb1385a4c2e28ba80ac74d6f533e"<br>

meta-fsl-demos    = "(nobranch):27fdb2f2642ecd55d5633bde880dd4c37acd0d42"<br><br>NOTE: Preparing runqueue<br>NOTE:
 Tainting hash to force rebuild of task 
/home/vinod/vvdn/VSTI_PoSX/yocto_src/sources/meta-fsl-arm/recipes-kernel/linux/<a href="http://linux-imx_3.10.17.bb" target="_blank">linux-imx_3.10.17.bb</a>,
 do_compile<br>NOTE: Executing SetScene Tasks<br>NOTE: Executing RunQueue Tasks<br>ERROR:
 Function failed: do_compile (log file is located at 
/home/vinod/vvdn/VSTI_PoSX/yocto_src/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.17-r0/temp/log.do_compile.28793)<br>ERROR:
 Logfile of failure stored in: 
/home/vinod/vvdn/VSTI_PoSX/yocto_src/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.17-r0/temp/log.do_compile.28793<br>Log data follows:<br>| DEBUG: Executing shell function do_compile<br>|
 NOTE: make -j 4 uImage CC=arm-poky-linux-gnueabi-gcc  
-mno-thumb-interwork -marm LD=arm-poky-linux-gnueabi-ld.bfd   
LOADADDR=0x10008000<br>|   HOSTCC  scripts/basic/fixdep<br>|   HOSTCC  scripts/kconfig/conf.o<br>|   HOSTCC  scripts/kconfig/zconf.tab.o<br>|   HOSTLD  scripts/kconfig/conf<br>| scripts/kconfig/conf --silentoldconfig Kconfig<br>

| ***<br>| *** Configuration file ".config" not found!<br>| ***<br>| *** Please run some configurator (e.g. "make oldconfig" or<br>| *** "make menuconfig" or "make xconfig").<br>| ***<br>

| make[2]: *** [silentoldconfig] Error 1<br>| make[1]: *** [silentoldconfig] Error 2<br>| make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.<br>| ERROR: oe_runmake failed<br>

| WARNING: exit code 1 from a shell command.<br>|
 ERROR: Function failed: do_compile (log file is located at 
/home/vinod/vvdn/VSTI_PoSX/yocto_src/build/tmp/work/imx6qsabresd-poky-linux-gnueabi/linux-imx/3.10.17-r0/temp/log.do_compile.28793)<br>ERROR:
 Task 4 
(/home/vinod/vvdn/VSTI_PoSX/yocto_src/sources/meta-fsl-arm/recipes-kernel/linux/<a href="http://linux-imx_3.10.17.bb" target="_blank">linux-imx_3.10.17.bb</a>,
 do_compile) failed with exit code '1'<br>NOTE: Tasks Summary: Attempted 247 tasks of which 246 didn't need to be rerun and 1 failed.<br><br>Summary: 1 task failed:<br>  /home/vinod/vvdn/VSTI_PoSX/yocto_src/sources/meta-fsl-arm/recipes-kernel/linux/<a href="http://linux-imx_3.10.17.bb" target="_blank">linux-imx_3.10.17.bb</a>, do_compile<br>

Summary: There was 1 ERROR message shown, returning a non-zero exit code.<br><br></i></div></div>