From: Yura Zotov <yznews@hotbox.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] Свежее ядро
Date: Fri Mar 1 18:10:15 2002
Message-ID: <20020301151758.GA8780@home-pool4-65.com2com.ru> (raw)
In-Reply-To: <813775207.20020301180059@pub.tmb.ru>
On Fri, Mar 01, 2002 at 06:00:59PM +0300, Alexandre Prokoudine wrote:
> Привет всем!
>
> только что вернулся из дружественного Инет-кафе с сабжем на болванке.
> Поскольку никогда не собирал ядро из source.rpm, ткните, пожалуйста, в
> доку, в которой написано, чего и как именно с файлом делать.
>
> rpm --rebuild
>
> я, конечно, смогу сделать. Но ежели какие хитрые ключики нужны ...
> В общем, подскажите док, плиз!
>
Берем kernel*.src.rpm. Делаем rpm -i, потом редактируем spec на
предмет нужных/ненужных опций сборки. Например у меня вот так:
%define BUILD_CUSTOM 1
%define BUILD_BOOT 0
%define BUILD_SECURE_SMP 0
%define BUILD_SECURE_UP 0
%define BUILD_RSBAC_SMP 0
%define BUILD_RSBAC_UP 0
%define BUILD_SMP 0
%define BUILD_UP 0
# Build kernel-pcmcia-cs packages from pcmcia-cs
%define BUILD_PCMCIACS 0
# Build drm from XFree86 sources
%define BUILD_DRM 0
%define BUILD_DRM_SIS 0
# Define it to build old alsa drivers (0.5.x)
%define BUILD_OLD_ALSA 0
# Define it to apply preemtible patch
%define BUILD_PREEMPT 0
# What kernel-related packages to be built.
%define BUILD_HEADERS 1
%define BUILD_SOURCE 1
%define BUILD_DOCS 1
# Custom kernel parameters.
%define CUSTOM custom-2
%define BUILD_CUSTOM_PCMCIA 0
%define BUILD_CUSTOM_ALSA 1
%define BUILD_CUSTOM_DRM 0
%define BUILD_CUSTOM_DXR2 0
Важные параметры BUILD_CUSTOM и CUSTOM.
Далее rpm -bp kernel-2.4.spec
cd ../BUILD/linux
cp ../SOURCES/kernel-2.4.18-i686-up.config .config
make menuconfig
Настраиваем как надо. Потом настройку сохраняем в файл
../SOURCES/kernel-2.4.18-i686-custom-2.config
custom-2 это то, что определено в CUSTOM в spec-файле.
cd ../SPEC
rpm -ba --target i686 kernel-2.4.spec
cd ../RPMS/i686
rpm -i kernel24*
Примерно так.
--
Юрий А. Зотов
next prev parent reply other threads:[~2002-03-01 18:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-03-01 17:48 Alexandre Prokoudine
2002-03-01 18:10 ` Yura Zotov [this message]
2002-03-01 18:12 ` cornet
2002-03-01 20:27 ` [mdk-re] Re[2]: " Alexandre Prokoudine
2002-03-04 21:55 ` Konstantin Volckov
2002-03-05 13:37 ` Re[2]: [mdk-re] Re[2]: [mdk-re] ó×ÅÖÅÅ ÑÄÒÏ Serge Skorokhodov
2002-03-01 18:12 ` [mdk-re] Re: [mdk-re] Свежее ядро Oleg Lukashin
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=20020301151758.GA8780@home-pool4-65.com2com.ru \
--to=yznews@hotbox.ru \
--cc=mandrake-russian@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 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