]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
- clarification
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 20 Jun 2004 03:10:56 +0000 (03:10 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kernel-module.spec -> 1.8

kernel-module.spec

index 3ccce6dd8c91961bd786e19434c1b706e9d41fee..5942cb9af83a33938b617e4ca54bc6aff446d4ab 100644 (file)
@@ -1,4 +1,7 @@
 #
+# Replace MODULE_NAME with real module name and MODULE_DIR
+# with required directory name.
+#
 # Conditional build:
 %bcond_without dist_kernel     # allow non-distribution kernel
 %bcond_without kernel          # don't build kernel modules
@@ -81,7 +84,8 @@ for cfg in %{?with_dist_kernel:%{?with_smp:smp} up}%{!?with_dist_kernel:nondist}
        CC="%{__cc}" CPP="%{__cpp}" \
        M=$PWD O=$PWD \
        %{?with_verbose:V=1}
-    mv $mod_name{,-$cfg}.ko
+    
+    mv MODULE_NAME{,-$cfg}.ko
 done
 %endif
 
@@ -94,12 +98,12 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %if %{with kernel}
-install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/$dir
-install $mod_name-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
-       $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/$dir/$mod_name.ko
+install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}{,smp}/MODULE_DIR
+install MODULE_NAME-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.ko \
+       $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/MODULE_DIR/MODULE_NAME.ko
 %if %{with smp} && %{with dist_kernel}
-install $mod_name-smp.ko \
-       $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/$dir/$mod_name.ko
+install MODULE_NAME-smp.ko \
+       $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/MODULE_DIR/MODULE_NAME.ko
 %endif
 %endif
 
@@ -121,12 +125,12 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with kernel}
 %files -n kernel-...
 %defattr(644,root,root,755)
-/lib/modules/%{_kernel_ver}/$dir/*.ko*
+/lib/modules/%{_kernel_ver}/MODULE_DIR/*.ko*
 
 %if %{with smp} && %{with dist_kernel}
 %files -n kernel-smp-...
 %defattr(644,root,root,755)
-/lib/modules/%{_kernel_ver}smp/$dir/*.ko*
+/lib/modules/%{_kernel_ver}smp/MODULE_DIR/*.ko*
 %endif
 %endif
 
This page took 0.028622 seconds and 4 git commands to generate.