PageRenderTime 48ms CodeModel.GetById 22ms RepoModel.GetById 1ms app.codeStats 0ms

/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
  1. diff -rupN haveged-1.3/configure haveged-1.3_patch/configure
  2. --- haveged-1.3/configure 2011-10-25 01:06:27.000000000 +0200
  3. +++ haveged-1.3_patch/configure 2011-11-05 19:42:58.122471139 +0100
  4. @@ -4564,7 +4564,7 @@ case "$host" in
  5. HA_CPPFLAGS="-DHAVE_ISA_IA64"
  6. ;;
  7. - powerpc-*|pcc-*|powerpc64|ppc64)
  8. + powerpc-*|ppc-*|powerpc64-*|ppc64-*)
  9. HA_CPPFLAGS="-DHAVE_ISA_PPC"
  10. ;;
  11. diff -rupN haveged-1.3/configure.ac haveged-1.3_patch/configure.ac
  12. --- haveged-1.3/configure.ac 2011-10-25 01:06:27.000000000 +0200
  13. +++ haveged-1.3_patch/configure.ac 2011-11-05 19:42:34.956557994 +0100
  14. @@ -81,7 +81,7 @@ case "$host" in
  15. HA_CPPFLAGS="-DHAVE_ISA_IA64"
  16. ;;
  17. - powerpc-*|pcc-*|powerpc64|ppc64)
  18. + powerpc-*|ppc-*|powerpc64-*|ppc64-*)
  19. HA_CPPFLAGS="-DHAVE_ISA_PPC"
  20. ;;
  21. diff -rupN haveged-1.3/ent/test.sh haveged-1.3_patch/ent/test.sh
  22. --- haveged-1.3/ent/test.sh 2011-10-25 01:06:27.000000000 +0200
  23. +++ haveged-1.3_patch/ent/test.sh 2011-11-05 20:31:24.368879277 +0100
  24. @@ -1,5 +1,9 @@
  25. #!/bin/sh
  26. cd ent
  27. +echo "./entest -t"
  28. ./entest -t
  29. +echo "../src/haveged -n 16384k -v 1 $*"
  30. ../src/haveged -n 16384k -v 1 $*
  31. +echo "./entest -vf sample"
  32. ./entest -vf sample
  33. +
  34. diff -rupN haveged-1.3/src/havege.c haveged-1.3_patch/src/havege.c
  35. --- haveged-1.3/src/havege.c 2011-10-25 01:06:28.000000000 +0200
  36. +++ haveged-1.3_patch/src/havege.c 2011-11-06 01:20:49.054095370 +0100
  37. @@ -74,7 +74,7 @@ static int cache_configure(void)
  38. else p[0] = 0;
  39. if (!strcmp(info.vendor,"amd") && configure_amd())
  40. ;
  41. - else if (configure_intel(p[0]))
  42. + else if (!strcmp(info.vendor,"intel") && configure_intel(p[0]))
  43. ;
  44. else {
  45. info.generic = 1;