Creating the Yocto/OE environment

Now that we have developed the main application, what remains for us is to integrate it with our Yocto RPI environment.

Modifying the image

The first step consists of integrating the nodejs package (located at meta-openembedded/meta-oe/recipes-devtools/nodejs) with the Raspberry Pi environment. For this, we have to add the following line to raspberry-pack-image:

# Base this image on core-image-minimal 
include recipes-core/images/ 
DESCRIPTION = "Image for raspberry-pi" 
IMAGE_FEATURES += "ssh-server-dropbear splash" 
# Include modules in rootfs 
    kernel-modules \ 
    gpio-packt    \ 
    i2c-tools    \ 
    spitools    \ 
    nunchuck    \ 
    v4l-utils    \ 
    nodejs    \     

We have now integrated nodejs with our Poky distro. ...

Get Yocto for Raspberry Pi now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.