# Add image recipes

Provides information on how to add image recipes and build using BitBake command.

1. To add an image recipe, change the directory to
`<workspace>/layers/meta-qcom-distro/recipes-products/images`.
2. Create a file, for example `test-image.bb`, and add the following
content:

SUMMARY = "Test image"
        
        LICENSE = "BSD-3-Clause-Clear"
        
        IMAGE_FEATURES += "splash \
            tools-debug \
            debug-tweaks \
            enable-adbd \
        "
        
        inherit core-image features_check extrausers image-adbd image-qcom-deploy image-efi
        
        REQUIRED_DISTRO_FEATURES = "pam systemd"
        
        CORE_IMAGE_BASE_INSTALL += " \
            kernel-modules \
            packagegroup-filesystem-utils \
        "
        
        CORE_IMAGE_EXTRA_INSTALL += "overlayfs-qcom-paths"
        Copy to clipboard
3. Add the `test-image.bb` file to the `meta-qcom/ci/qcom-distro-prop-image.yml` directory.
4. Source the environment:

kas shell meta-qcom/ci/qcs6490-rb3gen2-core-kit.yml:meta-qcom/ci/qcom-distro-prop-image.yml:meta-qcom/ci/linux-qcom-6.18.yml
        Copy to clipboard
5. Build using the BitBake command:

bitbake test-image
        Copy to clipboard

    The generated images are as follows:

build> $ ls tmp/deploy/images/qcs6490-rb3gen2-core-kit/test-image.qcomflash/
        aop.mbn     gpt_backup0.bin  gpt_backup5.bin  gpt_main4.bin  kernel-modules.tgz  patch2.xml             prog_firehose_lite.elf  rawprogram2.xml  system.img    xbl_config.elf
        cpucp.elf   gpt_backup1.bin  gpt_main0.bin    gpt_main5.bin  logfs_ufs_8mb.bin   patch3.xml             qdl                     rawprogram3.xml  tz.mbn        xbl.elf
        devcfg.mbn  gpt_backup2.bin  gpt_main1.bin    hypvm.mbn      multi_image.mbn     patch4.xml             qupv3fw.elf             rawprogram4.xml  uefi.elf      XblRamdump.elf
        dtb.bin     gpt_backup3.bin  gpt_main2.bin    Image          patch0.xml          patch5.xml             rawprogram0.xml         rawprogram5.xml  uefi_sec.mbn  zeros_5sectors.bin
        efi.bin     gpt_backup4.bin  gpt_main3.bin    imagefv.elf    patch1.xml          prog_firehose_ddr.elf  rawprogram1.xml         shrm.elf         vmlinux
        Copy to clipboard

Last Published: Mar 02, 2026

[Previous Topic
Add custom distribution configurations](https://docs.qualcomm.com/bundle/publicresource/80-80020-27/topics/add_custom_distro_configurations.md) [Next Topic
Modify partition layout](https://docs.qualcomm.com/bundle/publicresource/80-80020-27/topics/modifying_partition_layout.md)