Skip to content
Snippets Groups Projects
Commit efa17dbb authored by Lorenzo Pagliai's avatar Lorenzo Pagliai
Browse files

[EMBEDDED] Insert separate cache for the two distros

* The two distros need to have a separate sstate cache
parent d787ab1e
No related branches found
No related tags found
No related merge requests found
...@@ -3,14 +3,22 @@ PROCESSOR=$1 ...@@ -3,14 +3,22 @@ PROCESSOR=$1
sed -i -e '/DL_DIR ?=/d' conf/local.conf; sed -i -e '/DL_DIR ?=/d' conf/local.conf;
echo 'DL_DIR = \"/var/cache/edgehog_downloads\"' >> conf/local.conf; echo 'DL_DIR = \"/var/cache/edgehog_downloads\"' >> conf/local.conf;
if [[ $PROCESSOR == *imx6* ]]; if [[ $PROCESSOR == *imx6* && "$CI_JOB_NAME" != *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-imx6\"' >> conf/local.conf; then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-imx6\"' >> conf/local.conf;
elif [[ $PROCESSOR == *imx8* ]]; elif [[ $PROCESSOR == *imx8* && "$CI_JOB_NAME" != *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-imx8\"' >> conf/local.conf; then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-imx8\"' >> conf/local.conf;
elif [[ $PROCESSOR == *rk* ]]; elif [[ $PROCESSOR == *rk* && "$CI_JOB_NAME" != *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-rk\"' >> conf/local.conf; then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-rk\"' >> conf/local.conf;
elif [[ $PROCESSOR == *intel* ]]; elif [[ $PROCESSOR == *intel* && "$CI_JOB_NAME" != *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-intel\"' >> conf/local.conf; then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-intel\"' >> conf/local.conf;
elif [[ $PROCESSOR == *imx6* && "$CI_JOB_NAME" == *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-imx6-embedded\"' >> conf/local.conf;
elif [[ $PROCESSOR == *imx8* && "$CI_JOB_NAME" == *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-imx8-embedded\"' >> conf/local.conf;
elif [[ $PROCESSOR == *rk* && "$CI_JOB_NAME" == *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-rk-embedded\"' >> conf/local.conf;
elif [[ $PROCESSOR == *intel* && "$CI_JOB_NAME" == *"embedded"* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-intel-embedded\"' >> conf/local.conf;
fi fi
echo '###############################' echo '###############################'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment