From bf97e3a6a2925910d089578d243cb5c733576566 Mon Sep 17 00:00:00 2001 From: sparky Date: Tue, 14 Nov 2006 21:58:24 +0000 Subject: [PATCH] - build_kernel_modules: added -c option which prevents executing make clean Changed files: rpm.macros -> 1.332 --- rpm.macros | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rpm.macros b/rpm.macros index a6f1af4..d1396d0 100644 --- a/rpm.macros +++ b/rpm.macros @@ -1073,6 +1073,7 @@ done \ # without .ko extension, may be placed in subdirectory # -C -- change to before doing anything # -p , -P -- arguments passeed to make scripts +# -c -- do not execute make clean # -- all additional arguments will be passed to # make modules # @@ -1090,7 +1091,7 @@ done \ # - in last line \ has to touch arguments so arguments passing # in new lines (using \) will be supported -%build_kernel_modules(p:P:m:C:) \ +%build_kernel_modules(p:P:m:C:c) \ %{!?-m:%{error:%{0}: Required module name/list missing} exit 1} \ \ %define Opts \\\\\\\ @@ -1134,9 +1135,9 @@ for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist} ln -sf %{_kernelsrcdir}/scripts o/scripts \ %endif \ \ - %{__make} -C %{_kernelsrcdir} clean \\\ + %{!?-c:%{__make} -C %{_kernelsrcdir} clean \\\ RCS_FIND_IGNORE="-name '*.ko' -o" \\\ - M=$PWD %{MakeOpts} \ + M=$PWD %{MakeOpts}} \ %{__make} -C %{_kernelsrcdir} modules \\\ ${1+"$@"} \\\ M=$PWD %{MakeOpts} \ -- 2.44.0