Add a method to re-use meta data from stx repo 62/8162/1
authorJackie Huang <jackie.huang@windriver.com>
Fri, 4 Jun 2021 07:49:39 +0000 (15:49 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Thu, 5 May 2022 14:33:39 +0000 (22:33 +0800)
commitc29ccf4387a39def332fa26014f019039eaba96e
tree8ea808ab8a4cfb5263ef3e689f7c9dde2a997890
parent551deff875a8af3f863c8bf963ca74ee2e27281f
Add a method to re-use meta data from stx repo

StarlingX has many repos to maintain meta data (patches and config files)
for packages, previously we added a local copy of those files as bitbake's
metadata for each recipe which may cause maintenance issue.

So add a method to avoid that, which includes:

* Add new recipes stx-${STX_REPO}-source for thoes stx git repo and put
  them into the work-shared directory so they can be used by other recipes
  that need the stx  meta data, so it will reduce downloads and increase
  re-use.

* Add stx-source.bbclass for easily creating the work-shared recipes

* Add stx-metadata.bbclass for those recipes that need the stx meta data,
  it will add dependency on the stx-${STX_REPO}-source and redefine the
  SRC_URI before do_patch, so it can find the patches in stx repo in
  work-shard and do the patch, and other meta data like config files can
  be used in do_install, then the local copy of those meta data can be
  removed, and for the future upgrade, we don't need to manually check
  and update those meta data any more.

Issue-ID: INF-215

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: Ieb27b4886e3cd9ccb4a9cbf63085bf28dda29549
meta-starlingx/meta-stx-distro/classes/stx-metadata.bbclass [new file with mode: 0644]
meta-starlingx/meta-stx-distro/classes/stx-source.bbclass [new file with mode: 0644]
meta-starlingx/meta-stx-flock/stx-integ/stx-integ-source_git.bb [new file with mode: 0644]
meta-starlingx/meta-stx-flock/stx-upstream/stx-upstream-source_git.bb [new file with mode: 0644]