diff --git a/components/perf-tools/msr-safe/SPECS/msr-safe.spec b/components/perf-tools/msr-safe/SPECS/msr-safe.spec index 1d40c67d16..0c294b70ea 100644 --- a/components/perf-tools/msr-safe/SPECS/msr-safe.spec +++ b/components/perf-tools/msr-safe/SPECS/msr-safe.spec @@ -42,6 +42,10 @@ BuildRequires: kernel-devel BuildRequires: kernel-abi-whitelists kernel-rpm-macros elfutils-libelf-devel %endif +%if 0%{?openEuler} +BuildRequires: kernel kernel-devel kernel-rpm-macros +%endif + %kernel_module_package default %description