xref: /aosp_15_r20/external/trace-cmd/PACKAGING (revision 58e6ee5f017f6a8912852c892d18457e4bafb554)
1The libtracefs and libtraceevent packages are required for trace-cmd
2and libtracecmd.so
3
4In order to create a package directory with libtraceevent, libtracefs
5and libtracecmd and trace-cmd, you can follow these steps:
6
7 git clone git://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git
8 git clone git://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git
9 git clone git://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git
10
11 cd libtraceevent
12 INSTALL_PATH=/tmp/install ../trace-cmd/make-trace-cmd.sh install
13
14 cd ../libtracefs
15 INSTALL_PATH=/tmp/install ../trace-cmd/make-trace-cmd.sh install
16
17 cd ../trace-cmd
18 INSTALL_PATH=/tmp/install ./make-trace-cmd.sh install install_libs
19
20 cd /tmp/install
21 tar cvjf /tmp/trace-cmd-files.tar.bz2 .
22
23And then the tarball of /tmp/trace-cmd-files.tar.bz2 will can be extracted
24on another machine at the root directory, and trace-cmd will be installed there.
25
26Note, to define a prefix, add a PREFIX variable before calling make-trace-cmd.sh
27
28 For example:
29
30  PREFIX=/usr/local INSTALL_PATH=/tmp/install ./make-trace-cmd.sh install
31