kmodtool, macros.kmp: update list of build requirements
The following packages are added: - kernel-abi-stablelists is used by find-requires.ksym in order to provide information regarding kABI symbol usage. It's purely informational and optional, however. - redhat-rpm-config and kernel-rpm-macros are added since the generted spec files use macros from these packages. - elfutils-libelf-devel is used during kmod build for ORC metadata generation (used by kernel for stack unwinding). - kmod programs are used by find-requires.ksyms and find-proivides.ksyms for parsing *.ko files during dependency generation. * kmodtool (get_rpm_template): Update the list of generated BuildRequires. * macros.kmp (%kernel_module_package_buildreqs): Update the list of default BuildRequires. Resolves: #2002887 Signed-off-by: Eugene Syromiatnikov <esyr@redhat.com>
This commit is contained in:
parent
9d55967f9e
commit
a4aed2feef
7
kmodtool
7
kmodtool
@ -139,7 +139,12 @@ EOF
|
|||||||
|
|
||||||
if [ "yes" != "$nobuildreqs" ]
|
if [ "yes" != "$nobuildreqs" ]
|
||||||
then
|
then
|
||||||
echo "BuildRequires: kernel${dashvariant}-devel"
|
cat <<EOF
|
||||||
|
BuildRequires: kernel${dashvariant}-devel
|
||||||
|
BuildRequires: kernel-abi-stablelists
|
||||||
|
BuildRequires: redhat-rpm-config kernel-rpm-macros
|
||||||
|
BuildRequires: elfutils-libelf-devel kmod
|
||||||
|
EOF
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "" != "$override_preamble" ]
|
if [ "" != "$override_preamble" ]
|
||||||
|
@ -9,7 +9,7 @@ kernel_module_package_release 1
|
|||||||
# [ -f filelist] [ -x ] [ -p preamble ] flavor flavor ...
|
# [ -f filelist] [ -x ] [ -p preamble ] flavor flavor ...
|
||||||
|
|
||||||
%kernel_module_package_buildreqs %global kmodtool_generate_buildreqs 1 \
|
%kernel_module_package_buildreqs %global kmodtool_generate_buildreqs 1 \
|
||||||
kernel-devel
|
kernel-devel kernel-abi-stablelists redhat-rpm-config kernel-rpm-macros elfutils-libelf-devel kmod
|
||||||
|
|
||||||
%kernel_module_package(n:v:r:s:f:xp:) %{expand:%( \
|
%kernel_module_package(n:v:r:s:f:xp:) %{expand:%( \
|
||||||
%global kmodtool %{-s*}%{!-s:/usr/lib/rpm/redhat/kmodtool} \
|
%global kmodtool %{-s*}%{!-s:/usr/lib/rpm/redhat/kmodtool} \
|
||||||
|
Loading…
Reference in New Issue
Block a user