um: use obj-y to descend into arch/um/*/
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 21 Jul 2023 17:18:57 +0000 (02:18 +0900)
committerRichard Weinberger <richard@nod.at>
Sat, 26 Aug 2023 20:41:34 +0000 (22:41 +0200)
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>
arch/um/Kbuild
arch/um/Makefile

index a4e40e5..6cf0c1e 100644 (file)
@@ -1 +1,3 @@
 # SPDX-License-Identifier: GPL-2.0-only
+
+obj-y += kernel/ drivers/ os-Linux/
index 1735a56..82f05f2 100644 (file)
@@ -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)