Mailinglist Archive: opensuse-kernel (30 mails)
| < Previous | Next > |
[opensuse-kernel] run_oldconfig.sh
- From: Jeff Mahoney <jeffm@xxxxxxxx>
- Date: Sun, 04 Oct 2009 10:56:43 -0400
- Message-id: <4AC8B7AB.8040208@xxxxxxxx>
Hi Michal -
Just a quick heads up that something changed with kbuild for 2.6.32-rc2
and it needs a 'make mrproper' after switching arches. Here's
the change I made to make it work.
-Jeff
diff --git a/scripts/run_oldconfig.sh b/scripts/run_oldconfig.sh
index 9b6f692..bc0a643 100755
--- a/scripts/run_oldconfig.sh
+++ b/scripts/run_oldconfig.sh
@@ -219,6 +219,8 @@ ${prefix}scripts/guards $EXTRA_SYMBOLS <
${prefix}series.conf \
EXTRA_SYMBOLS="$(echo $EXTRA_SYMBOLS | sed -e 's# *[Rr][Tt] *##g')"
+last_arch=
+
for config in $config_files; do
cpu_arch=${config%/*}
flavor=${config#*/}
@@ -244,6 +246,8 @@ for config in $config_files; do
MAKE_ARGS="ARCH=$kbuild_arch"
config="${prefix}config/$config"
+ [ "$last_arch" != "$kbuild_arch" ] && make mrproper
+
cat $config \
| bash $config_subst CONFIG_LOCALVERSION \"-${config##*/}\" \
| bash $config_subst CONFIG_SUSE_KERNEL y \
@@ -260,4 +264,9 @@ for config in $config_files; do
if ! diff -U0 $config .config; then
sed '/^# Linux kernel version:/d' < .config > $config
fi
+ last_arch=$kbuild_arch
done
+
+# This is so the caller doesn't have to do it themselves afterwards since
+# it's likely they're not on s/390.
+make mrproper
--
Jeff Mahoney
SUSE Labs
--
To unsubscribe, e-mail: opensuse-kernel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-kernel+help@xxxxxxxxxxxx
Just a quick heads up that something changed with kbuild for 2.6.32-rc2
and it needs a 'make mrproper' after switching arches. Here's
the change I made to make it work.
-Jeff
diff --git a/scripts/run_oldconfig.sh b/scripts/run_oldconfig.sh
index 9b6f692..bc0a643 100755
--- a/scripts/run_oldconfig.sh
+++ b/scripts/run_oldconfig.sh
@@ -219,6 +219,8 @@ ${prefix}scripts/guards $EXTRA_SYMBOLS <
${prefix}series.conf \
EXTRA_SYMBOLS="$(echo $EXTRA_SYMBOLS | sed -e 's# *[Rr][Tt] *##g')"
+last_arch=
+
for config in $config_files; do
cpu_arch=${config%/*}
flavor=${config#*/}
@@ -244,6 +246,8 @@ for config in $config_files; do
MAKE_ARGS="ARCH=$kbuild_arch"
config="${prefix}config/$config"
+ [ "$last_arch" != "$kbuild_arch" ] && make mrproper
+
cat $config \
| bash $config_subst CONFIG_LOCALVERSION \"-${config##*/}\" \
| bash $config_subst CONFIG_SUSE_KERNEL y \
@@ -260,4 +264,9 @@ for config in $config_files; do
if ! diff -U0 $config .config; then
sed '/^# Linux kernel version:/d' < .config > $config
fi
+ last_arch=$kbuild_arch
done
+
+# This is so the caller doesn't have to do it themselves afterwards since
+# it's likely they're not on s/390.
+make mrproper
--
Jeff Mahoney
SUSE Labs
--
To unsubscribe, e-mail: opensuse-kernel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-kernel+help@xxxxxxxxxxxx
| < Previous | Next > |