Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3774548pxt; Tue, 10 Aug 2021 11:02:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw+lEKk4y+nwD9JRplx3a+zl8bc9LZ2+wejHfBEtAY6wQI5bJGwwE0LQ9qa1ZxPBRUY4kXk X-Received: by 2002:a02:c6b8:: with SMTP id o24mr29196741jan.108.1628618527814; Tue, 10 Aug 2021 11:02:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628618527; cv=none; d=google.com; s=arc-20160816; b=0ogaxMLHiVm8RLh/TVe8BpxFIGv0mKpLiVuH9nY13PLuBpzxAky04VYAMppfmE98hm 7v9TJUM9kNKCtaQwmggThHzNpbpWCZcKqI4N+BNuJ2j5u9noNT2lZUxKf3A++rqx6sK1 4AQ/NFJ7LSEQFwv6DaEYOnq1UL1VCK4abqWpRyGHUlu842kQJ0jrKeRW1U5kcEkg8wbR jRiLntiHHN7/7NeFUG8NlvwTX3A2Z1rcr3qId1u68lhZx2EmjOy6EUKSW/774nWw2rC4 a3hPppQnfMN71eO6u4TB2l6CI38A0MBCA5yxj9W7piljlilMx/qFWYXPwg9ZeiupCwTu OEyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bwaTYAFuVmj/+4ulDaNta6d8yhu+VmVM1owj3WVbkCQ=; b=PrAu56a0P4MZzSS71pYUi3dlRb5BAYmSJsRJEjUZK+IutpYG9vY6t2xcI92oI5b7sd YYzbMEAFY22FhdjBu3kXhakZFmOaE78RBhyW0DqNvWI4RDo0XCcMQoESfGqneuTRrQUE zJvLf+Fal7rrcIy8Wr/BD2Zo+UWtct0EzjLV0nN7oEXC+XB1TzD9CbjhQzko6tYh46XB WRviHSP5HH6ct7yeDkMqOl9JRIJAuDe3aYbe9oohJyn6rolQIXhAzF5L6nTbMc6FWonD 7cqOPJTQ2ZkJs7svFUoFeVQY5OUoSUoPVtrKj7rXwIuT9oqLQwaGes/Tkx7WU1iAdseq HZtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TFnf7yr4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si23047057ilh.2.2021.08.10.11.01.55; Tue, 10 Aug 2021 11:02:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=TFnf7yr4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238609AbhHJR7t (ORCPT + 99 others); Tue, 10 Aug 2021 13:59:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:55598 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235287AbhHJR4l (ORCPT ); Tue, 10 Aug 2021 13:56:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1986861373; Tue, 10 Aug 2021 17:45:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1628617510; bh=LzN8h3QUBT0+yFbN/7lI2jC5K3HR9//KGqZ/8sk/A0k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TFnf7yr4VEADKwmZzHHpGYL8oVgmzTvSWslqPjn239zS2gwI1M0+JRkoFEgJhXUb9 Hh8I+WGU850ZgB1t1/y8uS/yyvzHDlHHW5EzkTSHe/DD+9lTgLPL5IQwWpnj9xwWCi kReUu6F72VYMrEHhYLc/aGMsFq3WVIPBsK3jDOes= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, John S Gruber , Masahiro Yamada , Sasha Levin Subject: [PATCH 5.13 063/175] kbuild: cancel sub_make_done for the install target to fix DKMS Date: Tue, 10 Aug 2021 19:29:31 +0200 Message-Id: <20210810173003.020042754@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210810173000.928681411@linuxfoundation.org> References: <20210810173000.928681411@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Masahiro Yamada [ Upstream commit 14ccc638b02f9ec500c17d9e39efe979145a4b61 ] 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 Signed-off-by: Sasha Levin --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 9d810e13a83f..218f44d7fc80 100644 --- a/Makefile +++ b/Makefile @@ -1366,6 +1366,15 @@ 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 := + # Kernel selftest PHONY += kselftest -- 2.30.2