SPECS: template-kernel-module.spec - ppc/powerpc hack, for now wor...
sparky
sparky at pld-linux.org
Thu Dec 8 19:16:16 CET 2005
Author: sparky Date: Thu Dec 8 18:16:16 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- ppc/powerpc hack, for now works well, but will it work if there will be no
asm-powerpc (before transition start) or asm-ppc dir (after transition) ?
---- Files affected:
SPECS:
template-kernel-module.spec (1.26 -> 1.27)
---- Diffs:
================================================================
Index: SPECS/template-kernel-module.spec
diff -u SPECS/template-kernel-module.spec:1.26 SPECS/template-kernel-module.spec:1.27
--- SPECS/template-kernel-module.spec:1.26 Wed Sep 14 17:18:32 2005
+++ SPECS/template-kernel-module.spec Thu Dec 8 19:16:10 2005
@@ -115,7 +115,17 @@
install -d include/{linux,config}
ln -sf %{_kernelsrcdir}/config-$cfg .config
ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h include/linux/autoconf.h
+%ifarch ppc
+ if [ -d "%{_kernelsrcdir}/include/asm-powerpc" ]; then
+ install -d include/asm
+ cp -a %{_kernelsrcdir}/include/asm-%{_target_base_arch}/* include/asm
+ cp -a %{_kernelsrcdir}/include/asm-powerpc/* include/asm
+ else
+ ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
+ fi
+%else
ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
+%endif
ln -sf %{_kernelsrcdir}/Module.symvers-$cfg Module.symvers
touch include/config/MARKER
#
@@ -191,6 +201,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.27 2005/12/08 18:16:10 sparky
+- ppc/powerpc hack, for now works well, but will it work if there will be no
+ asm-powerpc (before transition start) or asm-ppc dir (after transition) ?
+
Revision 1.26 2005/09/14 15:18:32 sparky
- prepared for kernel >= 2.6.13 (on older kernels it will just create broken link)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/template-kernel-module.spec?r1=1.26&r2=1.27&f=u
More information about the pld-cvs-commit
mailing list