...
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 border true diagramName arch_1 simpleViewer false width links auto tbstyle top lbox true diagramWidth 241 height 391416 revision 34
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
}
] |
...
BitBake Class Implementation
https://github.com/rdkcentral/meta-rdk-auxiliary/blob/topic/RDKMVE-1639develop/classes/install-factoryapps.bbclass
Required Configurations
| 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 |
...