Advertisement
Guest User

perf

a guest
Apr 23rd, 2016
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. #MerSDK
  2.  
  3. cd $ANDROID_ROOT
  4. mkdir -p perf/rpm
  5. ln -s $ANDROID_ROOT/device/$VENDOR/$DEVICE perf/linux
  6. cat <<EOF > perf/rpm/perf.spec
  7. Name: perf
  8. Summary: Linux profiling with performance counters
  9. Version: <YOUR_KERNEL_VERSION>
  10. Release: 1
  11. License: GPLv2
  12. Group: Kernel/Linux kernel
  13. Source0: %{name}-%{version}.tar.bz2
  14. Requires: binutils
  15.  
  16. # Build requirements for perf
  17. BuildRequires: binutils-devel
  18. BuildRequires: elfutils-devel
  19. BuildRequires: python-devel
  20. BuildRequires: flex
  21. BuildRequires: bison
  22.  
  23. %description
  24. %{summary}.
  25.  
  26. %prep
  27. %setup -q -n %{name}-%{version}
  28.  
  29. %build
  30. cd linux/tools/perf
  31. # Disable Werror to make it build in OBS
  32. make %{?jobs:-j%jobs} WERROR=0
  33.  
  34. %install
  35.  
  36. install -D -m 755 linux/tools/perf/perf %{buildroot}/%{_sbindir}/perf
  37.  
  38. %files
  39. %defattr(-,root,root,-)
  40. %{_sbindir}/perf
  41. EOF
  42. mb2 -s perf/rpm/perf.spec -t $VENDOR-$DEVICE-armv7hl build
  43. mv RPMS/*.rpm $ANDROID_ROOT/droid-local-repo/$DEVICE/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement