diff options
| author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-03-16 22:01:09 -0400 |
|---|---|---|
| committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-03-16 23:56:32 -0400 |
| commit | 037fc3368be46dc1a2a90f6e50c8cbce49d75fd6 (patch) | |
| tree | 2fdd8f1b803d33f27aff70391742d48f843b33b5 /scripts | |
| parent | 7cbbbb8bc2974264bbbf326d9a4552fc8878d375 (diff) | |
kbuild: force all architectures except um to include mandatory-y
Currently, every arch/*/include/uapi/asm/Kbuild explicitly includes
the common Kbuild.asm file. Factor out the duplicated include directives
to scripts/Makefile.asm-generic so that no architecture would opt out
of the mandatory-y mechanism.
um is not forced to include mandatory-y since it is a very exceptional
case which does not support UAPI.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Makefile.asm-generic | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/Makefile.asm-generic b/scripts/Makefile.asm-generic index c7d2b7acad26..82ad63dcd62b 100644 --- a/scripts/Makefile.asm-generic +++ b/scripts/Makefile.asm-generic | |||
| @@ -12,6 +12,11 @@ all: | |||
| 12 | src := $(subst /generated,,$(obj)) | 12 | src := $(subst /generated,,$(obj)) |
| 13 | -include $(src)/Kbuild | 13 | -include $(src)/Kbuild |
| 14 | 14 | ||
| 15 | # $(generic)/Kbuild lists mandatory-y. Exclude um since it is a special case. | ||
| 16 | ifneq ($(SRCARCH),um) | ||
| 17 | include $(generic)/Kbuild | ||
| 18 | endif | ||
| 19 | |||
| 15 | include scripts/Kbuild.include | 20 | include scripts/Kbuild.include |
| 16 | 21 | ||
| 17 | redundant := $(filter $(mandatory-y) $(generated-y), $(generic-y)) | 22 | redundant := $(filter $(mandatory-y) $(generated-y), $(generic-y)) |
