/haveged-1.3_ppc.patch
Patch | 49 lines | 45 code | 4 blank | 0 comment | 0 complexity | fa2cc63228579f51a71d93459cc7b2b5 MD5 | raw file
Possible License(s): GPL-3.0
- diff -rupN haveged-1.3/configure haveged-1.3_patch/configure
- --- haveged-1.3/configure 2011-10-25 01:06:27.000000000 +0200
- +++ haveged-1.3_patch/configure 2011-11-05 19:42:58.122471139 +0100
- @@ -4564,7 +4564,7 @@ case "$host" in
- HA_CPPFLAGS="-DHAVE_ISA_IA64"
- ;;
-
- - powerpc-*|pcc-*|powerpc64|ppc64)
- + powerpc-*|ppc-*|powerpc64-*|ppc64-*)
- HA_CPPFLAGS="-DHAVE_ISA_PPC"
- ;;
-
- diff -rupN haveged-1.3/configure.ac haveged-1.3_patch/configure.ac
- --- haveged-1.3/configure.ac 2011-10-25 01:06:27.000000000 +0200
- +++ haveged-1.3_patch/configure.ac 2011-11-05 19:42:34.956557994 +0100
- @@ -81,7 +81,7 @@ case "$host" in
- HA_CPPFLAGS="-DHAVE_ISA_IA64"
- ;;
-
- - powerpc-*|pcc-*|powerpc64|ppc64)
- + powerpc-*|ppc-*|powerpc64-*|ppc64-*)
- HA_CPPFLAGS="-DHAVE_ISA_PPC"
- ;;
-
- diff -rupN haveged-1.3/ent/test.sh haveged-1.3_patch/ent/test.sh
- --- haveged-1.3/ent/test.sh 2011-10-25 01:06:27.000000000 +0200
- +++ haveged-1.3_patch/ent/test.sh 2011-11-05 20:31:24.368879277 +0100
- @@ -1,5 +1,9 @@
- #!/bin/sh
- cd ent
- +echo "./entest -t"
- ./entest -t
- +echo "../src/haveged -n 16384k -v 1 $*"
- ../src/haveged -n 16384k -v 1 $*
- +echo "./entest -vf sample"
- ./entest -vf sample
- +
- diff -rupN haveged-1.3/src/havege.c haveged-1.3_patch/src/havege.c
- --- haveged-1.3/src/havege.c 2011-10-25 01:06:28.000000000 +0200
- +++ haveged-1.3_patch/src/havege.c 2011-11-06 01:20:49.054095370 +0100
- @@ -74,7 +74,7 @@ static int cache_configure(void)
- else p[0] = 0;
- if (!strcmp(info.vendor,"amd") && configure_amd())
- ;
- - else if (configure_intel(p[0]))
- + else if (!strcmp(info.vendor,"intel") && configure_intel(p[0]))
- ;
- else {
- info.generic = 1;