linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Copying .config to /lib/modules/`uname -r`/kernel
@ 2003-10-24  8:26 Pavel Roskin
  2003-10-24 15:53 ` Muli Ben-Yehuda
  2003-10-24 21:27 ` dleonard
  0 siblings, 2 replies; 7+ messages in thread
From: Pavel Roskin @ 2003-10-24  8:26 UTC (permalink / raw)
  To: linux-kernel

Hello!

Many drivers are developed outside the kernel tree.  Many drivers start
their existence as separate projects.  It's essential that they are tested
by the users of particular hardware, even if those users don't want to
recompile their kernels.

There should be a standard place for .config in kernel packages.
/proc/config.gz may or may not be popular with distributors.  Besides, it
only gives information for the currently running kernel, but not for e.g.
newly upgraded kernel before the reboot.

Cannot we just install .config to the same directory as modules?  If the
kernel doesn't support modules, then there is no point to compile any new
modules against it.  But if it does, then we can be sure that the modules
correspond to that configuration file, because the modules and .config
would be installed by the same command.

That's why I prefer the "kernel" subdirectory.  It's fully replaced by
"make modules_install", so that the old .config will go away for sure.

Patch against 2.6.0-test8
=====================
--- Makefile
+++ Makefile
@@ -690,6 +690,7 @@
 	@rm -rf $(MODLIB)/kernel
 	@rm -f $(MODLIB)/build
 	@mkdir -p $(MODLIB)/kernel
+	@cp -f .config $(MODLIB)/kernel
 	@ln -s $(TOPDIR) $(MODLIB)/build
 	$(Q)$(MAKE) -rR -f $(srctree)/scripts/Makefile.modinst

=====================

-- 
Regards,
Pavel Roskin

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

end of thread, other threads:[~2003-10-24 21:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-24  8:26 Copying .config to /lib/modules/`uname -r`/kernel Pavel Roskin
2003-10-24 15:53 ` Muli Ben-Yehuda
2003-10-24 16:50   ` Pavel Roskin
2003-10-24 17:05     ` Arjan van de Ven
2003-10-24 18:29       ` Pavel Roskin
2003-10-24 21:27 ` dleonard
2003-10-24 21:58   ` Pavel Roskin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).