From: Kees Cook
commit a5a319ec2c2236bb96d147c16196d2f1f3799301 upstream.
When HEADER_ARCH was introduced, the MRPROPER_FILES (then MRPROPER_DIRS)
list wasn't adjusted, leaving SUBARCH as part of the path argument.
This resulted in the "mrproper" target not cleaning up arch/x86/... when
SUBARCH
We rely on 'uname -s' returning 'Linux' because there are os-Linux/
directories, but no other os-*/.
Supporting a non-Linux host is unlikely to happen.
Let's hard-code 'Linux'.
Signed-off-by: Masahiro Yamada
---
(no changes since v1)
arch/um/Makefile | 7 +++
arch/x86/um/Makefile | 2
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-b49c8a161...@kernel.org/T/#m7bc402e1e038f00ebcf2e92ed7fcb8a52fc1ea44
Signed-off-by: Masahiro Yamada
---
Changes in v2:
- Rephase t
I like to use obj-y in as many places as possible.
Change the core-y to obj-y. It fixes the single build issue. [1]
[1]:
https://lore.kernel.org/linux-kbuild/d57ba55f-20a3-b836-783d-b49c8a161...@kernel.org/T/#m7bc402e1e038f00ebcf2e92ed7fcb8a52fc1ea44
Signed-off-by: Masahiro Yamada
---
arch/u
We rely on 'uname -s' returning 'Linux' as there are arch/um/os-Linux/
and arch/x86/um/os-Linux/, but no other os-*/ directories.
Supporting a non-Linux host is unlikely to happen.
Let's hard-code 'Linux'.
Signed-off-by: Masahiro Yamada
---
arch/um/Makefile | 7 +++
arch/x86/um/Makefi