diff options
author | Seung-Woo Kim <sw0312.kim@samsung.com> | 2020-04-17 12:26:21 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2020-04-20 19:57:53 +0900 |
commit | a0611c26e7dfedeb087e7407377d093809ab5963 (patch) | |
tree | a3e1ec74a9fb1bc2ffb4016a37f898997a6fd8a3 | |
parent | e181eaf6143665695731c1697a5c7e699f4bcbf0 (diff) | |
download | linux-rpi3-a0611c26e7dfedeb087e7407377d093809ab5963.tar.gz linux-rpi3-a0611c26e7dfedeb087e7407377d093809ab5963.tar.bz2 linux-rpi3-a0611c26e7dfedeb087e7407377d093809ab5963.zip |
packaging: Add build perf with unwind call-graph supportsubmit/tizen/20200421.025351accepted/tizen/unified/20200422.032151
To support perf unwind call-graph, add BuildRequires for unwind,
dw, elfutils and other related devel packages. Also add definition
to remove not necessary perl dependency
Change-Id: I8e94ec4642026841255bbec08ae3dea2a8f5b531
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r-- | packaging/linux-rpi3.spec | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/packaging/linux-rpi3.spec b/packaging/linux-rpi3.spec index a103e18b3a4c..7658e304f64b 100644 --- a/packaging/linux-rpi3.spec +++ b/packaging/linux-rpi3.spec @@ -31,6 +31,12 @@ BuildRequires: u-boot-tools >= 2016.03 BuildRequires: bison BuildRequires: flex BuildRequires: libopenssl1.1-devel +BuildRequires: libunwind-devel +BuildRequires: libdw-devel +BuildRequires: libelf-devel +BuildRequires: elfutils +BuildRequires: xz-devel +BuildRequires: binutils-devel %description The Linux Kernel, the operating system core itself @@ -96,8 +102,8 @@ make dtbs %{?_smp_mflags} make modules %{?_smp_mflags} # 1-5. Build perf -make -s -C tools/lib/traceevent %{?_smp_mflags} -make -s -C tools/perf EXTRA_CFLAGS="-fPIE -rdynamic" %{?_smp_mflags} +make -s -C tools/lib/traceevent %{?_smp_mflags} NO_LIBPERL=1 +make -s -C tools/perf EXTRA_CFLAGS="-fPIE -rdynamic" %{?_smp_mflags} NO_LIBPERL=1 %install QA_SKIP_BUILD_ROOT="DO_NOT_WANT"; export QA_SKIP_BUILD_ROOT @@ -131,9 +137,10 @@ install -m 644 rpi3/boot/fixup*.dat %{buildroot}/boot/ # 2-5. Install perf install -d %{buildroot}/usr -make -s -C tools/perf EXTRA_CFLAGS="-fPIE -rdynamic" DESTDIR=%{buildroot}/usr install +make -s -C tools/perf EXTRA_CFLAGS="-fPIE -rdynamic" DESTDIR=%{buildroot}/usr install NO_LIBPERL=1 rm -rf %{buildroot}/usr/etc rm -rf %{buildroot}/usr/lib/debug +rm -rf %{buildroot}/usr/lib/perf rm -rf %{buildroot}/usr/share # 3-1. remove unnecessary files to prepare for devel package |