Masahiro Yamada
e9e81b6343
kbuild: disallow multi-word in M= or KBUILD_EXTMOD
...
$(firstword ...) in scripts/Makefile.modpost was added by commit
3f3fd3c055
("[PATCH] kbuild: allow multi-word $M in Makefile.modpost")
to build multiple external module directories.
It was a solution to resolve symbol dependencies when an external
module depends on another external module.
Commit 0d96fb20b7
("kbuild: Add new Kbuild variable
KBUILD_EXTRA_SYMBOLS") introduced another solution by passing symbol
info via KBUILD_EXTRA_SYMBOLS, then broke the multi-word M= support.
include $(if $(wildcard $(KBUILD_EXTMOD)/Kbuild), \
$(KBUILD_EXTMOD)/Kbuild, $(KBUILD_EXTMOD)/Makefile)
... does not work if KBUILD_EXTMOD contains multiple words.
This feature has been broken for more than a decade. Remove the
bitrotten code, and stop parsing if M or KBUILD_EXTMOD contains
multiple words.
As Documentation/kbuild/modules.rst explains, if your module depends
on another one, there are two solutions:
- add a common top-level Kbuild file
- use KBUILD_EXTRA_SYMBOLS
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org >
2020-05-29 03:08:49 +09:00
..
2019-06-25 10:17:07 +02:00
2020-05-26 00:03:16 +09:00
2020-02-04 03:05:24 +00:00
2020-04-17 10:45:23 -05:00
2020-04-09 00:13:45 +09:00
2020-05-26 00:03:16 +09:00
2020-05-07 19:27:20 -07:00
2020-03-25 11:50:48 +01:00
2020-04-09 00:13:45 +09:00
2017-03-28 16:16:52 +02:00
2020-05-26 00:03:16 +09:00
2020-03-30 09:23:00 +09:00
2020-04-03 13:12:26 -07:00
2019-05-30 11:26:39 -07:00
2020-03-25 11:50:48 +01:00
2020-03-03 20:49:21 +09:00
2019-05-24 17:27:11 +02:00
2018-07-18 01:18:05 +09:00
2018-12-28 12:11:44 -08:00
2019-06-05 17:37:11 +02:00
2020-03-13 20:53:40 +01:00
2018-06-28 13:36:39 +09:00
2017-11-02 11:10:55 +01:00
2020-02-25 03:35:16 -07:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:39 -07:00
2020-04-21 11:11:55 -07:00
2020-05-26 00:03:16 +09:00
2019-02-19 21:27:53 +01:00
2017-11-02 11:10:55 +01:00
2019-03-04 22:34:54 +09:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-08-14 08:58:56 +09:00
2020-04-23 01:10:16 +09:00
2016-10-11 15:06:30 -07:00
2019-07-12 11:05:41 -07:00
2020-05-07 19:27:20 -07:00
2018-09-09 09:14:07 +09:00
2017-11-02 11:10:55 +01:00
2020-04-15 15:13:13 -06:00
2020-03-17 08:59:03 +09:00
2019-06-05 17:37:07 +02: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
2019-06-05 17:37:10 +02:00
2018-11-18 10:15:09 -08:00
2018-03-26 02:01:24 +09:00
2020-01-27 14:25:06 -07:00
2019-01-06 09:46:51 +09:00
2017-11-02 11:10:55 +01:00
2020-04-09 00:13:45 +09:00
2019-03-04 22:35:04 +09:00
2018-06-08 18:56:00 +09:00
2018-06-25 23:21:13 +09:00
2020-03-03 20:49:21 +09:00
2019-07-27 12:18:19 +09:00
2018-12-01 23:13:14 +09:00
2019-06-21 16:58:37 +02:00
2019-05-24 17:36:45 +02:00
2020-02-21 11:22:15 -08:00
2019-05-30 11:26:39 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-05-26 00:03:16 +09:00
2016-02-26 15:30:20 +00:00
2019-11-22 10:35:18 -07:00
2020-05-04 09:16:37 -07:00
2020-05-12 13:28:33 +09:00
2020-04-09 00:13:45 +09:00
2020-04-15 14:58:12 -06:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:39 -07:00
2017-11-02 11:10:55 +01:00
2020-03-19 12:32:38 +01:00
2020-04-09 00:13:45 +09:00
2019-03-17 12:56:32 +09:00
2020-05-26 00:03:16 +09:00
2020-05-17 18:52:01 +09:00
2020-03-25 10:19:43 +09:00
2020-04-09 00:13:45 +09:00
2019-03-04 09:29:41 -08:00
2019-11-15 00:23:10 +09:00
2020-05-12 13:28:33 +09:00
2019-08-15 13:24:04 +01:00
2019-05-21 10:50:46 +02:00
2020-05-26 00:03:16 +09:00
2019-08-22 01:14:11 +09:00
2019-07-17 22:39:27 +09:00
2020-05-29 03:08:49 +09:00
2019-07-17 22:39:27 +09:00
2019-11-11 20:10:01 +09:00
2020-04-07 10:43:44 -07:00
2020-05-17 18:52:01 +09:00
2017-11-02 11:10:55 +01:00
2019-06-05 17:37:10 +02:00
2020-05-12 13:28:33 +09:00
2019-08-29 23:54:29 +09: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
2020-05-26 00:03:16 +09:00
2019-10-05 15:29:49 +09:00
2019-11-11 20:10:01 +09:00
2019-05-30 11:29:23 -07:00
2020-03-26 15:08:27 -07: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
2020-01-19 16:08:25 +00:00
2019-10-12 20:49:33 -04:00
2019-05-30 11:26:39 -07:00
2019-11-11 20:10:01 +09:00
2019-06-05 17:37:17 +02:00
2017-02-10 12:43:47 +11:00
2019-12-13 10:47:58 +01:00
2019-12-13 10:47:58 +01:00
2018-12-28 12:11:44 -08:00
2019-06-01 15:51:31 -07:00
2020-04-02 09:35:25 -07:00
2020-03-02 13:08:11 -07:00
2018-05-04 06:21:06 -04:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-09-05 08:12:09 -06:00
2019-07-11 00:05:09 +09:00
2019-11-13 10:52:05 +00:00
2018-11-30 14:45:01 -08:00
2020-02-10 13:35:15 -08:00
2017-11-02 11:10:55 +01:00