From: Jackie Huang Date: Mon, 29 Jun 2020 13:19:54 +0000 (+0800) Subject: build_inf.sh: exclude image recipes from rm_work feature X-Git-Tag: bronze~4 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=e06b22a11d830da0192974294277d9df6dd5a663;p=pti%2Frtp.git build_inf.sh: exclude image recipes from rm_work feature The anaconda image needs some files in the work dir of the target build image, if the rm_work feature is enabled, these files will be removed and the anaconda image will be incorrect, so exclude these image recipes from rm_work features to ensure the required files will not be removed. Issue-ID: INF-178 Signed-off-by: Jackie Huang Change-Id: I2ccd1b86b6cab14283e56291d4af07bc58de09b7 --- diff --git a/scripts/build_inf.sh b/scripts/build_inf.sh index 8a9a6d5..8074eaa 100755 --- a/scripts/build_inf.sh +++ b/scripts/build_inf.sh @@ -382,6 +382,7 @@ add_configs_stx_build () { if [ "${RM_WORK}" == "Yes" ]; then echo "INHERIT += 'rm_work'" | tee -a conf/local.conf + echo "RM_WORK_EXCLUDE += '${IMG_STX}'" | tee -a conf/local.conf fi @@ -462,6 +463,7 @@ add_configs_anaconda_build () { if [ "${RM_WORK}" == "Yes" ]; then echo "INHERIT += 'rm_work'" | tee -a conf/local.conf + echo "RM_WORK_EXCLUDE += '${IMG_ANACONDA}'" | tee -a conf/local.conf fi if [ "${EXTRA_CONF}" != "" ] && [ -f "${EXTRA_CONF}" ]; then