From: Igor Solovyov <is13@inbox.ru>
To: sisyphus@altlinux.ru
Subject: Re: [sisyphus] компиляция ядра из src.rpm
Date: Wed, 4 Jul 2001 19:04:13 +0600
Message-ID: <20010704190413.25f2dc5f.is13@inbox.ru> (raw)
In-Reply-To: <01070416455100.01663@avl.mgu-home.ru>
[-- Attachment #1: Type: text/plain, Size: 2392 bytes --]
Hi!
On Wed, 4 Jul 2001 16:45:51 +0400
Alexey V Lubimov <info@atmsk.ru> wrote:
> Догадался. :)
> А как народ собирает? Я всю жизнь из тарбола собирал, а вот
> здесь пока
> пасую... :(
В свое время Дмитрий Левин писал по этому поводу вот что (цитирую):
" Советую воспользоваться стандартной схемой:
0. Придумайте имя для custom-ядра. По умолчанию это будет "custom".
Не советую использовать стандартные имена, такие как up, smp, ...
1. В файле kernel-2.2.19.spec установите значение BUILD_CUSTOM в 1, все
остальные - в 0 (если Вам не нужно собирать стандартные ядра).
Установите значение CUSTOM в то имя ядра, которое Вы придумали.
3. Возьмите Ваш новый конфигурационный файл и положите его в
%_souredir/kernel-%kversion-%_arch-%CUSTOM.config
4. Соберите пакет, установите его, и пользуйтесь. "
А вот еще одно письмецо (к сожалению не сохранилось имя автора,
но надеюсь он не обидится), цитирую:
"
Рассказываю подробно, как только что сделал:
1. Сборка собственного ядра из src.rpm
а) rpm -i kernel-2.2.19-alt2.src.rpm
б) cd /usr/src/RPM/SPECS/
в) rpm -bp kernel-2.2.19.spec
г) cd ../BUILD
д) make (x, menu)config
е) cp .config ../SOURCES/kernel-2.2.19-myarch-MYKERNEL.config
ё) cd ../SPECS
ж) правим kernel-2.2.19.spec
------------------------------------------
# What kernel packages to be built.
%define BUILD_CUSTOM 1
%define BUILD_UP 0
%define BUILD_UP_SECURE 0
%define BUILD_SMP 0
%define BUILD_SMP_SECURE 0
%define BUILD_BOOT 0
# What kernel-related packages to be built.
%define BUILD_HEADERS 1
<skip>
# Custom kernel parameters.
%define CUSTOM MYKERNEL
<skip>
Release: MYRELEASE
<skip>
# Don't build headers, source and docs for custom-only build.
%if !%BUILD_UP&&!%BUILD_UP_SECURE&&!%BUILD_SMP&&!%BUILD_SMP_SECURE
%define BUILD_HEADERS 1
-------------------------------------------------
и) ln -s /usr/src/RPM/BUILD/linux /usr/src/linux
ln -s /usr/src/linux/include/linux /usr/include/linux
ln -s /usr/src/linux/include/asm /usr/include/asm
к) rpm -bs kernel-2.2.19.spec
л) cd ../SRPMS
rpm --rebuild kernel-2.2.19-MYRELEASE.src.rpm
м) cd ../RPMS/myarch
rpm -ivh kernel-2.2.19-MYKERNEL-myarch-MYRELEASE.rpm
kernel-headers-2.2.19-MYKERNEL-myarch-MYRELEASE.rpm
н) rm /usr/src/linux
ln -s /usr/src/kernel/ linux-2.2.19-MYRELEASE /usr/src/linux
2. reboot с новым ядром."
--
Best regards!
Igor Solovyov
Zlatoust, Russia
[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]
prev parent reply other threads:[~2001-07-04 13:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-04 9:59 Alexey V Lubimov
2001-07-04 12:22 ` Igor Solovyov
2001-07-04 12:45 ` Alexey V Lubimov
2001-07-04 13:04 ` Igor Solovyov [this message]
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=20010704190413.25f2dc5f.is13@inbox.ru \
--to=is13@inbox.ru \
--cc=sisyphus@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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git