Merge pull request #2202 from MilhouseVH/le90_fix_create_addon

scripts/create_addon: simplify PROJECT selection, support DEVICE
This commit is contained in:
Lukas Rusak 2017-11-12 13:12:17 -08:00 committed by GitHub
commit 704a6d3cd3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View File

@ -31,7 +31,7 @@ PKG_AUTORECONF="no"
PKG_IS_ADDON="yes"
PKG_ADDON_NAME="Slice"
PKG_ADDON_PROJECTS="RPi"
PKG_ADDON_PROJECTS="Slice Slice3"
PKG_ADDON_TYPE="xbmc.service"
make_target() {

View File

@ -31,13 +31,8 @@ if [ -n "$PKG_ARCH" -a ! "$PKG_ARCH" = "any" ]; then
fi
if [ -n "$PKG_ADDON_PROJECTS" -a ! "$PKG_ADDON_PROJECTS" = "any" ]; then
for _PROJECT in $PKG_ADDON_PROJECTS ; do
if [ "$_PROJECT" = "$PROJECT" ] ; then
PROJECT_SUPPORTED="yes"
fi
done
if [ ! "$PROJECT_SUPPORTED" = "yes" ] ; then
echo "*** ERROR: $PKG_ADDON_ID: '$PROJECT' not supported ***"
if ! listcontains "${PKG_ADDON_PROJECTS}" "${DEVICE:-${PROJECT}}"; then
echo "*** ERROR: $PKG_ADDON_ID: '${DEVICE:-${PROJECT}}' not supported ***"
exit 0
fi
fi