public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* 2.4.0-prerelease
@ 2000-12-31 22:38 J Sloan
  2001-01-01  0:16 ` 2.4.0-prerelease Tom Rini
  2001-01-01  4:59 ` [patch] 2.4.0-prerelease drm and modversions Keith Owens
  0 siblings, 2 replies; 5+ messages in thread
From: J Sloan @ 2000-12-31 22:38 UTC (permalink / raw)
  To: Kernel Mailing List

Looks good here in most respects, but still needs makefile fixes -

# modprobe tdfx
/lib/modules/2.4.0-prerelease/kernel/drivers/char/drm/tdfx.o: unresolved
symbol remap_page_range
/lib/modules/2.4.0-prerelease/kernel/drivers/char/drm/tdfx.o: unresolved
symbol __wake_up
/lib/modules/2.4.0-prerelease/kernel/drivers/char/drm/tdfx.o: unresolved
symbol mtrr_add
.... etc, etc

Of course, adding

#include <linux/modversions.h>

to drivers/char/drm/drmP.h makes it all work....

jjs



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [patch] 2.4.0-prerelease drm and modversions
@ 2001-01-01  7:35 Michael Elizabeth Chastain
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Elizabeth Chastain @ 2001-01-01  7:35 UTC (permalink / raw)
  To: jjs, kaos; +Cc: alan, dri-devel, linux-kernel, torvalds

Keith Owens writes:
kaos> drivers/char/drm/Makefile is breaking the Makefile rules.  It builds
kaos> drmlib.a and expects to link that library into both the kernel and into
kaos> modules.

Ah, shit.

kaos> The kernel makefile system assumes that everything is either kernel or
kaos> module, not both.  The components in drmlib.a get compiled for kernel
kaos> only, when used in a module they are missing the symbol versions.

I agree with Keith.

The kernel version is going to get compiled, and then the module version is
going to get compiled with different compilation flags: -DMODULE.  The two
versions are always going to fight.

kaos> +$(patsubst %.o,%.c,$(lib-objs-mod)): 
kaos> +	@ln -sf $(subst -mod,,$@) $@
kaos> +

This looks good to me.  It's missing a dependency though.  If foo-mod.c
exists, and someone edits or patches foo.c, then foo-mod.c needs to be
re-created.

Keith, what do you think of this:

  source-objs-mod := $(patsubst %-mod.o,%-mod.c,$(lib-objs-mod))
  $(source-objs-mod): $(patsubst %-mod.c,%.c,$(source-objs-mod))
    ln -sf $(patsubst %-mod.c,%.c,$@) $@

It suffers from the thundering herd problem (each *-mod.c depend on
all *.c files) but I think it's correct.

Michael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [patch] 2.4.0-prerelease drm and modversions
@ 2001-01-01  7:38 Michael Elizabeth Chastain
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Elizabeth Chastain @ 2001-01-01  7:38 UTC (permalink / raw)
  To: jjs, kaos, mec; +Cc: alan, dri-devel, linux-kernel, torvalds

mec> This looks good to me.  It's missing a dependency though.  If foo-mod.c
mec> exists, and someone edits or patches foo.c, then foo-mod.c needs to be
mec> re-created.

Doh.  It's a symlink, not a copy.  It never needs updating.

I'll go debug a Hangman program or something.

Michael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-01-01  8:10 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-12-31 22:38 2.4.0-prerelease J Sloan
2001-01-01  0:16 ` 2.4.0-prerelease Tom Rini
2001-01-01  4:59 ` [patch] 2.4.0-prerelease drm and modversions Keith Owens
  -- strict thread matches above, loose matches on Subject: below --
2001-01-01  7:35 Michael Elizabeth Chastain
2001-01-01  7:38 Michael Elizabeth Chastain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox