[yocto] problem adding first layer to yocto

Cal Sullivan california.l.sullivan at intel.com
Mon Oct 2 16:54:21 PDT 2017


Your layer appears to only be adding a new recipe. It won't be built 
unless you tell it to be built, or you build something that depends on 
it, or you add it to the image you're building.
So your options are:
bitbake example
add IMAGE_INSTALL_append = " example" to your local.conf
have another recipe that requires example, and build or add that to your 
image.

---
Cal

On 10/02/2017 04:05 PM, Mark Hieber wrote:
> sorry, fat-fingered send
>
> Anyway, I created this layer. I had it create a default recipe, I 
> looked at all the files, they all seem to be correct. I then ran
>
> source oe-init-build-env
>
> and then edited build/conf/bblayers.conf, it has
>
> BBLAYERS ?= " \
>
>   /yocto/poky/meta \
>
>   /yocto/poky/meta-poky \
>
>   /yocto/poky/meta-yocto-bsp \
>
>   /yocto/poky/meta-mylayer \
>
>   "
>
>
> I then ran "bitbake core-image-minimal" and then ran "runqemu qemux86 
> nographic"
> Inside qemu, I did a 'find / -name "hello*"' and got nothing. Also, 
> when I ran bitbake, it said
>
> #/yocto/poky/build$ bitbake core-image-minimal
> Loading cache: 100% 
> |#############################################################################################################################################################################| 
> Time: 0:00:00
> Loaded 1302 entries from dependency cache.
> NOTE: Resolving any missing task queue dependencies
>
> Build Configuration:
> BB_VERSION        = "1.34.0"
> BUILD_SYS         = "x86_64-linux"
> NATIVELSBSTRING   = "universal"
> TARGET_SYS        = "i586-poky-linux"
> MACHINE           = "qemux86"
> DISTRO            = "poky"
> DISTRO_VERSION    = "2.3.2"
> TUNE_FEATURES     = "m32 i586"
> TARGET_FPU        = ""
> meta
> meta-poky
> meta-yocto-bsp
> meta-mylayer      = "pyro:717303e6fbcbbe181ad9645d762eb5a85d934523"
> Initialising tasks: 100% 
> |########################################################################################################################################################################| 
> Time: 0:00:04
> NOTE: Executing SetScene Tasks
> NOTE: Executing RunQueue Tasks
> NOTE: Tasks Summary: Attempted 2426 tasks of which 2426 didn't need to 
> be rerun and all succeeded.
>
> It seems to me that yocto is NOT picking up my new layer. I am sure 
> that I have missed something, but I read the docs 3 times, and can't 
> find anything I missed.
>
> Thanks for your help,
>
> Mark
>
> On Mon, Oct 2, 2017 at 3:58 PM, Mark Hieber <hieberm at gmail.com 
> <mailto:hieberm at gmail.com>> wrote:
> >
> > Hi, I am just starting out with yocto, and I have an issue. I 
> followed the steps in 
> http://www.yoctoproject.org/docs/2.3.2/mega-manual/mega-manual.html#creating-a-general-layer-using-the-yocto-layer-script,
> > create meta-mylayer (in the /yocto/poky directory),
> >
> > #/yocto/poky tree meta-mylayer/
> >
> > meta-mylayer/
> >
> > ├── conf
> >
> > │   └── layer.conf
> >
> > ├── COPYING.MIT
> >
> > ├── README
> >
> > └── recipes-example
> >
> >     └── example
> >
> >         ├── example-0.1
> >
> >         │   ├── example.patch
> >
> >         │   └── helloworld.c
> >
> >         └── example_0.1.bb <http://example_0.1.bb>
> >
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20171002/0af8e086/attachment.html>


More information about the yocto mailing list