From d0eefca7f0bb74054b9f00e46e5820c1a89e7a9a Mon Sep 17 00:00:00 2001 From: Peter Vicman Date: Tue, 20 Feb 2018 08:36:34 +0100 Subject: [PATCH] scripts/create_addon: create addons for projects where devices are used (like Amlogic instead of S905) --- scripts/create_addon | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/create_addon b/scripts/create_addon index 428093409a..6e5e500051 100755 --- a/scripts/create_addon +++ b/scripts/create_addon @@ -37,7 +37,12 @@ not_supported() { if [ -n "$PKG_ADDON_PROJECTS" ]; then listcontains "$PKG_ADDON_PROJECTS" "!${DEVICE:-$PROJECT}" && not_supported - listcontains "$PKG_ADDON_PROJECTS" "${DEVICE:-$PROJECT}" || listcontains "$PKG_ADDON_PROJECTS" "any" || not_supported + + if ! listcontains "$PKG_ADDON_PROJECTS" "${DEVICE:-$PROJECT}" && + ! listcontains "$PKG_ADDON_PROJECTS" "${PROJECT}" && + ! listcontains "$PKG_ADDON_PROJECTS" "any"; then + not_supported + fi fi $SCRIPTS/checkdeps