2020-09-12 05:45:06 -04:00
|
|
|
From cff73a8dca7069d9e558c65f0b76297feab09719 Mon Sep 17 00:00:00 2001
|
2020-03-22 06:56:43 -04:00
|
|
|
From: Zhipeng Xie <xiezhipeng1@huawei.com>
|
|
|
|
|
Date: Thu, 12 Mar 2020 07:37:00 -0400
|
2020-09-12 05:45:06 -04:00
|
|
|
Subject: [PATCH 21/23] kpatch-build: don't copy .config for out of tree module
|
|
|
|
|
|
|
|
|
|
.config only need to be restored when the build patch for kernel
|
2020-03-22 06:56:43 -04:00
|
|
|
|
|
|
|
|
Signed-off-by: Zhipeng Xie <xiezhipeng1@huawei.com>
|
|
|
|
|
---
|
|
|
|
|
kpatch-build/kpatch-build | 2 +-
|
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
|
|
|
|
|
|
diff --git a/kpatch-build/kpatch-build b/kpatch-build/kpatch-build
|
|
|
|
|
index ad7ab71..fd34812 100755
|
|
|
|
|
--- a/kpatch-build/kpatch-build
|
|
|
|
|
+++ b/kpatch-build/kpatch-build
|
|
|
|
|
@@ -828,7 +828,7 @@ fi
|
|
|
|
|
|
|
|
|
|
[[ -z "$CONFIGFILE" ]] && CONFIGFILE="$SRCDIR"/.config
|
|
|
|
|
[[ ! -e "$CONFIGFILE" ]] && die "can't find config file"
|
|
|
|
|
-[[ ! "$CONFIGFILE" -ef "$SRCDIR"/.config ]] && cp -f "$CONFIGFILE" "$SRCDIR/.config"
|
|
|
|
|
+[[ -z "$OOT_MODULE" ]] && [[ ! "$CONFIGFILE" -ef "$SRCDIR"/.config ]] && cp -f "$CONFIGFILE" "$SRCDIR/.config"
|
|
|
|
|
|
|
|
|
|
# Build variables - Set some defaults, then adjust features
|
|
|
|
|
# according to .config and kernel version
|
|
|
|
|
--
|
|
|
|
|
2.18.1
|
2020-09-12 05:45:06 -04:00
|
|
|
|