[yocto] Compiling openvswitch module in yocto

Pradeep kumar topradeepyaduvanshi at gmail.com
Tue Jun 24 01:49:49 PDT 2014


*on x-86 openvswitch compiling steps are as follows:*
->./boot.sh
->./configure --with-linux=/lib/modules/`uname -r`/build
->make
->make install
 by following these steps an openvswitch kernel  module get built in
*openvswitch-1.10.0/datapath/linux/openvswitch.ko*

*i Am using following steps to cross-compile openvswitch for power pc*

->export
PATH=$PATH:/home/nova/new_yocto1.4/QorIQ-SDK-V1.4-20130814-yocto/board/tmp/sysroots/x86_64-linux/usr/bin/ppc64e6500-fsl_networking-linux

->./boot.sh


->./configure --host=x86 --target=powerpc KARCH=powerpc
CC=powerpc64-fsl_networking-linux-gcc
--with-linux=/home/nova/new_yocto1.4/QorIQ-SDK-V1.4-20130814-yocto/build_t4240rdb_release/tmp/work/t4240rdb-fsl_networking-linux/linux-qoriq-sdk/3.8-r17.3/git/
 --enable-ssl=no --prefix=/openvswitch_utils


->make ARCH=powerpc CROSS_COMPILE=powerpc-fsl_networking-linux-

->sudo make ARCH=powerpc CROSS_COMPILE=powerpc-fsl_networking-linux- install
.
.
.
By following these steps an *openvswitch kernel  module get built in
openvswitch-2.1.2/datapath/linux/openvswitch.ko for powerpc arch.*

*Now i want to do the same thing using openvswitch_1.10.0.bb
<http://openvswitch_2.1.2.bb> file*.
# Don't compile kernel modules by default since it heavily depends on
 30 # kernel version. Use the in-kernel module for now.
 31 # distro layers can enable with EXTRA_OECONF_pn_openvswitch += ""
 32 # *EXTRA_OECONF = "--with-linux=${STAGING_KERNEL_DIR}
KARCH=${TARGET_ARCH}"*

acc. to my understanding which can be achieved by uncommenting this line
and passing kernel source directory path in openvswitch_1.10.0.bb  :
*EXTRA_OECONF =
"--with-linux=/home/nova/new_yocto1.4/QorIQ-SDK-V1.4-20130814-yocto/build_t4240rdb_release/tmp/work/t4240rdb-fsl_networking-linux/linux-qoriq-sdk/3.8-r17.3/git
KARCH=powerpc
in openvswitch_1.10.0.bb <http://openvswitch_1.10.0.bb>*

*bitbake -c compile openvswitch*

but it is showing error:*do_compile failed,oe_runmake failed*
and showing .../git/x86/include/asm/unistd...files are missing...
i am new to yocto kindly help me regarding above described issue.thanks in
advance.ITZ URGENT.if u need to see full logs plz ask for the same.
Regards
Pradeep Kumar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20140624/fcd52516/attachment.html>


More information about the yocto mailing list