diff --git a/config/functions b/config/functions index d2a003d9c5..d9133ddd40 100644 --- a/config/functions +++ b/config/functions @@ -523,6 +523,13 @@ init_package_cache() { _CACHE_PACKAGE_LOCAL="" _CACHE_PACKAGE_GLOBAL="" + # cache project/device folder for a package + if [ -n $DEVICE ]; then + for DIR in $(find $ROOT/projects/$PROJECT/devices/$DEVICE/packages -type d 2>/dev/null); do + [ -r "$DIR/package.mk" ] && _CACHE_PACKAGE_LOCAL+="${DIR}${_ANCHOR}\n" + done + fi + # cache project folder for a package for DIR in $(find $ROOT/projects/$PROJECT/packages -type d 2>/dev/null); do [ -r "$DIR/package.mk" ] && _CACHE_PACKAGE_LOCAL+="${DIR}${_ANCHOR}\n"