mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-23 12:14:10 +08:00
9fbed27a7a
When you compile-test UAPI headers (CONFIG_UAPI_HEADER_TEST=y) with
Clang, they are currently compiled for the host target (likely x86_64)
regardless of the given ARCH=.
In fact, some exported headers include libc headers. For example,
include/uapi/linux/agpgart.h includes <stdlib.h> after being exported.
The header search paths should match to the target we are compiling
them for.
Pick up the --target triple from KBUILD_CFLAGS in the same ways as
commit
|
||
---|---|---|
.. | ||
include | ||
.gitignore | ||
default_cpio_list | ||
gen_init_cpio.c | ||
gen_initramfs.sh | ||
initramfs_data.S | ||
Kconfig | ||
Makefile |