ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Shrek <shrek@progroup.ru>
To: community@altlinux.ru
Subject: Re: [Comm]  Перекомпиляция ядра
Date: Sat, 28 Jun 2003 11:26:20 +0400
Message-ID: <3EFD431C.3060204@progroup.ru> (raw)
In-Reply-To: <200306281136.41227.gleb@asd.iao.ru>

> Коли не знаешь / не любишь (а кому он нравится?) формата мэйк, ну откажись от 
> него. Или вручную собирай, или задействуй scons вместо make-а.
> 
> Пишешь Sconstruct файл типа:
> 
> SOURCES = ["pwc-ctrl.c", "pwc-if.c", "pwc-misc.c", "pwc-uncompress.c"]
> kerneldir = "/usr/src/kernel-2.4.20/"
> 
> defines = ["-D__LINUX__", "-D__KERNEL__", " -DMODULE", "-Wall"]
> optimflg = "-O2"
> debugflg = "-g"
> 
> if debug:
>                   defines.append(debugflg)
> if optimize:
>                   defines.append(optimflg)
> 
> env = Environment(CCFLAGS = defines, CPPPATH=kerneldir+"/include")
> 
> env.StaticObject(target = 'pwc.o', source = SOURCES)
> 
> И запускаешь на компиляцию
> scons optimize=1 .
> 
> исходники и .h можно править, как обычно -- вручную в майк (SConstruct) файле, 
> прописываать зависимости не нужно, они будут отслежены автоматически.
> 

Спасибо, попробую


      reply	other threads:[~2003-06-28  7:26 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-26 13:08 Shrek
2003-06-26  9:22 ` Maxim.Savrilov
2003-06-26 14:57   ` Shrek
2003-06-26 17:47     ` Re[2]: " ASA
2003-06-27  9:56       ` Shrek
2003-06-27 14:21         ` Re[2]: " ASA
2003-06-27 18:39             ` ASA
2003-06-27 19:28               ` Shrek
2003-06-28  3:42                 ` Re[2]: " ASA
2003-06-28  7:25                   ` Shrek
2003-06-28 17:11                       ` [Comm] ðÅÒÅËÏÍÐÉÌÑÃÉÑ ÑÄÒÁ Ed V. Bartosh
2003-06-28 18:39                       ` [Comm] Перекомпиляция ядра Shrek
2003-06-28 17:36             ` Gleb Kulikov
2003-06-28  7:26               ` Shrek [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=3EFD431C.3060204@progroup.ru \
    --to=shrek@progroup.ru \
    --cc=community@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