* [PATCH] kbuild: disable header exports for UML in a straightforward way
@ 2022-09-01 1:12 Masahiro Yamada
2022-09-01 6:00 ` Richard Weinberger
0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2022-09-01 1:12 UTC (permalink / raw)
To: linux-kbuild
Cc: Masahiro Yamada, Michal Marek, Nick Desaulniers, Randy Dunlap,
Richard Weinberger, linux-kernel
Previously 'make ARCH=um headers' stopped because of missing
arch/um/include/uapi/asm/Kbuild.
The error is not shown since commit ed102bf2afed ("um: Fix W=1
missing-include-dirs warnings") because UML got
arch/um/include/uapi/asm/Kbuild.
Hard-code the unsupported architecture, so it works like before.
Fixes: ed102bf2afed ("um: Fix W=1 missing-include-dirs warnings")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
Makefile | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 9d40255d1557..8d2047a4de9b 100644
--- a/Makefile
+++ b/Makefile
@@ -1304,8 +1304,7 @@ hdr-inst := -f $(srctree)/scripts/Makefile.headersinst obj
PHONY += headers
headers: $(version_h) scripts_unifdef uapi-asm-generic archheaders archscripts
- $(if $(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/Kbuild),, \
- $(error Headers not exportable for the $(SRCARCH) architecture))
+ $(if $(filter um, $(SRCARCH)), $(error Headers not exportable for UML))
$(Q)$(MAKE) $(hdr-inst)=include/uapi
$(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kbuild: disable header exports for UML in a straightforward way
2022-09-01 1:12 [PATCH] kbuild: disable header exports for UML in a straightforward way Masahiro Yamada
@ 2022-09-01 6:00 ` Richard Weinberger
0 siblings, 0 replies; 2+ messages in thread
From: Richard Weinberger @ 2022-09-01 6:00 UTC (permalink / raw)
To: masahiroy
Cc: linux-kbuild, Michal Marek, Nick Desaulniers, Randy Dunlap, linux-kernel
----- Ursprüngliche Mail -----
> Von: "masahiroy" <masahiroy@kernel.org>
> An: "linux-kbuild" <linux-kbuild@vger.kernel.org>
> CC: "masahiroy" <masahiroy@kernel.org>, "Michal Marek" <michal.lkml@markovi.net>, "Nick Desaulniers"
> <ndesaulniers@google.com>, "Randy Dunlap" <rdunlap@infradead.org>, "richard" <richard@nod.at>, "linux-kernel"
> <linux-kernel@vger.kernel.org>
> Gesendet: Donnerstag, 1. September 2022 03:12:52
> Betreff: [PATCH] kbuild: disable header exports for UML in a straightforward way
> Previously 'make ARCH=um headers' stopped because of missing
> arch/um/include/uapi/asm/Kbuild.
>
> The error is not shown since commit ed102bf2afed ("um: Fix W=1
> missing-include-dirs warnings") because UML got
> arch/um/include/uapi/asm/Kbuild.
>
> Hard-code the unsupported architecture, so it works like before.
>
> Fixes: ed102bf2afed ("um: Fix W=1 missing-include-dirs warnings")
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Richard Weinberger <richard@nod.at>
Thanks,
//richard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-09-01 6:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-01 1:12 [PATCH] kbuild: disable header exports for UML in a straightforward way Masahiro Yamada
2022-09-01 6:00 ` Richard Weinberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).