Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Solution Overview

A BitBake class (factory_apps_installerinstall-factoryapps.bbclass) that reads a JSON manifest and installs factory applications into the rootfs during image creation. The solution leverages Yocto's native bb.fetch2 fetcher for robust download handling.

...

draw.io Diagram
bordertrue
diagramNamearch_1
simpleViewerfalse
width
linksauto
tbstyletop
lboxtrue
diagramWidth241
height391416
revision34

JSON File Format


No Format
[
    {
        "packagename": "string",    // Required: Final filename in rootfs
        "srcuri": "string",         // Required: Source URL or file path
        "sha256sum": "string"       // Optional: SHA256 hash for verification
    }
]

...

No Format
Set these in image recipe or local.conf:
# Path to JSON manifest
FACTORY_APPS_JSON_FILE = "${TOPDIR}/../factoryapps.json"

# Installation path in rootfs (without leading /) set in https://github.com/rdkcentral/rdke-common-config/blob/develop/conf/rdke-rdkm-config.inc
FACTORY_APPS_PATH ??= "/usretc/sharerdk/factoryfactoryapps"

Usage in image recipe

# In image recipe (e.g., rdk-fullstack-image.bb)
inherit factory_apps_installer

...