Try to workaround Debian uname(1) does not support '-p'.
authorshort <>
Sun, 28 Sep 2003 16:07:44 +0000 (16:07 +0000)
committershort <>
Sun, 28 Sep 2003 16:07:44 +0000 (16:07 +0000)
kernel/Linux/prepmod.in

index 9a2a9a9..6fd51c0 100755 (executable)
@@ -223,7 +223,8 @@ sub build
 {
 my($kernel,$uname_r,$destmodule)=@_;
 
-       my $arch=_readfile "uname -p|";
+       # Debian uname(1) does not support '-p'.
+       my $arch=_readfile "uname -p|" || _readfile "uname -m|";
        chomp $arch;
        my $single_config=-f "$kernel/.config";
        if (!$single_config) {