mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-24 11:16:51 +00:00
create_addon: two improvments
* allow to build addons with sourced `PKG_IS_ADDON` variable * change state of "not supported" messages from `ERROR` to `SKIP`
This commit is contained in:
parent
ec66cab67c
commit
0c82bdadab
@ -87,7 +87,7 @@ function find_addons() {
|
||||
if [ $_count -eq 0 ]; then
|
||||
# handle embedded addons here. Should only build when they are explictly specified in the addon list
|
||||
( . ./config/options "$1" &>/dev/null
|
||||
[ "$PKG_IS_ADDON" != "embedded" ] && exit 1
|
||||
[ "$PKG_IS_ADDON" != "embedded" -a "$PKG_IS_ADDON" != "yes" ] && exit 1
|
||||
echo $PKG_NAME
|
||||
)
|
||||
|
||||
@ -164,12 +164,12 @@ pack_addon() {
|
||||
}
|
||||
|
||||
not_supported_arch() {
|
||||
printf "%${BUILD_INDENT}c $(print_color CLR_WARNING "*** ERROR: $PKG_ADDON_ID: '${DEVICE:-$PROJECT}' not supported ***")\n" ' '>&$SILENT_OUT
|
||||
printf "%${BUILD_INDENT}c $(print_color CLR_WARNING "*** SKIP: $PKG_ADDON_ID: '${DEVICE:-$PROJECT}' not supported ***")\n" ' '>&$SILENT_OUT
|
||||
exit 0
|
||||
}
|
||||
|
||||
not_supported_device() {
|
||||
printf "%${BUILD_INDENT}c $(print_color CLR_WARNING "*** ERROR: $PKG_ADDON_ID: '$TARGET_ARCH' not supported ***")\n" ' '>&$SILENT_OUT
|
||||
printf "%${BUILD_INDENT}c $(print_color CLR_WARNING "*** SKIP: $PKG_ADDON_ID: '$TARGET_ARCH' not supported ***")\n" ' '>&$SILENT_OUT
|
||||
exit 0
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user