From: ed@altlinux.ru (Ed V. Bartosh)
To: ALT Linux kernel packages development <devel-kernel@altlinux.ru>
Subject: Re: [d-kernel] 3c90x
Date: Thu, 07 Aug 2003 19:30:11 +0400
Message-ID: <m3llu5lc3g.fsf@altlinux.ru> (raw)
In-Reply-To: <200308072008.28000.darkstar@altlinux.ru> (Albert R. Valiev's message of "Thu, 7 Aug 2003 20:08:27 +0400")
[-- Attachment #1: Type: text/plain, Size: 614 bytes --]
>>>>> "ARV" == Albert R. Valiev writes:
ARV> В сообщении от 7 Август 2003 18:49 Ed V. Bartosh написал:
>> Hello,
>>
>> Name: kernel-source-%module_name-%module_version - зачем версию в
>> имя ? Предвидится несколько версих одновременно
ARV> Упс. пропустил случайно. Ничего, все равно модуль перезаливать
ARV> надо из-за ошибки
Может тогда заодно и причешешь спек модуля ?
Там мелочи, но все равно. Да, и почему в такое странное место ставишь ?
может лучше в ...kernel/drivers/net, туда, где остальные драйверы
такого рода ?
Дифф со своим спеком приаттачиваю.
--
Best regards,
Ed V. Bartosh
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 3c90x.spec.diff --]
[-- Type: text/x-patch, Size: 4222 bytes --]
--- /home/ed/tmp/3c90x-llc-smp.spec 2003-08-07 19:23:28 +0400
+++ /home/ed/tmp/kernel-modules-3c90x-aw-smp 2003-08-07 19:23:28 +0400
@@ -1,36 +1,32 @@
-%define module_name 3c90x
-%define module_release alt1
-%define module_version 1.0.2
-
-%define kversion 2.4.21rel
-%define krelease alt4
-%define flavour llc-smp
+# -*- rpm-spec -*-
+# $Id: kernel-modules-3c90x-aw-smp,v 1.2 2003/08/07 12:59:22 ed Exp $
+#
+
+%define module_name 3c90x
+%define module_version 1.0.2
+
+%define kversion 2.4.21
+%define krelease alt14
+%define flavour aw-smp
+%define kcc "%kgcc"
%define base_arch %(echo %{_target_cpu} | sed 's/i.86/i386/;s/athlon/i386/')
-%define kgcc gcc-2.96
-%define kgcc_package gcc2.96
+%define module_dir /lib/modules/%{kversion}-%{flavour}-%{krelease}/kernel/drivers/net
-%ifdef use_ccache
-%define kcc "ccache %kgcc"
-%else
-%define kcc "%kgcc"
-%endif
+Summary: 3COM 3c90x network card drivers
+Name: kernel-modules-%{module_name}-%{flavour}
+Version: %module_version
+Release: alt2
+License: GPL
+Group: System/Kernel and hardware
-%define module_dir /lib/modules/%{kversion}-%{flavour}-%{krelease}/3com
+Packager: Kernel Maintainer Team <kernel@packages.altlinux.org>
+BuildPreReq: kernel-build-tools
-Summary: 3COM 3c90x network card drivers
-Name: kernel-modules-%{module_name}-%{flavour}
-Version: %module_version
-Release: %module_release
-License: GPL
-Group: System/Kernel and hardware
-
-Packager: Kernel Maintainer Team <kernel@packages.altlinux.org>
-
-ExclusiveOS: Linux
-URL: http://www.kernel.org/
+ExclusiveOS: Linux
+URL: http://www.kernel.org/
BuildRequires: %kgcc_package
BuildRequires: modutils
BuildRequires: perl
@@ -38,9 +34,9 @@
BuildRequires: kernel-headers-%flavour
BuildRequires: kernel-source-%module_name-%module_version
-Prereq: fileutils
-Prereq: modutils
-Prereq: kernel-image-%flavour = %kversion-%krelease
+Prereq: fileutils
+Prereq: modutils
+Prereq: kernel-image-%flavour = %kversion-%krelease
ExclusiveArch: %ix86
%description
@@ -48,34 +44,41 @@
%prep
-rm -rf kernel-source-%{module_name}-%{module_version}
-
-tar -jxvf %{_usrsrc}/kernel/sources/kernel-source-%{module_name}-%{module_version}.tar.bz2
-
-%setup -D -T -n kernel-source-%{module_name}-%{module_version}
+rm -rf kernel-source-%module_name-%module_version
+
+tar -jxvf %_usrsrc/kernel/sources/kernel-source-%module_name-%module_version.tar.bz2
+
+%setup -D -T -n kernel-source-%module_name-%module_version
%build
%kcc -c 3c90x.c -O2 -Wall -Wstrict-prototypes -fomit-frame-pointer \
--I/usr/include/linux-%{kversion}-%{flavour}/include \
+-I/usr/include/linux-%kversion-%flavour/include \
-fno-strength-reduce -pipe -DMODULE -D__KERNEL__ -DMODVERSIONS
%install
-mkdir -p $RPM_BUILD_ROOT/%{module_dir}
-install -p -m644 3c90x.o $RPM_BUILD_ROOT/%{module_dir}
+mkdir -p $RPM_BUILD_ROOT/%module_dir
+install -p -m644 3c90x.o $RPM_BUILD_ROOT/%module_dir
%post
-/sbin/depmod -a -F /boot/System.map-%{kversion}-%{flavour}-%{krelease} \
- %{kversion}-%{flavour}-%{krelease}
+/sbin/depmod -a -F /boot/System.map-%kversion-%flavour-%krelease \
+ %kversion-%flavour-%krelease
%postun
-/sbin/depmod -a -F /boot/System.map-%{kversion}-%{flavour}-%{krelease} \
- %{kversion}-%{flavour}-%{krelease}
+/sbin/depmod -a -F /boot/System.map-%kversion-%flavour-%krelease \
+ %kversion-%flavour-%krelease
%files
%defattr(644,root,root,755)
%module_dir
%changelog
+* Thu Aug 07 2003 Ed V. Bartosh <ed@altlinux.org> 1.0.2-alt2
+- rebuilt with 2.4.21-alt14
+- spec sanity check
+
+* Thu Aug 7 2003 Ed V. Bartosh <ed@sam-solutions.net> 1.0.2-alt1
+- Changed for 'aw' flavour
+
* Thu Jul 31 2003 Albert R. Valiev <darkstar@altlinux.ru> 1.0.2-alt1
- Initial build
next prev parent reply other threads:[~2003-08-07 15:30 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-07 14:49 Ed V. Bartosh
2003-08-07 16:08 ` Albert R. Valiev
2003-08-07 15:30 ` Ed V. Bartosh [this message]
2003-08-07 16:27 ` [d-kernel] 3c90x Sergey Vlasov
2003-08-07 15:36 ` Ed V. Bartosh
2003-08-07 16:49 ` Anton Farygin
2003-08-07 17:13 ` Sergey Vlasov
2003-08-07 17:15 ` Anton Farygin
2003-08-08 6:58 ` Ed V. Bartosh
2003-08-08 9:35 ` Anton Farygin
2003-08-08 10:21 ` Ed V. Bartosh
2003-08-08 11:16 ` Peter Novodvorsky
2003-08-08 10:14 ` Anton Farygin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3llu5lc3g.fsf@altlinux.ru \
--to=ed@altlinux.ru \
--cc=devel-kernel@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux kernel packages development
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
public-inbox-index devel-kernel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git