Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #MerSDK
- cd $ANDROID_ROOT
- mkdir -p perf/rpm
- ln -s $ANDROID_ROOT/device/$VENDOR/$DEVICE perf/linux
- cat <<EOF > perf/rpm/perf.spec
- Name: perf
- Summary: Linux profiling with performance counters
- Version: <YOUR_KERNEL_VERSION>
- Release: 1
- License: GPLv2
- Group: Kernel/Linux kernel
- Source0: %{name}-%{version}.tar.bz2
- Requires: binutils
- # Build requirements for perf
- BuildRequires: binutils-devel
- BuildRequires: elfutils-devel
- BuildRequires: python-devel
- BuildRequires: flex
- BuildRequires: bison
- %description
- %{summary}.
- %prep
- %setup -q -n %{name}-%{version}
- %build
- cd linux/tools/perf
- # Disable Werror to make it build in OBS
- make %{?jobs:-j%jobs} WERROR=0
- %install
- install -D -m 755 linux/tools/perf/perf %{buildroot}/%{_sbindir}/perf
- %files
- %defattr(-,root,root,-)
- %{_sbindir}/perf
- EOF
- mb2 -s perf/rpm/perf.spec -t $VENDOR-$DEVICE-armv7hl build
- mv RPMS/*.rpm $ANDROID_ROOT/droid-local-repo/$DEVICE/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement