From: Masahiro Yamada Date: Thu, 29 Jul 2021 00:12:54 +0000 (+0900) Subject: kbuild: cancel sub_make_done for the install target to fix DKMS X-Git-Tag: accepted/tizen/unified/20230118.172025~6698^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14ccc638b02f9ec500c17d9e39efe979145a4b61;p=platform%2Fkernel%2Flinux-rpi.git kbuild: cancel sub_make_done for the install target to fix DKMS Since commit bcf637f54f6d ("kbuild: parse C= and M= before changing the working directory"), external module builds invoked by DKMS fail because M= option is not parsed. I wanted to add 'unset sub_make_done' in install.sh but similar scripts, arch/*/boot/install.sh, are duplicated, so I set sub_make_done empty in the top Makefile. Fixes: bcf637f54f6d ("kbuild: parse C= and M= before changing the working directory") Reported-by: John S Gruber Signed-off-by: Masahiro Yamada Tested-by: John S Gruber --- diff --git a/Makefile b/Makefile index 27a072c..efb2945 100644 --- a/Makefile +++ b/Makefile @@ -1318,6 +1318,16 @@ scripts_unifdef: scripts_basic $(Q)$(MAKE) $(build)=scripts scripts/unifdef # --------------------------------------------------------------------------- +# Install + +# Many distributions have the custom install script, /sbin/installkernel. +# If DKMS is installed, 'make install' will eventually recuses back +# to the this Makefile to build and install external modules. +# Cancel sub_make_done so that options such as M=, V=, etc. are parsed. + +install: sub_make_done := + +# --------------------------------------------------------------------------- # Tools ifdef CONFIG_STACK_VALIDATION