From 58c1631e5b31e28895ddf32fc0bc7625d40829bf Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Thu, 7 Feb 2008 04:11:27 +0200 Subject: [PATCH] Fixed Build-Pkg to only use *.patch.cross patches at cross-compile stage --- scripts/Build-Pkg | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/Build-Pkg b/scripts/Build-Pkg index 568e6f0..25aac75 100755 --- a/scripts/Build-Pkg +++ b/scripts/Build-Pkg @@ -405,14 +405,14 @@ targetdir="$base/target/$target" detect_patchfiles -if [ "$toolsdir" = "tools.cross" ]; then - if atstage toolchain; then - var_append patchfiles ' ' "`ls $confdir/*.patch.toolchain{,.$arch} \ - 2>/dev/null | tr '\n' ' '`" - fi +if atstage toolchain; then + var_append patchfiles ' ' "`ls $confdir/*.patch.toolchain{,.$arch} \ + 2>/dev/null | tr '\n' ' '`" +fi +if atstage cross; then var_append patchfiles ' ' "`ls $confdir/*.patch.cross{,.$arch} \ - 2>/dev/null | tr '\n' ' '`" + 2>/dev/null | tr '\n' ' '`" fi set_confopt