From 2fe9a13c66c8b481b5aa2a0e823cb7a974597798 Mon Sep 17 00:00:00 2001 From: ebasov Date: Mon, 10 Feb 2025 21:27:29 +0300 Subject: [PATCH] Added missing macros with_std --- SPECS/kernel-6.1.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SPECS/kernel-6.1.spec b/SPECS/kernel-6.1.spec index dc28e80..ddad258 100644 --- a/SPECS/kernel-6.1.spec +++ b/SPECS/kernel-6.1.spec @@ -599,7 +599,7 @@ Package contains the Linux kernel with KMEMLEAK support. %global _build_id_links none # Set up our "big" %%{make} macro. -%global make %{__make} %{?make_opts} -s HOSTCFLAGS="%{?build_cflags}" HOSTLDFLAGS="%{?build_ldflags}" +%global make %{__make} %{make_opts} -s HOSTCFLAGS="%{?build_cflags}" HOSTLDFLAGS="%{?build_ldflags}" %prep %ifarch x86_64 aarch64 @@ -820,6 +820,7 @@ BuildKernel() { perl -p -i -e "s/^CONFIG_BUILD_SALT.*/CONFIG_BUILD_SALT=\"%{KVERREL}\"/" .config + %if %{with_std} %{make} %{?_smp_mflags} ARCH=%{bldarch} %{make_target} %{make} %{?_smp_mflags} ARCH=%{bldarch} modules || exit 1 @@ -834,6 +835,7 @@ BuildKernel() { RPM_VMLINUX_H=vmlinux.h %endif %endif + %endif %ifarch x86_64 aarch64 mkdir -p $RPM_BUILD_ROOT