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

[SSTATE] Set different sstate for each CPU arch

* Each CPU processor is suggested to have a different sstate-cache folder
* The 'downloads' folder remains unique for all edgehog projects
parent aa71b1e7
No related branches found
No related tags found
No related merge requests found
......@@ -214,9 +214,21 @@ retrigger:
repo sync -j$(nproc) --fetch-submodules;
. ./seco-setup.sh -d ${DEFCONFIG_FILE};
. ./seco-setup.sh -c;
echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate\"' >> conf/local.conf;
sed -i -e '/DL_DIR ?=/d' conf/local.conf;
echo 'DL_DIR = \"/var/cache/edgehog_downloads\"' >> conf/local.conf;
if [[ $PROCESSOR == *imx6* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-imx6\"' >> conf/local.conf;
elif [[ $PROCESSOR == *imx8* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-imx8\"' >> conf/local.conf;
elif [[ $PROCESSOR == *rk* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-rk\"' >> conf/local.conf;
elif [[ $PROCESSOR == *intel* ]];
then echo 'SSTATE_DIR = \"/var/cache/edgehog_sstate-intel\"' >> conf/local.conf;
fi
echo '###############################'
echo '#### Displaying local.conf ####'
echo '###############################'
cat conf/local.conf
time bitbake ${RECIPE_NAME};
if [[ "$CI_JOB_NAME" != *"embedded"* ]]; then time bitbake seco-bundle-edgehog; fi;
"
......
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