Don't strip Linux modules in the SystemTap variant.

svn path=/nixpkgs/trunk/; revision=21619
This commit is contained in:
Ludovic Courtès 2010-05-05 19:48:52 +00:00
parent 588be9d6db
commit 96f2d289bc
2 changed files with 9 additions and 6 deletions

View File

@ -76,12 +76,14 @@ installPhase() {
$makeFlags "${makeFlagsArray[@]}" \
$installFlags "${installFlagsArray[@]}"
# Strip the kernel modules.
echo "Stripping kernel modules..."
if [ -z "$crossConfig" ]; then
find $out -name "*.ko" -print0 | xargs -0 strip -S
else
find $out -name "*.ko" -print0 | xargs -0 $crossConfig-strip -S
if test -z "$dontStrip"; then
# Strip the kernel modules.
echo "Stripping kernel modules..."
if [ -z "$crossConfig" ]; then
find $out -name "*.ko" -print0 | xargs -0 strip -S
else
find $out -name "*.ko" -print0 | xargs -0 $crossConfig-strip -S
fi
fi
# move this to install later on

View File

@ -6146,6 +6146,7 @@ let
linux_2_6_32_systemtap = makeOverridable (import ../os-specific/linux/kernel/linux-2.6.32.nix) {
inherit fetchurl stdenv perl mktemp module_init_tools ubootChooser;
systemtap = true;
dontStrip = true;
kernelPatches =
[ kernelPatches.fbcondecor_2_6_31
kernelPatches.sec_perm_2_6_24