Skip to content

Commit 1b620d5

Browse files
committed
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 ed102bf ("um: Fix W=1 missing-include-dirs warnings") added arch/um/include/uapi/asm/Kbuild. Hard-code the unsupported architecture, so it works like before. Fixes: ed102bf ("um: Fix W=1 missing-include-dirs warnings") Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Richard Weinberger <richard@nod.at>
1 parent c11efc5 commit 1b620d5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,8 +1287,7 @@ hdr-inst := -f $(srctree)/scripts/Makefile.headersinst obj
12871287

12881288
PHONY += headers
12891289
headers: $(version_h) scripts_unifdef uapi-asm-generic archheaders archscripts
1290-
$(if $(wildcard $(srctree)/arch/$(SRCARCH)/include/uapi/asm/Kbuild),, \
1291-
$(error Headers not exportable for the $(SRCARCH) architecture))
1290+
$(if $(filter um, $(SRCARCH)), $(error Headers not exportable for UML))
12921291
$(Q)$(MAKE) $(hdr-inst)=include/uapi
12931292
$(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi
12941293

0 commit comments

Comments
 (0)