mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-10 11:35:00 -05:00
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>
This commit is contained in:
parent
9bfd6ff275
commit
bf79c02440
@ -1654,6 +1654,13 @@ tidy_install() {
|
|||||||
strip_flags="$STRIP_SHARED";;
|
strip_flags="$STRIP_SHARED";;
|
||||||
*application/x-archive*) # Libraries (.a)
|
*application/x-archive*) # Libraries (.a)
|
||||||
strip_flags="$STRIP_STATIC";;
|
strip_flags="$STRIP_STATIC";;
|
||||||
|
*application/x-object*)
|
||||||
|
case "$binary" in
|
||||||
|
*.ko) # Kernel module
|
||||||
|
strip_flags="$STRIP_SHARED";;
|
||||||
|
*)
|
||||||
|
continue;;
|
||||||
|
esac;;
|
||||||
*application/x-executable*) # Binaries
|
*application/x-executable*) # Binaries
|
||||||
strip_flags="$STRIP_BINARIES";;
|
strip_flags="$STRIP_BINARIES";;
|
||||||
*)
|
*)
|
||||||
|
Loading…
Reference in New Issue
Block a user