summaryrefslogtreecommitdiffstats
path: root/mod-extra.sh
diff options
context:
space:
mode:
authorJosh Boyer <jwboyer@redhat.com>2012-09-14 12:32:41 -0400
committerJosh Boyer <jwboyer@redhat.com>2012-09-25 13:22:00 -0400
commit7e6e483520994df2dfc131a0d87305da663e61c5 (patch)
treeb05a7c5f0a07ea4caf7ce4cee5ec7b216ca1fa99 /mod-extra.sh
parent0b4338630ca4d4304f2a2f40ee435f1c4aad85a4 (diff)
downloadkernel-7e6e483520994df2dfc131a0d87305da663e61c5.tar.gz
kernel-7e6e483520994df2dfc131a0d87305da663e61c5.tar.xz
kernel-7e6e483520994df2dfc131a0d87305da663e61c5.zip
Prep mod-extra.sh for signed modules
Diffstat (limited to 'mod-extra.sh')
-rwxr-xr-xmod-extra.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/mod-extra.sh b/mod-extra.sh
index 115950b16..d121bd0b1 100755
--- a/mod-extra.sh
+++ b/mod-extra.sh
@@ -61,6 +61,20 @@ do
mv $mod $newpath
done
+popd
+
+# If we're signing modules, we can't leave the .mod files for the .ko files
+# we've moved in .tmp_versions/. Remove them so the Kbuild 'modules_sign'
+# target doesn't try to sign a non-existent file. This is kinda ugly, but
+# so is modules-extra.
+
+for mod in `cat ${Dir}/dep2.list`
+do
+ modfile=`basename $mod | sed -e 's/.ko/.mod/'`
+ rm .tmp_versions/$modfile
+done
+
+pushd $Dir
rm modnames dep.list dep2.list req.list req2.list
rm mod-extra.list mod-extra2.list mod-extra3.list
popd