From: Eugene Prokopiev <prokopiev@stc.donpac.ru>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: [Comm] zaptel : sisyphus -> alm24
Date: Tue, 06 Dec 2005 15:19:27 +0300
Message-ID: <439581CF.2090405@stc.donpac.ru> (raw)
In-Reply-To: <20051206112510.GC8593@ember.istranet.ru>
>>Сразу оговорюсь, что речь пока не идет о "правильной" сборке в RPM,
>>первая задача - просто добиться работоспособности модуля.
http://lists.altlinux.ru/pipermail/sisyphus/2005-April/057742.html
помогло make KSRC=/usr/src/linux-2.4.26-std-up/, там уж дальше нашелся
modversions.h и все собралось правильно
>># lsmod | grep z
>>Module Size Used by Tainted: P
>>zaptel 184384 0 (unused)
>
>
> Модули zaptel есть в Сизифе. Может стоит использовать их как основу для
> собственной сборки?
Именно так и планируется, но есть некоторые сложности ...
За основу беру kernel-modules-zaptel-std26-up-1.0-alt4.132620.4.src.rpm,
переименовываю спек в kernel-modules-zaptel-std-up, правлю версии:
< %define kversion 2.4.26
< %define krelease alt6
< %define flavour std-up
---
> %define kversion 2.6.12
> %define krelease alt4
> %define flavour std26-up
при сборке получаю:
make -C /home/john/RPM/BUILD/kernel-source-zaptel-1.0/zaptel
CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.26-std-up/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.26-std-up/include/linux/modversions.h"
MAKING_MODULES=1 modules
make[1]: Entering directory
`/home/john/RPM/BUILD/kernel-source-zaptel-1.0/zaptel'
make[1]: *** No rule to make target `modules'. Stop.
жалуюсь Денису Смирнову, тот отвечает: "Гм. Странно. Дело в том, что -C
должно указывать не на этот каталог, а на каталог внутри
kernel-headers-modules."
тогда я в спеке перед:
make -C %_usrsrc/linux-%kversion-%flavour SUBDIRS=`realpath .` modules
вписываю:
echo %_usrsrc/linux-%kversion-%flavour
ls %_usrsrc/linux-%kversion-%flavour
и получаю:
+ echo /usr/src/linux-2.4.26-std-up
/usr/src/linux-2.4.26-std-up
+ ls /usr/src/linux-2.4.26-std-up
Makefile Rules.make arch drivers gcc_version.inc include scripts
++ realpath .
+ make -C /usr/src/linux-2.4.26-std-up
SUBDIRS=/home/john/RPM/BUILD/kernel-source-zaptel-1.0/zaptel modules
make: Entering directory `/usr/src/linux-2.4.26-std-up'
make -C /home/john/RPM/BUILD/kernel-source-zaptel-1.0/zaptel
CFLAGS="-D__KERNEL__ -I/usr/src/linux-2.4.26-std-up/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i586
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.26-std-up/include/linux/modversions.h"
MAKING_MODULES=1 modules
make[1]: Entering directory
`/home/john/RPM/BUILD/kernel-source-zaptel-1.0/zaptel'
make[1]: *** No rule to make target `modules'. Stop.
Т.е. первоначально в %_usrsrc/linux-%kversion-%flavour оказывается то,
что нужно, но следующий make все портит. Откуда он берется? Наверное, из
/usr/src/linux-2.4.26-std-up/Makefile, в котором цель modules описана так:
modules: $(patsubst %, _mod_%, $(SUBDIRS))
$(MAKE) -C $(patsubst _mod_%, %, $@) CFLAGS="$(CFLAGS)
$(MODFLAGS)" MAKING_MODULES=1 modules
Что править?
--
С уважением, Прокопьев Евгений
next prev parent reply other threads:[~2005-12-06 12:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-06 10:52 [Comm] Cборка модулей для ядра в ALM24 Eugene Prokopiev
2005-12-06 11:25 ` Maxim Bodyansky
2005-12-06 12:19 ` Eugene Prokopiev [this message]
2005-12-06 12:47 ` [Comm] zaptel : sisyphus -> alm24 Eugene Prokopiev
2005-12-06 14:23 ` Eugene Prokopiev
2005-12-06 13:07 ` Sergey Vlasov
2005-12-06 13:14 ` Maxim Bodyansky
2005-12-06 13:43 ` Eugene Prokopiev
2005-12-06 14:50 ` Maxim Bodyansky
2005-12-07 6:20 ` Eugene Prokopiev
2005-12-07 10:03 ` Maxim Bodyansky
2005-12-07 14:12 ` Eugene Prokopiev
2005-12-07 3:03 ` Evgenii Terechkov
2005-12-06 13:41 ` Eugene Prokopiev
2005-12-06 13:45 ` Eugene Prokopiev
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=439581CF.2090405@stc.donpac.ru \
--to=prokopiev@stc.donpac.ru \
--cc=community@lists.altlinux.org \
/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 Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git