0001-Look-for-pcm-core-at-the-default-path.patch 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. From 53b6161d2413406778fa222274069c82846f0297 Mon Sep 17 00:00:00 2001
  2. From: Carlos Santos <casantos@datacom.com.br>
  3. Date: Thu, 6 Dec 2018 21:17:02 -0200
  4. Subject: [PATCH] Look for pcm-core at the default path
  5. On Buildroot, pcm-core.x is installed as /usr/bin/pcm-core. Remove the
  6. platform test, since we know that it's neither CigWin nor Windows, and
  7. use the default path.
  8. It's not nice to have a Buildroot specific patch but let's use one while
  9. we look for a solution that is acceptable upstream.
  10. Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
  11. ---
  12. pmu-query.py | 8 +-------
  13. 1 file changed, 1 insertion(+), 7 deletions(-)
  14. diff --git a/pmu-query.py b/pmu-query.py
  15. index 4c596c7..dc39df6 100755
  16. --- a/pmu-query.py
  17. +++ b/pmu-query.py
  18. @@ -3,7 +3,6 @@ import urllib2
  19. import json, csv
  20. import subprocess
  21. import sys
  22. -import platform
  23. import getopt
  24. all_flag = False
  25. @@ -38,12 +37,7 @@ if filename == None:
  26. except StopIteration:
  27. break
  28. - if platform.system() == 'CYGWIN_NT-6.1':
  29. - p = subprocess.Popen(['./pcm-core.exe -c'],stdout=subprocess.PIPE,shell=True)
  30. - elif platform.system() == 'Windows':
  31. - p = subprocess.Popen(['pcm-core.exe -c'],stdout=subprocess.PIPE,shell=True)
  32. - else:
  33. - p = subprocess.Popen(['./pcm-core.x -c'],stdout=subprocess.PIPE,shell=True)
  34. + p = subprocess.Popen(['/usr/bin/pcm-core -c'],stdout=subprocess.PIPE,shell=True)
  35. (output, err) = p.communicate()
  36. p_status = p.wait()
  37. --
  38. 2.19.2