aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-07-22 02:18:57 +0900
committerRichard Weinberger <richard@nod.at>2023-08-26 22:41:34 +0200
commit8f85f93bfd2d490251143577bd43b01b40acb8d7 (patch)
tree2e05377f2e6903d9ab55b9be4467c7b9efae6426
parentd32df1080f0199f3570a541fcfcf9b5974b771db (diff)
downloadlinux-8f85f93bfd2d490251143577bd43b01b40acb8d7.tar.gz
um: use obj-y to descend into arch/um/*/
The single build rule does not work with the core-y syntax. [1] Use the standard obj-y syntax. [1]: https://lore.kernel.org/linux-kbuild/d57ba55f-20a3-b836-783d-b49c8a161b6e@kernel.org/T/#m7bc402e1e038f00ebcf2e92ed7fcb8a52fc1ea44 Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Tested-by: Jiri Slaby <jirislaby@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com> Tested-by: Nick Desaulniers <ndesaulniers@google.com> Signed-off-by: Richard Weinberger <richard@nod.at>
-rw-r--r--arch/um/Kbuild2
-rw-r--r--arch/um/Makefile4
2 files changed, 2 insertions, 4 deletions
diff --git a/arch/um/Kbuild b/arch/um/Kbuild
index a4e40e534e6a8..6cf0c1e5927b2 100644
--- a/arch/um/Kbuild
+++ b/arch/um/Kbuild
@@ -1 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
+
+obj-y += kernel/ drivers/ os-Linux/
diff --git a/arch/um/Makefile b/arch/um/Makefile
index 1735a562453db..82f05f2506348 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -22,10 +22,6 @@ ARCH_DIR := arch/um
# features.
SHELL := /bin/bash
-core-y += $(ARCH_DIR)/kernel/ \
- $(ARCH_DIR)/drivers/ \
- $(ARCH_DIR)/os-Linux/
-
MODE_INCLUDE += -I$(srctree)/$(ARCH_DIR)/include/shared/skas
HEADER_ARCH := $(SUBARCH)