From: Jackie Huang Date: Fri, 4 Jun 2021 07:49:39 +0000 (+0800) Subject: Add a method to re-use meta data from stx repo X-Git-Tag: f-release~108 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=c29ccf4387a39def332fa26014f019039eaba96e;hp=c29ccf4387a39def332fa26014f019039eaba96e;p=pti%2Frtp.git 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 Change-Id: Ieb27b4886e3cd9ccb4a9cbf63085bf28dda29549 ---