Re: [yocto] etherlab

2024-01-26 Thread Ross Burton
On 26 Jan 2024, at 17:14, Daniele Lugli via lists.yoctoproject.org wrote: > > On Thu, Jan 25, 2024 at 01:03 PM, Daniele Lugli wrote: > I would like to have autotools available but to decide myself how to use > them. Not possible? Absolutely possible, the class source shows that it provides def

Re: [yocto] etherlab

2024-01-26 Thread Daniele Lugli
On Thu, Jan 25, 2024 at 01:03 PM, Daniele Lugli wrote: > > I would like to have autotools available but to decide myself how to use > them. Not possible? -- Daniele Lugli General Logic srl Viale Curreno, 41 10133 Torino Italy tel +39 329 3933041 www.general-logic.com ( http://www.general-logic.

Re: [yocto] etherlab

2024-01-25 Thread Daniele Lugli
I would like to have autotools available but to decide myself how to use them. Here is mytest-image.bb: # Adapted from the meta-intel layer require recipes-core/images/core-image-minimal.bb # Skip processing of this recipe if linux-intel-rt is not explicitly specified as the # PREFERRED_PROVID

Re: [yocto] etherlab

2024-01-25 Thread Ross Burton
> On 24 Jan 2024, at 22:18, Daniele Lugli via Lists.Yoctoproject.Org > wrote: > > Interesting. I see from the doc > (https://docs.yoctoproject.org/ref-manual/classes.html?highlight=autotools#autotools) > that the autotools class also runs, "behind the scenes", a do_configure and > a do_inst

Re: [yocto] etherlab

2024-01-24 Thread Daniele Lugli
Interesting. I see from the doc ( https://docs.yoctoproject.org/ref-manual/classes.html?highlight=autotools#autotools ) that the autotools class also runs, "behind the scenes", a do_configure and a do_install. That's all or are there any more? Can I also replace these by writing my own do_confi

Re: [yocto] etherlab

2024-01-24 Thread Daniele Lugli
Hi Ross, thank you for your reply. I tried ... inherit autotools inherit module EXTRA_OECONF = "--sysconfdir=/etc --enable-generic --disable-igb --disable-8139too --with-linux-dir=${STAGING_KERNEL_BUILDDIR}" EXTRA_OEMAKE += "-f ${S}/Makefile.kbuild" ... and now Makefile.kbuild is found. The er

Re: [yocto] etherlab

2024-01-24 Thread Ross Burton
On 24 Jan 2024, at 16:46, Daniele Lugli via lists.yoctoproject.org wrote: > > Hi all, > > Is there a way to have autotools available in the recipe, but without > automatically executing configure and make? > > So I could have my own invocations of make, make modules, make > modules_install e

Re: [yocto] etherlab

2024-01-24 Thread Ross Burton
On 22 Jan 2024, at 22:42, Daniele Lugli via Lists.Yoctoproject.Org wrote: > which fails, and in log.do_compile I find: > ERROR: oe_runmake failed > WARNING: exit code 1 from a shell command. > make: Makefile.kbuild: No such file or directory > make: *** No rule to make target 'Makefile.kbuild

Re: [yocto] etherlab

2024-01-24 Thread Daniele Lugli
Hi all, Is there a way to have autotools available in the recipe, but without automatically executing configure and make? So I could have my own invocations of make, make modules, make modules_install etc Thank you -- Daniele Lugli General Logic srl Viale Curreno, 41 10133 Torino Italy tel +39

Re: [yocto] etherlab

2024-01-22 Thread Daniele Lugli
On Mon, Jan 22, 2024 at 12:08 PM, Ross Burton wrote: > > Especially when someone is trying to be clever and wrap the kbuild > infrastructure inside autotools. Not me :) Thank you very much, Ross. Now I have an ethercat-userspace.bb recipe with --disable-kernel, and the following ethercat-kerne

Re: [yocto] etherlab

2024-01-22 Thread Ross Burton
On 20 Jan 2024, at 20:38, Daniele Lugli via Lists.Yoctoproject.Org wrote: > > Thank you Marek and Ross. > @Ross: I had a look into log.do_configure and found > checking for Linux kernel sources... > /usr/src/linux-headers-6.5.0-14-generic (Kernel 6.5) > but these are from the host, my tar

Re: [yocto] etherlab

2024-01-20 Thread Daniele Lugli
Thank you Marek and Ross. @Ross: I had a look into log.do_configure and found checking for Linux kernel sources... /usr/src/linux-headers-6.5.0-14-generic (Kernel 6.5) but these are from the host, my target kernel is a 6.1 with PREEMPT_RT ! Also it suggests to look into config.log, where I find

Re: [yocto] etherlab

2024-01-19 Thread Ross Burton
On 19 Jan 2024, at 08:56, Marek Belisko via lists.yoctoproject.org wrote: > LICENSE = "GPL-2.0-only & LGPL-2.1-only & Unknown" Obviously you need to fix the Unknown at some point. > DEPENDS += "pkgconfig-native" Idiomatically, inherit pkgconfig is preferred. > EXTRA_OECONF = "--enable-igb --d

Re: [yocto] etherlab

2024-01-19 Thread Marek Belisko
Hi Daniele, On Thu, Jan 18, 2024 at 10:34 PM Daniele Lugli wrote: > Hi Marek, and thank you for your reply. > > Adding line "inherit autotools" (not "autoconf") in my recipe solved that > problem. > (I also had to put the sources of etherlab as a tgz and not as a plain > directory) > > I am now

Re: [yocto] etherlab

2024-01-18 Thread Daniele Lugli
Hi Marek, and thank you for your reply. Adding line "inherit autotools" (not "autoconf") in my recipe solved that problem. (I also had to put the sources of etherlab as a tgz and not as a plain directory) I am now facing a different problem: the configure command complains error: kernel 6.5 no

Re: [yocto] etherlab

2024-01-17 Thread Marek Belisko
On Wed, Jan 17, 2024 at 11:11 PM Daniele Lugli wrote: > Hi all, > > I am trying to add an EtherLAB Ethercat master to my target. > > I added a new recipes-etherlab directory at the same level of other > working recipes: > > recipes-etherlab > | > +-etherlab >| >+-etherlab_0.1.bb >

[yocto] etherlab

2024-01-17 Thread Daniele Lugli
Hi all, I am trying to add an EtherLAB Ethercat master to my target. I added a new recipes-etherlab directory at the same level of other working recipes: recipes-etherlab | +-etherlab | +-etherlab_0.1.bb | +-files | +-ethercat The ethercat directory is from https://gitlab.com/etherlab.org/ethe