From 9cbbfb3db237e48a6af7d5d7a030b72099946fa0 Mon Sep 17 00:00:00 2001 From: Tai Kuo Date: Thu, 4 Mar 2021 21:37:48 +0800 Subject: [PATCH] ANDROID: kbuild: Copy out-of-tree kernel headers to INSTALL_HDR_PATH The external modules "headers_install" target does not copy the out-of-tree kernel headers from external modules obj folders to INSTALL_HDR_PATH. Add $(hdr-prefix) as the rsync command source folder prefix to copy out-of-tree kernel headers. Bug: 173331163 Signed-off-by: Tai Kuo Change-Id: Ie54c64d026acda65894e048a785c0b66cc9a7ddf --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 582e29c2b9f3..88b6444e00f2 100644 --- a/Makefile +++ b/Makefile @@ -1158,7 +1158,7 @@ quiet_cmd_headers_install = INSTALL $(INSTALL_HDR_PATH)/include cmd_headers_install = \ mkdir -p $(INSTALL_HDR_PATH); \ rsync -mrl --include='*/' --include='*\.h' --exclude='*' \ - usr/include $(INSTALL_HDR_PATH) + $(hdr-prefix)usr/include $(INSTALL_HDR_PATH); PHONY += headers_install headers_install: headers