summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven Noonan <steven@uplinklabs.net>2014-02-09 15:26:26 -0800
committerAllan McRae <allan@archlinux.org>2014-03-03 11:25:54 +1000
commitbf79c0244065315edfb9abd613fa88d4cf1557bd (patch)
tree2c62f5e2485fafa92b8f1046af6734ddbafd82ee
parent9bfd6ff2756f0f2f164d28886cfe991010e9ae41 (diff)
downloadpacman-bf79c0244065315edfb9abd613fa88d4cf1557bd.tar.xz
makepkg: implement support for stripping kernel modules
I noticed when I built a kernel package with options 'strip' and 'debug' that the debug package was missing the debug information for the kernel modules. This patch adds kernel modules to the targets for 'strip' and is compatible with the split-out debug information packages. v2: Correct logic error -- did a 'continue' after the 2nd-level case statement instead of in the default case. v3: Oops, forgot to terminate outer case. Ran this version through the test suite and all tests passed. Signed-off-by: Steven Noonan <steven@uplinklabs.net> Signed-off-by: Allan McRae <allan@archlinux.org>
-rw-r--r--scripts/makepkg.sh.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index b69c0710..70d501c9 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1654,6 +1654,13 @@ tidy_install() {
strip_flags="$STRIP_SHARED";;
*application/x-archive*) # Libraries (.a)
strip_flags="$STRIP_STATIC";;
+ *application/x-object*)
+ case "$binary" in
+ *.ko) # Kernel module
+ strip_flags="$STRIP_SHARED";;
+ *)
+ continue;;
+ esac;;
*application/x-executable*) # Binaries
strip_flags="$STRIP_BINARIES";;
*)