ALT Linux kernel packages development
 help / color / mirror / Atom feed
From: Andrey Rahmatullin <wrar@altlinux.ru>
To: ALT Linux kernel packages development <devel-kernel@altlinux.ru>
Subject: Re: [d-kernel] Re: 2.6.1
Date: Wed, 21 Jan 2004 17:46:44 +0500
Message-ID: <20040121124644.GA3768@wrars-comp.wrarsdomain> (raw)
In-Reply-To: <m3ad4h1wfg.fsf@pc213.belcaf.minsk.by>


[-- Attachment #1.1: Type: text/plain, Size: 867 bytes --]

On Wed, Jan 21, 2004 at 11:29:55AM +0200, Ed V. Bartosh wrote:
> Давай лей. А я с ними ядрышко соберу.
Уже.

> Radeon drivers тоже не помешают. Для примера можешь взять последние
> nvidia, там поменялась технология сборки модулей.

Если ты о сборке на ядерных скриптах, то я не понял, как должен выглядеть
Makefile. Кинь в меня? А то сливать исходники nvidia ради 1 файла...


Вообще, спек для радеона у меня готов, он аналогичен спеку для 2.4, т.е. в
нем забиты компиляция и линковка. Изменение пакета с исходниками не
требуется. Спек в аттаче.

2vsu: может, напишем нормальный Makefile?

-- 
WBR, wRAR (ALT Linux Team)

К тому же, образование цеховой команды, секреты работы которой передаются
из уст в уста, без использования письменной традиции, в сегодняшней
ситуации и по отношению к свободному ПО мне кажется совершенно
неоправданным.
		-- ab in devel-kernel@

[-- Attachment #1.2: kernel-modules-fglrx-std26-up.spec --]
[-- Type: text/plain, Size: 6629 bytes --]

%define module_name	fglrx
%define module_version	3.7.0
%define module_release	alt1

%define kversion	2.6.1
%define krelease	alt1
%define flavour		std26-up

%define base_arch %(echo %{_target_cpu} | sed 's/i.86/i386/;s/athlon/i386/')

%define kgcc		gcc-3.3
%define use_ccache 1

%ifdef use_ccache
%define kcc ccache %kgcc
%else
%define kcc %kgcc
%endif

%define module_dir /lib/modules/%kversion-%flavour-%krelease/%module_name


Summary:	ATI video card drivers
Name:		kernel-modules-%{module_name}-%{flavour}
Version:	1.0.%{module_version}
Release:	%{module_release}
License:	Proprietary
Group:		System/Kernel and hardware

Patch1:		fglrx-3.2.8-agp-sis.patch
Patch2:		fglrx-3.2.5-agp-i875.patch
Patch3:		fglrx-3.2.8-via-agp2.patch
Patch4:		fglrx-3.2.8-nvidia-nforce.patch

ExclusiveOS:	Linux
URL:		http://www.schneider-digital.de/html/body_download_ati.html
BuildPreReq:    kernel-build-tools
BuildRequires:	gcc3.3
BuildRequires:	modutils
BuildRequires:	perl
BuildRequires:	rpm >= 4.0.2-75
BuildRequires:  kernel-headers-%{flavour} = %{kversion}-%{krelease}
BuildRequires:  kernel-source-%{module_name}-%{module_version}

Provides:  kernel-modules-%module_name-%kversion-%flavour-%krelease = %version-%release
Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease < %version-%release
Conflicts: kernel-modules-%module_name-%kversion-%flavour-%krelease > %version-%release

Prereq:		coreutils
Prereq:		modutils
Prereq:         kernel-image-%{flavour} = %{kversion}-%{krelease}
Requires(postun): kernel-image-%flavour = %kversion-%krelease
ExclusiveArch:	%{ix86}

%description
Drivers for Linux Fire GL X1/Z1/E1/8800/8700/9000/9700/9800 RADEON 
for XFree86 Version X4.3.0.

%prep

rm -rf kernel-source-%{module_name}-%{module_version}                                                                        
                                                                                                         
tar -jxvf %kernel_src/kernel-source-%{module_name}-%{module_version}.tar.bz2
                                                                                                         
%setup -D -T -n kernel-source-%{module_name}-%{module_version}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
%define fglrx_gcc %kcc -D__KERNEL__ -I%_includedir/linux-%{kversion}-%{flavour}/include -I%_includedir/linux-%{kversion}-%{flavour}/include/asm-i386/mach-default -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -O2 -fomit-frame-pointer -Wdeclaration-after-statement -D__AGP__ -DFGL -DFGL_LINUX -DFGL_GART_RESERVED_SLOT -DFGL_LINUX253P1_VMA_API -DPAGE_ATTR_FIX=1 -DMODULE

%fglrx_gcc -c agpgart_be.c -DKBUILD_BASENAME=agpgart_be -DKBUILD_MODNAME=fglrx -o agpgart_be.o
%fglrx_gcc -c nvidia-agp.c -DKBUILD_BASENAME=nvidia_agp -DKBUILD_MODNAME=fglrx -o nvidia-agp.o
%fglrx_gcc -c agp3.c       -DKBUILD_BASENAME=agp3       -DKBUILD_MODNAME=fglrx -o agp3.o
%fglrx_gcc -c i7505-agp.c  -DKBUILD_BASENAME=i7505_agp  -DKBUILD_MODNAME=fglrx -o i7505-agp.o
%fglrx_gcc -c firegl_public.c -o firegl_public.o
ld -r firegl_public.o agpgart_be.o agp3.o i7505-agp.o nvidia-agp.o \
    libfglrx_ip.a.GCC%__gcc_version_major -o fglrx.o
modpost fglrx.o
%fglrx_gcc -c fglrx.mod.c  -DKBUILD_BASENAME=fglrx -o fglrx.mod.o
ld -r fglrx.o fglrx.mod.o -o fglrx.ko


%install
mkdir -p $RPM_BUILD_ROOT/%{module_dir}
install -p -m644 fglrx.ko $RPM_BUILD_ROOT/%{module_dir}

%post
/sbin/depmod -a -F /boot/System.map-%{kversion}-%{flavour}-%{krelease} \
    %{kversion}-%{flavour}-%{krelease}

%postun
[ ! -f /boot/System.map-%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
* Wed Jan 21 2004 Andrey Rahmatullin <wrar@altlinux.ru> 1.0.3.7.0-alt1
- 2.6 support

* Fri Nov 28 2003 Sergey Vlasov <vsu@altlinux.ru> 1.0.3.2.8-alt3.15
- Added Provides/Conflicts to make sure that only one version of the package
  can be installed for each kernel version.

* Tue Nov 18 2003 Sergey Vlasov <vsu@altlinux.ru> 1.0.3.2.8-alt2.15
- Fixed spec file name.
- Avoid %%postun failure when this package is removed after
  kernel-image-%%flavour (currently rpm cannot prevent this).
- Added Patch4: fglrx-3.2.8-nvidia-nforce.patch: fixed nForce AGP support.

* Sun Oct 12 2003 Sergey Vlasov <vsu@altlinux.ru> 1.0.3.2.8-alt1.15
- new version (3.2.8).
- updated Patch1 (some SiS support was added in upstream, only SiS 745 remains
  unknown).
- fixed compile flags.
- Patch3: fixed AGP 2.0 support for VIA KT400 and P4X333.

* Mon Sep 29 2003 Sergey Vlasov <vsu@altlinux.ru> 1.0.3.2.5-alt16.15
- Patch2: fixed Intel 875P chipset support (it does not have integrated
  graphics capability).

* Fri Sep 26 2003 Sergey Vlasov <vsu@altlinux.ru> 1.0.3.2.5-alt15.15
- replaced %%{_usrsrc}/kernel/sources with %%kernel_src
- Patch1: added new SiS host bridge IDs to the builtin AGP support (from
  mainstream kernel)

* Mon Sep 08 2003 Anton Farygin <rider@altlinux.ru> 1.0.3.2.5-alt14.15
- new version (3.2.5)

* Wed Sep 03 2003 Rider <rider@altlinux.ru> 1.0.2.9.12-alt14.15
- replace /usr/include to _includedir macro

* Tue Aug 26 2003 Peter Novodvorsky <nidd@altlinux.com> 1.0.2.9.12-alt13
- rebuilt with 2.4.21rel-alt14

* Fri Aug 15 2003 Peter Novodvorsky <nidd@altlinux.com> 1.0.2.9.12-alt12
- rebuilt with 2.4.21rel-alt13

* Wed Aug 13 2003 Peter Novodvorsky <nidd@altlinux.com> 1.0.2.9.12-alt11
- rebuilt with 2.4.21rel-alt12

* Tue Aug 12 2003 Peter Novodvorsky <nidd@altlinux.com> 1.0.2.9.12-alt10
- rebuilt with 2.4.21rel-alt11

* Mon Aug 11 2003 Peter Novodvorsky <nidd@altlinux.com> 1.0.2.9.12-alt9
- rebuilt with 2.4.21rel-alt10

* Thu Aug 07 2003 Peter Novodvorsky <nidd@altlinux.com> 1.0.2.9.12-alt8
- rebuilt with 2.4.21rel-alt9

* Wed Aug 06 2003 Peter Novodvorsky <nidd@altlinux.com> 1.0.2.9.12-alt7
- rebuilt with 2.4.21rel-alt8

* Wed Jul 30 2003 Peter Novodvorsky <nidd@altlinux.com> 1.0.2.9.12-alt6
- rebuilt with 2.4.21rel-alt7

* Thu Jul 17 2003 Peter Novodvorsky <nidd@altlinux.com> 1.0.2.9.12-alt5
- rebuilt with 2.4.21rel-alt6

* Wed Jul 16 2003 Peter Novodvorsky <nidd@altlinux.com> 1.0.2.9.12-alt4
- rebuilt with 2.4.21rel-alt5

* Tue Jul 08 2003 Peter Novodvorsky <nidd@altlinux.com> 1.0.2.9.12-alt3
- added -include /usr/include/linux-%{kversion}-%{flavour}/include/linux/modversions.h
  now it actually WORKS!

* Sat Jun 21 2003 Peter Novodvorsky <nidd@altlinux.com> 1.0.2.9.12-alt2
- rebuilt with 2.4.21rel kernel

* Thu Jun 05 2003 Peter Novodvorsky <nidd@altlinux.com> 1.0.2.9.12-alt1
- initial version.


[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2004-01-21 12:46 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-09 16:00 [d-kernel] 2.6.1 Ed V. Bartosh
2004-01-11  8:00 ` [d-kernel] 2.6.1 Konstantin A. Lepikhov
2004-01-11 13:45   ` Andrey Rahmatullin
2004-01-11 14:01     ` Konstantin A. Lepikhov
2004-01-12  8:45   ` Ed V. Bartosh
2004-01-14  8:49   ` Andrey Rahmatullin
2004-01-14  9:40     ` Ed V. Bartosh
2004-01-14 10:40       ` Andrey Rahmatullin
2004-01-14 12:07         ` Michael Shigorin
2004-01-14  9:43     ` Michael Shigorin
2004-01-20 17:27   ` Ed V. Bartosh
2004-01-20 17:40     ` Konstantin A. Lepikhov
2004-01-20 18:33       ` Andrey Rahmatullin
2004-01-20 18:38       ` Ed V. Bartosh
2004-01-20 19:06         ` Konstantin A. Lepikhov
2004-01-21 13:29           ` Andrey Rahmatullin
2004-01-21 18:14             ` Konstantin A. Lepikhov
2004-01-20 19:18         ` Andrey Rahmatullin
2004-01-21  9:29           ` Ed V. Bartosh
2004-01-21 10:56             ` Andrey Rahmatullin
2004-01-21 12:20               ` Gleb Stiblo
2004-01-21 12:29                 ` Andrey Rahmatullin
2004-01-21 12:59               ` Ed V. Bartosh
2004-01-21 13:40                 ` [d-kernel][JT] Стандартные и нестандартные ядра (Was: 2.6.1) Andrey Rahmatullin
2004-01-21 14:17                 ` [d-kernel] модуляризация ide Zhenja Kaluta
2004-01-21 14:43                   ` Sergey Vlasov
2004-01-26  9:36                   ` Zhenja Kaluta
2004-01-21 12:46             ` Andrey Rahmatullin [this message]
2004-01-21 13:39               ` [d-kernel] Re: 2.6.1 Gleb Stiblo
2004-01-26 11:50             ` Andrey Rahmatullin
2004-01-26 12:16               ` Gleb Stiblo
2004-01-26 12:50                 ` Andrey Rahmatullin
2004-01-26 13:19                   ` Gleb Stiblo
2004-01-26 15:02                     ` Andrey Rahmatullin
2004-01-20 18:25     ` Andrey Rahmatullin
2004-01-11 20:10 ` [d-kernel] 2.6.1 Michael Shigorin
2004-01-12  8:54   ` Ed V. Bartosh
2004-01-22  9:29 ` Alexey Kotovich
2004-01-22  9:29   ` Alexey Kotovich

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=20040121124644.GA3768@wrars-comp.wrarsdomain \
    --to=wrar@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