ALT Linux kernel packages development
 help / color / mirror / Atom feed
From: Andrey Khavryuchenko <akhavr@kds.com.ua>
To: devel-kernel@altlinux.ru
Subject: [d-kernel] ÉÄÅÏÌÏÇÉÞÅÓËÉ ×ÅÒÎÁÑ ÓÂÏÒËÁ ÍÏÄÕÌÅÊ
Date: Tue, 16 Mar 2004 16:09:27 +0200
Message-ID: <m365d47ujs.fsf@netmaster.kds.com.ua> (raw)

Hi!

Подскажите, как у нас сейчас правильно собирать модули для ядра в отдельных
пакетах?

Вводная: 
Есть железяка Zyxel Prestige 630-11, которая поддерживается на
альфа-уровне соответствующим проектом на sf.net.  В его Makefile есть
следующее:

    ifeq ($(PATCHLEVEL), 4)
    	obj-y := $(xdslusb-module-objs) $(xdslusb-crc).o
    	obj-m	:= $(XDSLUSB-MODULE).o
    	O_TARGET := $(XDSLUSB-MODULE).o
    	include $(TOPDIR)/Rules.make
    else
    	obj-m := $(XDSLUSB-MODULE).o
    	$(XDSLUSB-MODULE)-objs := $(xdslusb-module-objs)
    endif

И отсылка на документацию:

    For kernel 2.6:
    http://lwn.net/Articles/21823/

    For kernel 2.2 and 2.4:

    If you have a local makefile with which you wish to build your module 
    not linked under the kernel tree in the proper way, you still can
    "ride" on the master Makefile.

    This way one can eliminate the dependency on your particular 
    machine kernel compilation options to be hardwired in the local Makefile.
    I.e., once you reconfigure the kernel, your driver will compile
    itself when you do a local "make" with the correct set of the new flags.

[...]

Задача: собрать и опакетить этот модуль в существующем виде.

Вопрос: как сейчас осуществляется сборка модулей _вне_ пакета с ядром?

Буду благодарен покажут соответствующий пакет, который можно попользовать в
качестве отправной точки.

-- 
Andrey V Khavryuchenko            http://www.kds.com.ua/
Silver Bullet Software Solutions  http://www.kds.com.ua/training/


             reply	other threads:[~2004-03-16 14:09 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-16 14:09 Andrey Khavryuchenko [this message]
2004-03-16 14:33 ` Denis Ovsienko
2004-03-16 15:17   ` [d-kernel] Re: IDEOLOGI^ESKI WERNAQ SBORKA MODULEJ Andrey Khavryuchenko
2004-03-16 15:41     ` Denis Ovsienko
2004-03-16 15:52       ` Andrey Khavryuchenko
2004-03-16 16:22 ` [d-kernel] ????????????? ?????? ?????? ??????? Sergey Vlasov
2004-03-16 16:31   ` [d-kernel] " Andrey Khavryuchenko
2004-03-16 17:24   ` Andrey Khavryuchenko
2004-03-16 17:39     ` Sergey Vlasov
2004-03-16 18:44       ` Andrey Khavryuchenko
2004-03-18  8:29 ` [d-kernel] ÉÄÅÏÌÏÇÉÞÅÓËÉ ×ÅÒÎÁÑ ÓÂÏÒËÁ ÍÏÄÕÌÅÊ Vitaly Lipatov
2004-03-18 11:03   ` [d-kernel] Re: IDEOLOGI^ESKI WERNAQ SBORKA MODULEJ Andrey Khavryuchenko
2004-03-18 15:15   ` Andrey Khavryuchenko
2004-03-19  9:25     ` Vitaly Lipatov
2004-03-19 10:40       ` Andrey Khavryuchenko
2004-03-19 13:09       ` Andrey Khavryuchenko

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=m365d47ujs.fsf@netmaster.kds.com.ua \
    --to=akhavr@kds.com.ua \
    --cc=devel-kernel@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 kernel packages development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/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-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
		devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
	public-inbox-index devel-kernel

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


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