From 22498e05ec7df0923be0b7447ebc7176b4aa808a Mon Sep 17 00:00:00 2001 From: Adam Green Date: Thu, 4 Jan 2018 19:07:56 +0000 Subject: [PATCH] config/functions: cache device folder packages first this is needed for devices that require specific packages for example u-boot, we can keep changes within the device folder rather than adding multiple definitions to the project package --- config/functions | 7 +++++++ 1 file changed, 7 insertions(+) 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"