Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

kbuild: implement CONFIG_HEADERS_INSTALL for Usermode Linux

userprogs sometimes need access to UAPI headers.
This is currently not possible for Usermode Linux, as UM is only
a pseudo architecture built on top of a regular architecture and does
not have its own UAPI.
Instead use the UAPI headers from the underlying regular architecture.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

authored by

Thomas Weißschuh and committed by
Masahiro Yamada
268d191a 700bd25b

+4 -2
+4 -1
Makefile
··· 1361 1361 1362 1362 PHONY += headers 1363 1363 headers: $(version_h) scripts_unifdef uapi-asm-generic archheaders archscripts 1364 - $(if $(filter um, $(SRCARCH)), $(error Headers not exportable for UML)) 1364 + ifdef HEADER_ARCH 1365 + $(Q)$(MAKE) -f $(srctree)/Makefile HEADER_ARCH= SRCARCH=$(HEADER_ARCH) headers 1366 + else 1365 1367 $(Q)$(MAKE) $(hdr-inst)=include/uapi 1366 1368 $(Q)$(MAKE) $(hdr-inst)=arch/$(SRCARCH)/include/uapi 1369 + endif 1367 1370 1368 1371 ifdef CONFIG_HEADERS_INSTALL 1369 1372 prepare: headers
-1
lib/Kconfig.debug
··· 473 473 474 474 config HEADERS_INSTALL 475 475 bool "Install uapi headers to usr/include" 476 - depends on !UML 477 476 help 478 477 This option will install uapi headers (headers exported to user-space) 479 478 into the usr/include directory for use during the kernel build.