All of lore.kernel.org
 help / color / mirror / Atom feed
From: Software Team <software-team@wp.pl>
To: bridge@lists.osdl.org
Subject: [Bridge] i need some help with compiling bridge module
Date: Mon, 01 Mar 2004 19:45:16 +0100	[thread overview]
Message-ID: <404384BC.2010402@wp.pl> (raw)

On ?, 2004-03-01 at 10:31, Software-team wrote:
 > I am trying to improve bridge module towards 802.1w (RSTP) but I am 
new to kernel and modules programming. I dont want to compile the whole 
modules every time I make some changes. Could you give me some clues how 
to set up environment to compile only selected module (bridge 802.1d) 
for a given kernel version, written in Makefile like:
 > VERSION = 2
 > PATCHLEVEL = 4
 > SUBLEVEL = 20
 > EXTRAVERSION =-8 etc.
 > How to make a Makefile so the bridge module could be compiled 
separately for that kernel (or another)?
 > Thanks for any specyfic help.

It's pretty easy. do make menuconfig, and under Networking Options put
'M' where it says 802.1d Ethernet Bridging.

Save your config, and then do make dep && make bzImage modules
modules_install
Move the /usr/src/linux/arch/i386/boot/bzImage to somewhere in /boot
(renaming it if you like), make the appropriate modification to
lilo.conf (and then rerun lilo) or change /boot/grub/grub.conf and
reboot. When it starts up again, just modprobe bridge.

I also found that I had to do make mrproper before I could get the
bridge module to load. In this case, make sure you save your .config
file to somewhere else first, or you'll lose it.

HTH.
-----------------------------------------------

Yes,
What you wrote is sure both right, and simple. But it takes a lot of 
time. But that is not what I want. I want to compile a bridge module 
separately, like you compile some modules that come you add later to 
your kernel (like i did for example with a NTFS module, which I 
downloaded and compilet separately from my kernel 2.4.20-8). I would 
like to do the same with Bridge module. I want to make some changes and 
compile it with kernel headers from my kernel. But I dont want to 
compile the whole kernel (ang go through that process you described) 
every time I make some minor changes to the module which uses the same 
kernel header files. There should be some way to do it, I sure. But I 
dont know how:( I can bet this, because nobody would write kernel if he 
should compile it every time one makes some change. This would take ages 
to finish the project.
Still hoping for an answer.

Software Team


             reply	other threads:[~2004-03-01 18:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-01 18:45 Software Team [this message]
     [not found] <200402282000.i1SK06E28411@mail.osdl.org>
2004-03-01 16:31 ` [Bridge] i need some help with compiling bridge module Software-team
2004-03-01 17:40   ` Stuart Luppescu

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=404384BC.2010402@wp.pl \
    --to=software-team@wp.pl \
    --cc=bridge@lists.osdl.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.