build_inf.sh: exclude image recipes from rm_work feature 64/4264/1
authorJackie Huang <jackie.huang@windriver.com>
Mon, 29 Jun 2020 13:19:54 +0000 (21:19 +0800)
committerJackie Huang <jackie.huang@windriver.com>
Mon, 29 Jun 2020 14:09:44 +0000 (22:09 +0800)
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 <jackie.huang@windriver.com>
Change-Id: I2ccd1b86b6cab14283e56291d4af07bc58de09b7

scripts/build_inf.sh

index 2a5437a..acc529c 100755 (executable)
@@ -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