linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RGC PATCH 0/2] split file2alias using elf sections
@ 2011-11-04 12:23 Alessandro Rubini
  2011-11-04 12:23 ` [RFC PATCH 1/2] modpost: use table-lookup to build module aliases Alessandro Rubini
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Alessandro Rubini @ 2011-11-04 12:23 UTC (permalink / raw)
  To: linux-kernel; +Cc: siglesia, manohar.vanga

When adding a new bus type with autoloading of modules, people should
always change the global scripts/mod/file2alias.c source file, whereas
most of the new code is just new files and individual Makefile/Kconfig
lines.

The first patch turns all the "normal" alias generation in a
table-driven loop. The second patch moves a few alias types out of the
main file2alias.c source, as a demonstration that the thing works.

I didn't move all bus/alias types out of the main file, as it's a huge
work. But if the approach is going to be accepted I can do that (or
happily leave the task to who volunteers).

/alessandro

Alessandro Rubini (2):
  modpost: use table-lookup to build module aliases
  modpost: use config and ELF sections to build file2alias

 scripts/mod/Makefile        |   13 ++-
 scripts/mod/alias_acpi.c    |   14 ++
 scripts/mod/alias_bcma.c    |   25 ++++
 scripts/mod/alias_pci.c     |   49 +++++++
 scripts/mod/alias_spi.c     |   15 +++
 scripts/mod/device_switch.h |   47 +++++++
 scripts/mod/file2alias.c    |  294 ++++++++-----------------------------------
 scripts/mod/modpost.h       |   18 +++
 scripts/mod/modpost.lds     |    9 ++
 9 files changed, 243 insertions(+), 241 deletions(-)
 create mode 100644 scripts/mod/alias_acpi.c
 create mode 100644 scripts/mod/alias_bcma.c
 create mode 100644 scripts/mod/alias_pci.c
 create mode 100644 scripts/mod/alias_spi.c
 create mode 100644 scripts/mod/device_switch.h
 create mode 100644 scripts/mod/modpost.lds

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

end of thread, other threads:[~2011-12-01  0:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-04 12:23 [RGC PATCH 0/2] split file2alias using elf sections Alessandro Rubini
2011-11-04 12:23 ` [RFC PATCH 1/2] modpost: use table-lookup to build module aliases Alessandro Rubini
2011-11-04 12:23 ` [RFC PATCH 2/2] modpost: use config and ELF sections to build file2alias Alessandro Rubini
2011-11-23 16:28   ` Dave Martin
2011-11-23 16:54     ` Alessandro Rubini
2011-11-23 17:14       ` Dave Martin
2011-11-22 19:23 ` [RGC PATCH 0/2] split file2alias using elf sections Greg KH
2011-11-22 19:56   ` Alessandro Rubini
2011-11-30  5:09   ` Rusty Russell
2011-12-01  0:53     ` Alessandro Rubini

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).