ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: "Dmitry V. Levin" <ldv@fandra.org>
To: devel@linux.iplabs.ru
Subject: Re: [devel] kernel headers
Date: Tue, 9 Jan 2001 03:33:30 +0300
Message-ID: <20010109033330.C13200@LDV.fandra.org> (raw)
In-Reply-To: <3A59D3C1.2070903@lintec.minsk.by>; from svd@ns1.lintec.minsk.by on Mon, Jan 08, 2001 at 04:50:41PM +0200

[-- Attachment #1: Type: text/plain, Size: 1840 bytes --]

On Mon, Jan 08, 2001 at 04:50:41PM +0200, Sviatoslav Sviridov wrote:
> Захотел я установить custom-kernel "по правилам" - собрать .rpm и из 
> него поставить ядро...
> Вылезли неприятности с
> <linux/autoconf.h>
> <linux/modversions.h>
> <linux/version.h>
> /boot/kernel.h
> В <linux/*.h> вроде как есть намётки на поддержку custom-ядра, но это 
> никак не согласовано ни с /boot/kernel.h, ни c kernel-*.spec...
> Да и /etc/init.d/kheader не очень хорошо разбирает какое ядро загружено...
> В моём случае:
> За основу конфига брал ...-secure.config, поэтому свой вариант обозвал 
> secure1svd. При установке правильно создались 
> {autoconf,modversions,version}-secure1svd.h...
> Но! kheader определяет загруженное ядро как "secure". Соответственно 
> ничего из {autoconf,modversions,version}.h не работает :(
> 
> Я попытался исправить эту ситуацию следующим образом: см. attachments
> Здесь столкнулся с такой проблемой: пришлось непосредственно перед 
> #include делать "#undef linux", а потом восстанавливать. В противно 
> случае "linux" заменяется на "1"... Это можно как-нить по-другому обойти?
> Другой вариант - можно необходимые инклуды для 
> {autoconf,modversions,version} генерить из kheader так же как и 
> /boot/kernel.h
> Что лучше?

Автоматическое создание /etc/init.d/kheader и 3-ех вспомогательных файлов
linux/*.h согласно spec-файлу у меня в TODO для 2.2.18-ipl2mdk.


Regards,
	Dmitry

+-------------------------------------------------------------------------+
Dmitry V. Levin     mailto://ldv@fandra.org
Software Engineer   PGP pubkey http://www.fandra.org/users/ldv/pgpkeys.html
IPLabs Linux Team   http://linux.iplabs.ru
Fandra Project      http://www.fandra.org
+-------------------------------------------------------------------------+
UNIX is user friendly. It's just very selective about who its friends are.

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

      reply	other threads:[~2001-01-09  0:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-08 14:50 Sviatoslav Sviridov
2001-01-09  0:33 ` Dmitry V. Levin [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=20010109033330.C13200@LDV.fandra.org \
    --to=ldv@fandra.org \
    --cc=devel@linux.iplabs.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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git