To add new application component in Flexbuild, follow the steps below:
1. Add new <component> to apps_repo_list and set CONFIG_BUILD_<component>=y in configs/build_xx.cfg.
2. Configure url/branch/tag/commit info for new <component_name>in configs/build_xx.cfg, default remote. Component git repository is specified by GIT_REPOSITORY_URL by default if <component>_url is not specified, user also can directly create the new component git repository in packages/apps directory.
3. Add build support of new component in packages/apps/Makefile..
4. Run flex-builder -c <component-name> -a <arch>' to build the new component.
5. Run flex-builder -i merge-component -a <arch> to merge the new component package into target distro userland.
Please add <component-name> in variable IMAGE_INSTALL_append in configs/yocto/local_arm64_tiny.conf.
IMAGE_INSTALL_append = " sudo file parted curl openssh-scp openssh-ssh openssh-sshd \
e2fsprogs dosfstools bash coreutils diffutils util-linux \
net-tools sysvinit libtool libstdc++ libstdc++-dev libxml2 \
libnl-genl <component-name>"
Then generate QSPI firmware image with the following commands.
$ flex-builder -i clean-rfs -r yocto:tiny -a arm64
$ flex-builder -i mkrfs -r yocto:tiny -a arm64
$ flex-builder -i mkfw -m ls1046ardb -b qspi