* [Drbd-dev] drbd kernel module makefile
@ 2004-10-19 14:36 Philipp Hug
2004-10-19 21:02 ` Lars Ellenberg
0 siblings, 1 reply; 2+ messages in thread
From: Philipp Hug @ 2004-10-19 14:36 UTC (permalink / raw)
To: drbd-dev; +Cc: Cyril Bouthors, David Krovich
Is there a reason, why the drbd module Makefile calls "make module" from the
kernel-source instead of just compiling itself with the header files from
$(KDIR)/include?
this makes it quiet inconvient to use it with module-assistant (debian tool, to
build kernel-modules from their source packages) because you need to have the
complete source with correct config installed instead of just using the
kernel-header modules...
in debian you can just do the following:
m-a install cloop
philipp
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Drbd-dev] drbd kernel module makefile
2004-10-19 14:36 [Drbd-dev] drbd kernel module makefile Philipp Hug
@ 2004-10-19 21:02 ` Lars Ellenberg
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ellenberg @ 2004-10-19 21:02 UTC (permalink / raw)
To: drbd-dev
/ 2004-10-19 16:36:00 +0200
\ Philipp Hug:
> Is there a reason, why the drbd module Makefile calls "make module" from
> the kernel-source instead of just compiling itself with the header files
> from $(KDIR)/include?
because we want to be able to support as many kernel flavours and archs
as possible. this is the kernel way to do build external modules, see
Documentation/kbuild/modules.txt.
> this makes it quiet inconvient to use it with module-assistant (debian
> tool, to build kernel-modules from their source packages) because you need
> to have the complete source with correct config installed instead of just
> using the kernel-header modules...
drbd is just happy with (preconfigured) kernel-headers, or at least it
should be. to be able to build external modules against preconfigured
kernel-headers, they should of course include the Makefile and
neccessary scripts, with more recent 2.6 kernels even some more stuff.
but they do, typically, because if they don't, they are pointless.
[this works pretty well for me on a SuSE box]
> in debian you can just do the following:
> m-a install cloop
well, provided you have your (preconfigured) kernel headers in
$KERNEL_INCLUDES,
you with DRBD you can just do
make KDIR=$KERNEL_INCLUDES -C drbd
and it should just work.
I'm sure you can figure out how you do this the debian way.
lge
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-19 21:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-19 14:36 [Drbd-dev] drbd kernel module makefile Philipp Hug
2004-10-19 21:02 ` Lars Ellenberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox