From 973228a692135ba8240df41a33e92c6e7bff34ca Mon Sep 17 00:00:00 2001 From: Jeffrey Townsend Date: Sat, 7 Jan 2017 21:01:51 +0000 Subject: [PATCH] Add driver headers to the module build package. --- make/kbuild.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/make/kbuild.mk b/make/kbuild.mk index eb28a1b1..eaaf2152 100644 --- a/make/kbuild.mk +++ b/make/kbuild.mk @@ -164,7 +164,7 @@ endif endif -MODSYNCLIST_DEFAULT := .config Module.symvers Makefile include scripts arch/x86/include arch/x86/Makefile arch/powerpc/include arch/powerpc/Makefile arch/powerpc/lib arch/arm/include arch/arm/Makefile arch/arm/lib +MODSYNCLIST_DEFAULT := .config Module.symvers Makefile include scripts arch/x86/include arch/x86/Makefile arch/powerpc/include arch/powerpc/Makefile arch/powerpc/lib arch/arm/include arch/arm/Makefile arch/arm/lib drivers MODSYNCLIST := $(MODSYNCLIST_DEFAULT) $(MODSYNCLIST_EXTRA) @@ -172,6 +172,8 @@ mbuild: build rm -rf $(K_MBUILD_DIR) mkdir -p $(K_MBUILD_DIR) $(foreach f,$(MODSYNCLIST),$(ONL)/tools/scripts/tree-copy.sh $(K_SOURCE_DIR) $(f) $(K_MBUILD_DIR);) + find $(K_MBUILD_DIR) -name "*.o*" -delete + find $(K_MBUILD_DIR) -name "*.c" -delete dtbs: mbuild ifdef DTS_LIST