File lttng-modules.spec of Package lttng-modules.20220
#
# spec file for package lttng-modules
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# needssslcertforbuild
%if ! 0%{?is_opensuse}
%ifarch x86_64
%define buildrt 1
%endif
%endif
Summary: Licensing information for package lttng-modules
License: GPL-2.0 and LGPL-2.1 and MIT
Group: System/Kernel
Name: lttng-modules
Version: 2.10.10
Release: 0
Source: http://lttng.org/files/lttng-modules/%{name}-%{version}.tar.bz2
Source1: %{name}-preamble
Source2: Module.supported
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: kernel-devel
BuildRequires: kernel-source
BuildRequires: kernel-syms
BuildRequires: module-init-tools
%if 0%{?buildrt} == 1
BuildRequires: kernel-syms-rt
BuildRequires: kernel-source-rt
%endif
ExclusiveArch: x86_64
Patch1: update-timer-instrumentation-on-4.16-and-4.14-rt.patch
Patch2: btrfs-move-basic-block_group-definitions-to-their-own-header.patch
Patch3: fix-btrfs-block-group-struct-refactor-v5.5.patch
Patch4: add-btrfs-tracepoint-for-em-s-eexist-case.patch
Patch5: fix-btrfs-use-fs_info-for-btrfs_handle_em_exist-tracepoint.patch
Patch6: fix-btrfs-tracepoints-constify-all-pointers-v5.5.patch
Patch7: fix-missing-lttng_fs_info_fsid-wrapper-in-btrfs-backport.patch
Patch8: fix-btrfs-make-btrfs_ordered_extent-naming-consistent-v5.6.patch
Patch9: fix-rcu-fix-data-race-due-to-atomic_t-copy-by-value-v5.6.patch
Patch10: fix-writeback-fix-sync-livelock-due-to-b_dirty_time-processing-v5.9.patch
%suse_kernel_module_package -p %{name}-preamble ec2 xen xenpae vmi um
%description
This package provides licensing documentation for the lttng kmp packages.
%package KMP
Summary: LTTng 2.0 Kernel Tracing Modules
Group: System/Kernel
%description KMP
This package contains the LTTng 2.0 Kernel Modules necessary for
instrumenting kernel subsystems.
%prep
%setup -q
%autopatch -p1
set -- *
mkdir source
mkdir obj
for i in "$@"; do
case $i in
LICENSE|*.txt) ;;
*) mv $i source ;;
esac
done
%build
export EXTRA_CFLAGS='-DVERSION=\"%version\"'
for flavor in %flavors_to_build; do
rm -rf obj/$flavor
cp -r source obj/$flavor
cp %{S:2} obj/$flavor
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules M=$PWD/obj/$flavor CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m
done
%install
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
export BRP_PESIGN_FILES="*.ko /lib/firmware"
for flavor in %flavors_to_build; do
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$PWD/obj/$flavor CONFIG_LTTNG=m CONFIG_LTTNG_CLOCK_PLUGIN_TEST=m
done
%files
%defattr(-,root,root)
%doc lgpl-2.1.txt gpl-2.0.txt mit-license.txt
%license LICENSE
%changelog