* [d-kernel] kernel spec patches: customizability & small cleanups
@ 2003-08-14 8:36 Mikhail Zabaluev
2003-08-14 8:49 ` Michael Shigorin
2003-08-14 8:59 ` Dmitry V. Levin
0 siblings, 2 replies; 4+ messages in thread
From: Mikhail Zabaluev @ 2003-08-14 8:36 UTC (permalink / raw)
To: devel-kernel
[-- Attachment #1: Type: text/plain, Size: 435 bytes --]
Доброго времени суток.
Предлагаются маленькие патчи к ядерным spec'ам alsa и drm.
Цель: сделать их более дружественными к сторонним сборщикам
(напр. мне) и зачистить мелкие заусенцы.
Я там проставил нужный лично мне набор модулей, но по смыслу,
я думаю, все доступно.
--
Stay tuned,
MhZ JID: mhz@altlinux.org
___________
Chinese saying: "He who speak with forked tongue, not need chopsticks."
[-- Attachment #2: alsa-std-up-mhz-spec.patch --]
[-- Type: text/plain, Size: 1181 bytes --]
--- alsa-std-up.spec 2003-08-07 19:37:15 +0400
+++ alsa-mhz-up.spec 2003-08-12 04:26:22 +0400
@@ -17,6 +17,9 @@
%define kcc "%kgcc"
%endif
+#define alsa_cards all
+%define alsa_cards ice1712,intel8x0
+
%define module_dir /lib/modules/%kversion-%flavour-%krelease/misc
Summary: The Advanced Linux Sound Architecture modules
@@ -67,8 +70,10 @@
%setup -D -T -n kernel-source-%module_name-%module_version
%build
-CC=%kcc ./configure --with-kernel=/usr/include/linux-%kversion-%flavour/ \
- --with-isapnp=yes --with-sequencer=yes \
+CC=%kcc ./configure --with-kernel=/usr/include/linux-%kversion-%flavour \
+ --with-isapnp=no \
+ --with-sequencer=yes \
+ --with-cards=%alsa_cards \
--with-moddir=%module_dir
%make_build CC=%kcc
@@ -81,11 +86,11 @@
IGROUP=`id -g` IUSER=`id -u`
%post
-/sbin/depmod -a -F /boot/System.map-%kversion-%flavour-%krelease alt9
+/sbin/depmod -a -F /boot/System.map-%kversion-%flavour-%krelease
%kversion-%flavour-%krelease
%postun
-/sbin/depmod -a -F /boot/System.map-%kversion-%flavour-%krelease alt9
+/sbin/depmod -a -F /boot/System.map-%kversion-%flavour-%krelease
%kversion-%flavour-%krelease
%files
[-- Attachment #3: drm-std-up-mhz-spec.patch --]
[-- Type: text/plain, Size: 589 bytes --]
--- drm-std-up.spec 2003-08-07 19:37:16 +0400
+++ drm-mhz-up.spec 2003-08-14 11:28:06 +0400
@@ -14,6 +14,9 @@
%define kcc "%kgcc"
%endif
+#define drm_modules tdfx.o sis.o r128.o radeon.o mga.o i810.o i830.o
+%define drm_modules radeon.o
+
%define module_dir /lib/modules/%{kversion}-%{flavour}-%{krelease}/kernel/drivers/char/drm
@@ -73,7 +76,7 @@
%build
%make_build -f Makefile.linux TREE=/usr/include/linux-%{kversion}-%{flavour}/include \
- MACHINE=i386 CC=%kcc tdfx.o sis.o r128.o radeon.o mga.o i810.o i830.o
+ MACHINE=i386 CC=%kcc %drm_modules
%install
mkdir -p \
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [d-kernel] kernel spec patches: customizability & small cleanups
2003-08-14 8:36 [d-kernel] kernel spec patches: customizability & small cleanups Mikhail Zabaluev
@ 2003-08-14 8:49 ` Michael Shigorin
2003-08-14 8:59 ` Dmitry V. Levin
1 sibling, 0 replies; 4+ messages in thread
From: Michael Shigorin @ 2003-08-14 8:49 UTC (permalink / raw)
To: devel-kernel
On Thu, Aug 14, 2003 at 12:36:07PM +0400, Mikhail Zabaluev wrote:
> %build
> -CC=%kcc ./configure --with-kernel=/usr/include/linux-%kversion-%flavour/ \
> - --with-isapnp=yes --with-sequencer=yes \
> +CC=%kcc ./configure --with-kernel=/usr/include/linux-%kversion-%flavour \
> + --with-isapnp=no \
> + --with-sequencer=yes \
> + --with-cards=%alsa_cards \
Не, я уже собрался этот момент упереть из
http://freshrpms.net/packages/builds/alsa-driver/alsa-driver.spec
:)
Вот только не уверен, что немедленно -- сейчас лучше проверить и
стабилизировать имеющееся, чем наворачивать даже
девелопер-френдлинесс, как по мне.
> %post
> -/sbin/depmod -a -F /boot/System.map-%kversion-%flavour-%krelease alt9
> +/sbin/depmod -a -F /boot/System.map-%kversion-%flavour-%krelease
(торможу?)
--
---- WBR, Michael Shigorin <mike@altlinux.ru>
------ Linux.Kiev http://www.linux.kiev.ua/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [d-kernel] kernel spec patches: customizability & small cleanups
2003-08-14 8:36 [d-kernel] kernel spec patches: customizability & small cleanups Mikhail Zabaluev
2003-08-14 8:49 ` Michael Shigorin
@ 2003-08-14 8:59 ` Dmitry V. Levin
2003-08-14 20:50 ` Mikhail Zabaluev
1 sibling, 1 reply; 4+ messages in thread
From: Dmitry V. Levin @ 2003-08-14 8:59 UTC (permalink / raw)
To: devel-kernel
[-- Attachment #1: Type: text/plain, Size: 870 bytes --]
On Thu, Aug 14, 2003 at 12:36:07PM +0400, Mikhail Zabaluev wrote:
> Доброго времени суток.
>
> Предлагаются маленькие патчи к ядерным spec'ам alsa и drm.
> Цель: сделать их более дружественными к сторонним сборщикам
> (напр. мне) и зачистить мелкие заусенцы.
> Я там проставил нужный лично мне набор модулей, но по смыслу,
> я думаю, все доступно.
>
> --
> Stay tuned,
> MhZ JID: mhz@altlinux.org
> ___________
> Chinese saying: "He who speak with forked tongue, not need chopsticks."
> --- alsa-std-up.spec 2003-08-07 19:37:15 +0400
> +++ alsa-mhz-up.spec 2003-08-12 04:26:22 +0400
> @@ -17,6 +17,9 @@
> %define kcc "%kgcc"
> %endif
>
> +#define alsa_cards all
> +%define alsa_cards ice1712,intel8x0
> +
%ifndef alsa_cards
%define alsa_cards all
%endif
И в %description указать %alsa_cards.
Аногично для drm.
--
ldv
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [d-kernel] kernel spec patches: customizability & small cleanups
2003-08-14 8:59 ` Dmitry V. Levin
@ 2003-08-14 20:50 ` Mikhail Zabaluev
0 siblings, 0 replies; 4+ messages in thread
From: Mikhail Zabaluev @ 2003-08-14 20:50 UTC (permalink / raw)
To: devel-kernel
Hello Dmitry,
On Thu, Aug 14, 2003 at 12:59:41PM +0400, Dmitry V. Levin wrote:
>
> %ifndef alsa_cards
> %define alsa_cards all
> %endif
>
> И в %description указать %alsa_cards.
>
> Аногично для drm.
Для drm будет некузяво, если имена модулей с .o пойдут в описание
пакета.
--
Stay tuned,
MhZ JID: mhz@altlinux.org
___________
What this country needs is a good five cent nickel.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-08-14 20:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-14 8:36 [d-kernel] kernel spec patches: customizability & small cleanups Mikhail Zabaluev
2003-08-14 8:49 ` Michael Shigorin
2003-08-14 8:59 ` Dmitry V. Levin
2003-08-14 20:50 ` Mikhail Zabaluev
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