Masahiro Yamada
aeacb019b6
kbuild: define KBUILD_MODNAME even if multiple modules share objects
...
Currently, KBUILD_MODNAME is defined only when $(modname) contains
just one word. If an object is shared among multiple modules,
undefined KBUILD_MODNAME could cause a build error. For example,
if CONFIG_DYNAMIC_DEBUG is enabled, any call of printk() populates
.modname, then fails to build due to undefined KBUILD_MODNAME.
Take the following code as an example:
obj-m += foo.o
obj-m += bar.o
foo-objs := foo-bar-common.o foo-only.o
bar-objs := foo-bar-common.o bar-only.o
In this case, there is room for argument what to define for
KBUILD_MODNAME when foo-bar-common.o is being compiled.
"foo", "bar", or what else?
One idea is to define colon-separated modules that share the object,
in this case, "bar:foo" (modules are sorted alphabetically by
$(sort ...)).
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com >
Reviewed-by: Cao jin <caoj.fnst@cn.fujitsu.com >
2018-03-26 02:01:25 +09:00
..
2018-03-26 02:01:23 +09:00
2018-03-03 00:41:24 +09:00
2017-11-14 18:25:40 -08:00
2018-02-05 17:27:46 -08:00
2018-01-19 10:09:41 -08:00
2018-01-13 21:50:13 +09:00
2018-03-26 02:01:22 +09:00
2017-03-28 16:16:52 +02:00
2018-02-07 14:29:34 -08:00
2017-12-13 00:07:00 +09:00
2017-11-17 17:45:29 -08:00
2017-11-02 11:10:55 +01:00
2017-06-23 14:17:38 -06:00
2018-03-26 02:01:23 +09:00
2016-04-06 14:06:48 +01:00
2018-03-09 01:12:31 +09:00
2017-05-14 11:20:44 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-02-03 11:49:06 +01:00
2018-02-06 18:32:45 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-26 02:01:18 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-02 00:21:47 +09:00
2017-11-02 11:10:55 +01:00
2014-04-30 17:34:32 +02:00
2016-10-11 15:06:30 -07:00
2017-11-02 11:10:55 +01:00
2018-01-31 17:18:34 -08:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-10-12 11:07:42 -06:00
2017-05-14 11:20:44 +09:00
2017-05-14 11:20:44 +09:00
2015-09-25 16:31:45 +01:00
2015-04-15 14:01:12 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2011-08-31 16:12:17 +02:00
2017-12-14 16:00:48 -08:00
2018-03-26 02:01:24 +09:00
2017-10-23 08:01:37 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-26 02:01:18 +09:00
2017-05-14 11:20:44 +09:00
2017-11-17 16:10:01 -08:00
2012-06-27 12:44:29 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-03-26 02:01:18 +09:00
2017-11-02 11:10:55 +01:00
2016-02-26 15:30:20 +00:00
2018-03-02 09:20:56 +09:00
2018-03-26 02:01:23 +09:00
2018-01-01 12:49:07 -07:00
2017-11-02 11:10:55 +01:00
2017-11-14 09:29:27 +11:00
2017-11-02 11:10:55 +01:00
2018-03-26 02:01:24 +09:00
2017-11-02 11:10:55 +01:00
2017-11-17 17:45:29 -08:00
2018-03-26 02:01:19 +09:00
2017-11-02 11:10:55 +01:00
2017-11-14 18:25:40 -08:00
2018-01-18 09:37:53 +09:00
2017-11-02 11:10:55 +01:00
2017-11-17 17:45:29 -08:00
2017-11-17 17:45:29 -08:00
2018-02-06 18:32:47 -08:00
2017-11-17 16:10:04 -08:00
2018-03-26 02:01:25 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-17 17:45:29 -08:00
2017-11-02 11:10:55 +01:00
2018-02-06 18:32:46 -08:00
2017-11-02 11:10:55 +01:00
2017-05-14 11:20:44 +09:00
2017-11-17 17:45:29 -08:00
2017-11-02 11:10:55 +01:00
2015-06-23 13:35:47 +09:00
2017-11-02 11:10:55 +01:00
2017-03-13 09:40:28 -07:00
2018-03-26 02:01:19 +09:00
2017-03-11 11:13:38 +09:00
2017-11-17 16:10:01 -08:00
2017-11-02 11:10:55 +01:00
2014-06-10 00:04:06 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-03-24 20:51:49 -04:00
2015-11-03 10:45:26 -05:00
2017-05-14 11:20:44 +09:00
2017-11-02 11:10:55 +01:00
2014-06-10 00:04:06 +02:00
2017-02-10 12:43:47 +11:00
2016-11-14 11:11:51 +11:00
2014-10-14 02:18:23 +02:00
2017-11-17 16:10:00 -08:00
2017-09-08 10:02:55 -06:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-31 17:18:34 -08:00
2011-01-22 15:50:59 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2014-08-20 16:03:45 +02:00