summaryrefslogtreecommitdiff
path: root/kernel-net-eplip.spec
diff options
context:
space:
mode:
authorwitekfl2006-01-11 13:36:03 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commitef72e0944578ca931a1c3ab0b578c77d214df4e9 (patch)
treeba1b6f69c0c4a656e838282f3f5f798462640f3f /kernel-net-eplip.spec
parent2472624ed5a50300f9d68429aa286f930cdb6860 (diff)
downloadkernel-net-eplip-ef72e0944578ca931a1c3ab0b578c77d214df4e9.zip
kernel-net-eplip-ef72e0944578ca931a1c3ab0b578c77d214df4e9.tar.gz
- added patch eplip-2.6.x2
Changed files: kernel-net-eplip.spec -> 1.4
Diffstat (limited to 'kernel-net-eplip.spec')
-rw-r--r--kernel-net-eplip.spec27
1 files changed, 15 insertions, 12 deletions
diff --git a/kernel-net-eplip.spec b/kernel-net-eplip.spec
index f029aa3..e775438 100644
--- a/kernel-net-eplip.spec
+++ b/kernel-net-eplip.spec
@@ -1,9 +1,8 @@
-# $Revision: 1.3 $
+# $Revision: 1.4 $
#
# Conditional build:
%bcond_without dist_kernel # without kernel from distribution
#
-%define no_install_post_compress_modules 1
%define _orig_name eplip
%define _rel 1
@@ -19,6 +18,7 @@ Source0: http://e-plip.sourceforge.net/%{_orig_name}-%{version}.tar.gz
# Source0-md5: 43019250e7227857ae13bdd39a45494d
Patch0: eplip-2.6.x.patch
Patch1: kernel-eplip-WIRING.patch
+Patch2: eplip-2.6.x2.patch
URL: http://e-plip.sourceforge.net/
BuildRequires: rpmbuild(macros) >= 1.118
%{?with_dist_kernel:BuildRequires: kernel-module-build}
@@ -52,6 +52,7 @@ SMP.
%setup -q -n %{_orig_name}-%{version}
%patch0 -p1
%patch1 -p1
+%patch2 -p1
cat <<EOF > Makefile
CONFIG_X86=1
CONFIG_ISA=1
@@ -64,28 +65,30 @@ install -d build-done/{UP,SMP}
ln -sf %{_kernelsrcdir}/config-up .config
rm -rf include
install -d include/{linux,config}
-ln -sf %{_kernelsrcdir}/include/linux/autoconf.h include/linux/autoconf.h
-ln -sf %{_kernelsrcdir}/asm-%{_arch} include/asm
+ln -sf %{_kernelsrcdir}/include/linux/autoconf-up.h include/linux/autoconf.h
+ln -sf %{_kernelsrcdir}/include/asm-%{_arch} include/asm
touch include/config/MARKER
%{__make} -C %{_kernelsrcdir} modules \
- SUBDIRS=$PWD \
+ M=$PWD \
O=$PWD \
V=1
mv *.ko build-done/UP
-%{__make} -C %{_kernelsrcdir} mrproper \
- SUBDIRS=$PWD \
- O=$PWD \
- V=1
+# it doesn't work
+#%{__make} -C %{_kernelsrcdir} mrproper \
+# M=$PWD \
+# O=$PWD \
+# V=1
+find . -name "*.o" -exec rm '{}' ';'
ln -sf %{_kernelsrcdir}/config-smp .config
rm -rf include
install -d include/{linux,config}
-ln -sf %{_kernelsrcdir}/include/linux/autoconf.h include/linux/autoconf.h
-ln -sf %{_kernelsrcdir}/asm-%{_arch} include/asm
+ln -sf %{_kernelsrcdir}/include/linux/autoconf-smp.h include/linux/autoconf.h
+ln -sf %{_kernelsrcdir}/include/asm-%{_arch} include/asm
touch include/config/MARKER
%{__make} -C %{_kernelsrcdir} modules \
- SUBDIRS=$PWD \
+ M=$PWD \
O=$PWD \
V=1