Home Home > GIT Browse > packaging
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2019-07-27 17:44:57 +0200
committerMichal Suchanek <msuchanek@suse.de>2019-07-27 17:45:38 +0200
commit93c608027867116b306a57e19636efbb802ab95a (patch)
treea13bfa7a4b2110e706c405e265c754e4cd2e090b
parentcbd56d52137a667bc8608ca4a2bb46261fa1ce56 (diff)
scripts/run_oldconfig.sh: Fix native config check in kbuild.
-rwxr-xr-xscripts/run_oldconfig.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/run_oldconfig.sh b/scripts/run_oldconfig.sh
index 3411750666..c3c0651ab8 100755
--- a/scripts/run_oldconfig.sh
+++ b/scripts/run_oldconfig.sh
@@ -434,11 +434,12 @@ for config in $config_files; do
cross_arch="${config%%/*}"
;;
esac
+ [ "$cross_arch" = "$(uname -m)" ] && cross_arch=
cross_compile="${CROSS_COMPILE-${cross_arch}-suse-linux-${cross_extra}}"
- if [ -n "$cross_compile" -a -x /usr/bin/${cross_compile}gcc ]; then
+ if [ -n "$cross_arch" -a -x /usr/bin/${cross_compile}gcc ]; then
MAKE_ARGS="$MAKE_ARGS CROSS_COMPILE=$cross_compile"
fi
- if [ -n "$CC" -a -z "$cross_compile" ]; then
+ if [ -n "$CC" -a -z "$cross_arch" ]; then
MAKE_ARGS="$MAKE_ARGS CC=$CC"
fi
if $silent; then