packaging: Add build perf with unwind call-graph support 78/217478/5 accepted/tizen/unified/20200422.032151 submit/tizen/20200421.025351
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 17 Apr 2020 03:26:21 +0000 (12:26 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 20 Apr 2020 10:57:53 +0000 (19:57 +0900)
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>
packaging/linux-rpi3.spec

index a103e18b3a4c3cae82013a8dbebb88f03166d240..7658e304f64b8dee218f9170b96048c056de263a 100644 (file)
@@ -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