remarkable-linux/scripts
Ustyugov Roman f83b5e323f kbuild: set correct KBUILD_MODNAME when using well known kernel symbols as module names
This patch fixes a problem when we use well known kernel symbols as module
names.

For example, if module source name is current.c, idle_stack.c or etc.,
we have a bad KBUILD_MODNAME value.
For example, KBUILD_MODNAME will be "get_current()" instead of "current", or
"(init_thread_union.stack)" instead of "idle_task".

The trick is to define a stringify macro on the commandline - named
KBUILD_STR for namespace reasons - and then to stringify the module
name.

There are a few uses of KBUILD_MODNAME throughout the tree but the usage
is for debug and will not be harmed by this change so left untouched for now.

While at it KBUILD_BASENAME was changed too. Any spinlock usage in the
unix module would have created wrong section names without it.
Usage in spinlock.h fixed so it no longer stringify KBUILD_BASENAME.

Original patch from Ustyogov Roman - all bugs introduced by me.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2005-12-26 00:33:41 +01:00
..
basic kbuild: escape '#' in .target.cmd files 2005-12-25 23:21:14 +01:00
genksyms
kconfig kconfig: move lxdialog to scripts/kconfig/lxdialog 2005-12-16 21:35:19 +01:00
ksymoops
mod kbuild: set correct KBUILD_MODNAME when using well known kernel symbols as module names 2005-12-26 00:33:41 +01:00
package [PATCH] kbuild: make help binrpm-pkg fix 2005-07-21 21:45:47 +00:00
.gitignore Add some basic .gitignore files 2005-10-18 08:26:15 -07:00
bin2c.c
binoffset.c
checkconfig.pl
checkincludes.pl
checkstack.pl
checkversion.pl
conmakehash.c [PATCH] kbuild: signed char fixes for scripts 2005-07-27 22:27:08 +02:00
extract-ikconfig
gcc-version.sh
gen_initramfs_list.sh
kallsyms.c [PATCH] Strip local symbols from kallsyms 2005-09-07 16:57:20 -07:00
Kbuild.include kbuild: add objectify 2005-09-10 21:02:11 +02:00
kernel-doc [PATCH] DocBook: allow to mark structure members private 2005-11-13 18:14:21 -08:00
Lindent [PATCH] Lindent: ignore .indent.pro 2005-07-13 23:09:16 +00:00
Makefile kconfig: move lxdialog to scripts/kconfig/lxdialog 2005-12-16 21:35:19 +01:00
Makefile.build kbuild: fix building external modules 2005-07-27 22:11:01 +02:00
Makefile.clean kbuild: fix building external modules 2005-07-27 22:11:01 +02:00
Makefile.host [PATCH] kbuild: obey HOSTLOADLIBES_programname for single-file compilation 2005-07-13 22:11:14 +00:00
Makefile.lib kbuild: set correct KBUILD_MODNAME when using well known kernel symbols as module names 2005-12-26 00:33:41 +01:00
Makefile.modinst kbuild: introduce Kbuild.include 2005-07-25 20:10:36 +00:00
Makefile.modpost kbuild: introduce Kbuild.include 2005-07-25 20:10:36 +00:00
makelst
mkcompile_h kbuild: "PREEMPT" in UTS_VERSION 2005-07-14 20:18:07 +00:00
mkmakefile
mksysmap
mkuboot.sh
mkversion
namespace.pl
patch-kernel
pnmtologo.c
reference_discarded.pl [PATCH] kbuild: ignore all debugging info sections in scripts/reference_discarded.pl 2005-09-10 15:09:02 +02:00
reference_init.pl buildcheck: reduce DEBUG_INFO noise from reference* scripts 2005-07-14 20:14:42 +00:00
setlocalversion [PATCH] kbuild: automatically append a short string to the version based upon the git commit 2005-08-10 21:11:23 +02:00
show_delta
ver_linux [PATCH] Adapt scripts/ver_linux to new util-linux version strings 2005-09-07 16:57:33 -07:00