]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- build_kernel_modules: added -c option which prevents executing make clean auto/ac/rpm-build-macros-1_332-1 auto/ac/rpm-build-macros-1_332-2 auto/th/rpm-build-macros-1_332-1
authorsparky <sparky@pld-linux.org>
Tue, 14 Nov 2006 21:58:24 +0000 (21:58 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm.macros -> 1.332

rpm.macros

index a6f1af482d8ebf19c81f6ef8a5e1bd36197e7942..d1396d065f2788b621f0309943e85b51f9fa1e3c 100644 (file)
@@ -1073,6 +1073,7 @@ done \
 #              without .ko extension, may be placed in subdirectory
 #  -C <directory> -- change to <directory> before doing anything
 #  -p <arg>, -P <arg> -- arguments passeed to make scripts
+#  -c -- do not execute make clean
 #  <additional arguments> -- 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}                                                                                      \
This page took 0.056645 seconds and 4 git commands to generate.