mirror of
https://github.com/libretro/Lakka-LibreELEC.git
synced 2024-11-24 08:49:58 +00:00
scripts/unpack: add general support for project based patches for every package, this patches must be put as *.patch files in 'projects/$PROJECT/patches/$PKG_NAME/'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
parent
0ef84cec42
commit
3fbcaec5d5
@ -91,6 +91,20 @@ for i in $PKG_DIR/patches/$PKG_NAME-$PKG_VERSION*.patch ; do
|
||||
fi
|
||||
done
|
||||
|
||||
for i in $PROJECT_DIR/$PROJECT/patches/$PKG_NAME/*.patch ; do
|
||||
if [ -f "$i" ]; then
|
||||
PATCH=`basename $i`
|
||||
PT=`echo $PATCH | sed 's/.*\.\(.*\)$/\1/'`
|
||||
if [ "$PT" != "patch" -a "$PT" != "$TARGET_ARCH" ]; then
|
||||
printf "%${BUILD_INDENT}c SKIP PROJECT PATCH: $i\n" ' '>&$SILENT_OUT
|
||||
continue;
|
||||
else
|
||||
printf "%${BUILD_INDENT}c APPLY PROJECT PATCH: $i\n" ' '>&$SILENT_OUT
|
||||
cat $i | patch -d `echo "$PKG_BUILD" | cut -f1 -d\ ` -p1 >&$VERBOSE_OUT
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
[ -f "$PKG_DIR/unpack" ] && $PKG_DIR/unpack $@ >&$VERBOSE_OUT
|
||||
|
||||
for config in `find $BUILD/$1* -name config.guess | sed 's/config.guess//'`; do
|
||||
|
Loading…
Reference in New Issue
Block a user