From d65ac8b213a59fa82a7348615cdb472202171a3b Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Tue, 13 Jul 2010 04:21:07 +0200 Subject: [PATCH] scripts/build: fix support for disable build of packages not supported by given arch/platform Signed-off-by: Stephan Raue --- scripts/build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build b/scripts/build index 748f49a028..e169c796b5 100755 --- a/scripts/build +++ b/scripts/build @@ -10,10 +10,12 @@ if [ -z "$1" ]; then fi if [ -f $PKG_DIR/arch ]; then + grep -q "$TARGET_ARCH" "$PKG_DIR/arch" || exit 0 grep -q "\-$TARGET_ARCH" "$PKG_DIR/arch" && exit 0 fi if [ -f $PKG_DIR/platform ]; then + grep -q "$TARGET_PLATFORM" "$PKG_DIR/platform" || exit 0 grep -q "\-$TARGET_PLATFORM" "$PKG_DIR/platform" && exit 0 fi