mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07:00
scripts/unpack: apply device specific PKG_PATCH_DIRS
This commit is contained in:
@@ -122,6 +122,7 @@ if [ -d "$SOURCES/$1" -o -d "$PKG_DIR/sources" ]; then
|
||||
for patch_dir in $PKG_PATCH_DIRS; do
|
||||
[ -d $PKG_DIR/patches/$patch_dir ] && PATCH_DIRS_PKG="$PATCH_DIRS_PKG $PKG_DIR/patches/$patch_dir/*.patch"
|
||||
[ -d $PROJECT_DIR/$PROJECT/patches/$PKG_NAME/$patch_dir ] && PATCH_DIRS_PRJ="$PATCH_DIRS_PRJ $PROJECT_DIR/$PROJECT/patches/$PKG_NAME/$patch_dir/*.patch"
|
||||
[ -d $PROJECT_DIR/$PROJECT/devices/$DEVICE/patches/$PKG_NAME/$patch_dir ] && PATCH_DIRS_PRJ="$PATCH_DIRS_PRJ $PROJECT_DIR/$PROJECT/devices/$DEVICE/patches/$PKG_NAME/$patch_dir/*.patch"
|
||||
done
|
||||
fi
|
||||
|
||||
@@ -157,6 +158,8 @@ if [ -d "$SOURCES/$1" -o -d "$PKG_DIR/sources" ]; then
|
||||
else
|
||||
if [[ "$thisdir" =~ ^$PKG_DIR/.* ]]; then
|
||||
PATCH_DESC="(common - $(basename "$thisdir"))"
|
||||
elif [[ "$thisdir" =~ ^$PROJECT_DIR/.*/devices/.* ]]; then
|
||||
PATCH_DESC="(device - $(basename "$thisdir"))"
|
||||
elif [[ "$thisdir" =~ ^$PROJECT_DIR/.* ]]; then
|
||||
PATCH_DESC="(project - $(basename "$thisdir"))"
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user