ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Evgeny Sinelnikov <sin@altlinux.org>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Сборка своего ядра
Date: Mon, 21 May 2018 02:32:32 +0400
Message-ID: <CAK42-GqxJMBfDeoWbWU=TWf7Fd7wtLUgO8kS_8HXDeSj8Bo9Dg@mail.gmail.com> (raw)
In-Reply-To: <6904091526835725@web38g.yandex.ru>

Здравствуйте,

Есть три сценария персборки ядра (как и любого другого пакета):
1) скачать последний src.rpm, установить от пользователя, доустановить
необходимые сборочные зависимости, изменить конфиг ядра и выполнить
rpm -ba package.spec, где package.spec - спек-файл пакета, который
обычно складывается в ~/RPM/SPECS.
2) cклонировать gear-репозиторий ядра, изменить конфиг ядра, и
выполнить (аналогично доустановив необходимые сборочные пакеты), в
склонированном каталоге, gear-rpm -ba --commit
3) также, как и во втором случае, склонировать, изменить конфиг ядра,
но выполнить gear-hsh --commit.

В последнем случае нужно сначала добавить себя в hasher-priv, командой
hasher-useradd MYUSERNAME и перелогиниться, чтобы применились группы.
При этом ничего лишнего в рабочую систему доустанавливать не нужно.
Пакет будет собираться в предварительно созданном сборочном окружении.

Лично я предпочитаю второй или третий. Первый у нас практикуется
только для автоматической пересборки.


Всё это общие механизмы для пересборки одного пакета. в данном случае
kernel-image-std-def. Дополнительная сложность с ядром заключается в
том, что ту же самую процедуру нужно провести и для всех необходимых
модулей - пакетов вида kernel-module-MODULENAME-std-def.

Всё это, наверное, непонятно или неочевидно из наших страниц на вики.
Давайте поправим так, чтобы было понятно. Честно говоря, я пока не
знаю с чего начать такие правки. Если есть идеи, давайте править.




20 мая 2018 г., 21:02 пользователь Трунин Константин
<ktrounin@yandex.ru> написал:
>
>
> 20.05.2018, 15:40, "Speccyfighter" <zxwarior@yandex.ru>:
>> Есть ли у нас где-то howto по сборке своего ядра с подробным детальным
>> описанием?
>
>
> К сожалению на AltWiki информации мало:
> Kernels и Kernel/build for dummies
>
> С уважением,
> Трунин Константин
>
> _______________________________________________
> community mailing list
> community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community



-- 
Sin (Sinelnikov Evgeny)

      parent reply	other threads:[~2018-05-20 22:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-20 12:40 Speccyfighter
2018-05-20 22:32   ` Evgeny Sinelnikov [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='CAK42-GqxJMBfDeoWbWU=TWf7Fd7wtLUgO8kS_8HXDeSj8Bo9Dg@mail.gmail.com' \
    --to=sin@altlinux.org \
    --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