[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <cover.1320408578.git.rubini@gnudd.com>
Date: Fri, 4 Nov 2011 13:23:00 +0100
From: Alessandro Rubini <rubini@...dd.com>
To: linux-kernel@...r.kernel.org
Cc: siglesia@...n.ch, manohar.vanga@...n.ch
Subject: [RGC PATCH 0/2] split file2alias using elf sections
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists