mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
scripts/unpack: apply device specific PKG_PATCH_DIRS
This commit is contained in:
parent
03caac8396
commit
82bc756eac
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user