Thanks Mark, I'll check them out. Regards, Gokul Raj K
On Fri, 7 Jun, 2019, 2:54 AM Mark Hatle, <mark.ha...@windriver.com> wrote: > On 6/6/19 11:46 AM, Gokul Raj wrote: > > Hi Ross, > > > > Thanks for the suggestion. I have tried with inheriting > autotools-brokensep > > bbclass. Now bitbake got the path for compilation. But, bitbake > compilation > > refering to native kernel src path for module compilation. For your > information > > this package comes with both kernel module and userspace binary. Single > makefile > > helps building both kernel module and userspace binary. Attached log for > your > > reference. > > > > Any suggestion to compile this package. > > You will need to break this into two components. The userspace compile is > likely what you have mostly working. The kernel module compilation though > needs > to be a 'machine specific' recipe, tied to the machine and kernel. > > Look at the Yocto Project documentation about building out of tree kernel > modules. > > --Mark > > > Regards, > > Gokul Raj K > > > > On Thu, Jun 6, 2019 at 10:01 PM Burton, Ross <ross.bur...@intel.com > > <mailto:ross.bur...@intel.com>> wrote: > > > > Sounds like the makefiles are broken and can't handle out-of-tree > > builds. Try replacing inherit autotools with inherit > > autotools-brokensep (and if that fixes it, file a bug with jool as > > their build is broken). > > > > > > Ross > > > > On Thu, 6 Jun 2019 at 17:27, Gokul Raj <gokulraj.k...@gmail.com > > <mailto:gokulraj.k...@gmail.com>> wrote: > > > > > > Hi All, > > > > > > I'm new to yocto and I'm trying to create recipe for Jool network > > translator package. Tried to compile this package in manually and > I'm able > > to compile with following steps. > > > Manual Steps: > > > > > > ./autogen.sh > > > ./configure > > > make > > > make install > > > > > > Yocto Receipe: > > > > > > DESCRIPTION = "Jool is an Open Source IPv4/IPv6 Translator" > > > SECTION = "networking" > > > LICENSE = "GPLv2" > > > LIC_FILES_CHKSUM = > "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" > > > > > > SRCREV = "v4.0.1" > > > SRC_URI = "git://github.com/NICMx/Jool.git;protocol=http > > <http://github.com/NICMx/Jool.git;protocol=http>" > > > > > > DEPENDS = "libnl iptables" > > > > > > S = "${WORKDIR}/git" > > > > > > inherit autotools module > > > > > > Getting following error message /bin/bash: line 20: cd: src/mod: > No such > > file or directory But, the src/mod is present in the source > directory. > > Help me resolve this issue. > > > > > > Yocto Build Error: > > > > > > ERROR: jool-4.0.1-r0 do_compile: oe_runmake failed > > > ERROR: jool-4.0.1-r0 do_compile: Function failed: do_compile (log > file is > > located at > > > > /home/graj/poky/build/tmp/work/qemuarm-enigma-linux-gnueabi/jool/4.0.1-r0/temp/log.do_compile.58423) > > > ERROR: Logfile of failure stored in: > > > > /home/graj/poky/build/tmp/work/qemuarm-enigma-linux-gnueabi/jool/4.0.1-r0/temp/log.do_compile.58423 > > > Log data follows: > > > | DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', > 'arm-32', > > 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', > 'common'] > > > | DEBUG: Executing shell function do_compile > > > | NOTE: make -j 6 > > > KERNEL_SRC=/home/graj/poky/build/tmp/work-shared/qemuarm/kernel-source > > > KERNEL_PATH=/home/graj/poky/build/tmp/work-shared/qemuarm/kernel-source > > KERNEL_VERSION=5.0.7-yocto-standard CC=arm-enigma-linux-gnueabi-gcc > > -mno-thumb-interwork -marm -fuse-ld=bfd > > > > -fmacro-prefix-map=/home/graj/poky/build/tmp/work/qemuarm-enigma-linux-gnueabi/jool/4.0.1-r0=/usr/src/debug/jool/4.0.1-r0 > > > > > > -fdebug-prefix-map=/home/graj/poky/build/tmp/work/qemuarm-enigma-linux-gnueabi/jool/4.0.1-r0=/usr/src/debug/jool/4.0.1-r0 > > > > > > -fdebug-prefix-map=/home/graj/poky/build/tmp/work/qemuarm-enigma-linux-gnueabi/jool/4.0.1-r0/recipe-sysroot= > > > > > > -fdebug-prefix-map=/home/graj/poky/build/tmp/work/qemuarm-enigma-linux-gnueabi/jool/4.0.1-r0/recipe-sysroot-native= > > > > -fdebug-prefix-map=/home/graj/poky/build/tmp/work-shared/qemuarm/kernel-source=/usr/src/kernel > > LD=arm-enigma-linux-gnueabi-ld.bfd AR=arm-enigma-linux-gnueabi-ar > > > O=/home/graj/poky/build/tmp/work-shared/qemuarm/kernel-build-artifacts > > KBUILD_EXTRA_SYMBOLS= > > > | Making all in src/mod > > > | /bin/bash: line 20: cd: src/mod: No such file or directory > > > | Makefile:343: recipe for target 'all-recursive' failed > > > | make: *** [all-recursive] Error 1 > > > | ERROR: oe_runmake failed > > > | WARNING: exit code 1 from a shell command. > > > | ERROR: Function failed: do_compile (log file is located at > > > > /home/graj/poky/build/tmp/work/qemuarm-enigma-linux-gnueabi/jool/4.0.1-r0/temp/log.do_compile.58423) > > > ERROR: Task > > (/home/graj/poky/meta-enigma/recipes-example/jool/jool_4.0.1.bb: > do_compile) > > failed with exit code '1' > > > NOTE: Tasks Summary: Attempted 570 tasks of which 563 didn't need > to be > > rerun and 1 failed. > > > > > > Summary: 1 task failed: > > > /home/graj/poky/meta-enigma/recipes-example/jool/jool_4.0.1.bb: > do_compile > > > Summary: There were 2 ERROR messages shown, returning a non-zero > exit code. > > > > > > Source git link: https://github.com/NICMx/Jool > > > > > > Help me in fixing this issue. > > > > > > Regards, > > > Gokul Raj K > > > > > > -- > > > _______________________________________________ > > > yocto mailing list > > > yocto@yoctoproject.org <mailto:yocto@yoctoproject.org> > > > https://lists.yoctoproject.org/listinfo/yocto > > > > > >
-- _______________________________________________ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listinfo/yocto