scripts/create_addon: create addons for projects where devices are used (like Amlogic instead of S905)

This commit is contained in:
Peter Vicman 2018-02-20 08:36:34 +01:00
parent ea2dac174c
commit d0eefca7f0

View File

@ -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