Currently, update-linux-headers.sh will crash when run with a clean checkout of a recent version of the linux kernel source (e.g. 4.10-rc1):
scripts/Makefile.headersinst:62: *** Missing generated UAPI file ./arch/arm/include/generated/uapi/asm/unistd-common.h. Stop. This seems to be due to the script setting "SRCARCH" rather than "ARCH" when invoking the kernel's "headers_install" target, which prevents dependencies from being applied correctly. (The kernel's Documentation/kbuild/headers_install.txt refers only to "ARCH".) So, change SRCARCH to ARCH, which corrects the problem. Signed-off-by: Sam Bobroff <sam.bobr...@au1.ibm.com> --- scripts/update-linux-headers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh index 72cf1fbf0a..ef11a8ab42 100755 --- a/scripts/update-linux-headers.sh +++ b/scripts/update-linux-headers.sh @@ -75,7 +75,7 @@ for arch in $ARCHLIST; do continue fi - make -C "$linux" INSTALL_HDR_PATH="$tmpdir" SRCARCH=$arch headers_install + make -C "$linux" INSTALL_HDR_PATH="$tmpdir" ARCH=$arch headers_install rm -rf "$output/linux-headers/asm-$arch" mkdir -p "$output/linux-headers/asm-$arch" -- 2.11.0