From 151636c4040c87b3e09c7ab95c7a73a0ac9573c0 Mon Sep 17 00:00:00 2001 From: Gonzalo Ruiz Date: Fri, 4 Aug 2023 17:33:34 +0200 Subject: [PATCH] sdk: build.sh add DY_MANIFEST parameter DY_MANIFEST parameter allows to do a 'repo init' with a specific manifest file contained in the manifest repository. For example, 'manufacturing.xml' for building manufacturing projects. By default no manifest file parameter is provided, so the 'repo init' command will initialize based on the 'default.xml' manifest file. Signed-off-by: Gonzalo Ruiz (cherry picked from commit c38b4fc4f2c565ab9db20c082016401341e78ce5) --- sdk/build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/build.sh b/sdk/build.sh index 49abd244c..cb590d646 100755 --- a/sdk/build.sh +++ b/sdk/build.sh @@ -25,6 +25,7 @@ # DY_CVE_REPORT: Generate Vigiles CVE report # DY_VIGILES_DIR: Path to Vigiles configuration files on the build server # DY_USE_CVE_LAYER: Apply meta-digi-security layer with CVE fixes +# DY_MANIFEST: Use specific manifest file (none by default) # #=============================================================================== @@ -218,7 +219,7 @@ if pushd "${YOCTO_INST_DIR}"; then fi fi # shellcheck disable=SC2086 - yes "" 2>/dev/null | ${REPO} init --depth=1 --no-repo-verify -u ${MANIFEST_URL} ${repo_revision} + yes "" 2>/dev/null | ${REPO} init --depth=1 --no-repo-verify -u ${MANIFEST_URL} ${repo_revision} ${DY_MANIFEST:+-m ${DY_MANIFEST}} ${REPO} --no-pager forall -j4 -p -c 'git clean -fdx' # shellcheck disable=SC2016 ${REPO} --no-pager forall -j4 -p -c 'git remote prune $(git remote)' || true