Creating a Custom Image

Creating your own custom image is simple and at minimum consists of “requiring”, adding any packages you want to the IMAGE_INSTALL variable and setting IMAGE_BASENAME to a custom name.

Example custom image recipe that adds the asterisk package:

require recipes/images/

IMAGE_INSTALL += "asterisk"

export IMAGE_BASENAME = "asterisk-image"

Save the example above to user-layer/recipes/images/

Then run bitbake asterisk-image. This will download the asterisk software source, compile it, and add it into your rootfs.

Once the build completes, the rootfs will be located at (assuming MACHINE=”mtcdp”):

Flash the image using the instructions on the NAND Flash Programming page.

For more image examples, look at the various CoreCDP image recipes located at: multitech/recipes/images