From c46690965c062f4b5fc954583976db6b1d316cba Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Sun, 31 May 2009 23:34:46 +0200 Subject: [PATCH] allow specifying platform specific patches as well as architecture specific ones --- scripts/unpack | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/unpack b/scripts/unpack index 0ccf005883..d9b6de4b1a 100755 --- a/scripts/unpack +++ b/scripts/unpack @@ -50,8 +50,8 @@ fi for i in $PKG_DIR/patches/*.diff*; do if [ -f $i ]; then PATCH=`basename $i` - PATCH_ARCH=`echo $PATCH | sed 's/.*\.\(.*\)$/\1/'` - if [ "$PATCH_ARCH" != diff -a "$PATCH_ARCH" != "$TARGET_ARCH" ]; then + PT=`echo $PATCH | sed 's/.*\.\(.*\)$/\1/'` + if [ "$PT" != diff -a "$PT" != "$TARGET_ARCH" -a "$PT" != "$TARGET_PLATFORM" ]; then echo "## Skipping patch: $i" continue; else