From nobody Tue Nov 26 17:22:38 2024 Received: from gate2.alliedtelesis.co.nz (gate2.alliedtelesis.co.nz [202.36.163.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 031231865ED for ; Wed, 16 Oct 2024 19:41:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=202.36.163.20 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729107721; cv=none; b=gIR039Q+k+pJQ242803dGPKwwTRFyatw0/FCmruz+WeBJR+sEbSh2xVQO6C+mm0UQJVU9aLR6E5sCKc3uIvgIg2GI9uNkou3SX2cJncsHj9MD+Zmvod4uJn89Lvp1ZEheNXn3DeqC3ak1pxk6+AJQ56kNFWb4PDq414ifp1RfDA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729107721; c=relaxed/simple; bh=F2Suugf57GPw3RqJq7bRvLar9lCs5cHH4M9EOSt6p1k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=N23yrArhkRD/QMR2SLtKcEawwkH4QWJVnNO/2FZMRhpplayDgaxIG3ydfHr9JqlwboSOmoSL2C+LoVCBHf1qysI9S7NLEvW2pPT8vcnY9XN8/+JM8zd+i41V1rOrc0D6SwtAXK5ZU8vWZj2656702WwISNe3r8UEfNGKRmBO0Tk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz; spf=pass smtp.mailfrom=alliedtelesis.co.nz; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b=uSxMnabM; arc=none smtp.client-ip=202.36.163.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alliedtelesis.co.nz Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=alliedtelesis.co.nz header.i=@alliedtelesis.co.nz header.b="uSxMnabM" Received: from svr-chch-seg1.atlnz.lc (mmarshal3.atlnz.lc [10.32.18.43]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by gate2.alliedtelesis.co.nz (Postfix) with ESMTPS id 73A1D2C0436; Thu, 17 Oct 2024 08:41:55 +1300 (NZDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alliedtelesis.co.nz; s=mail181024; t=1729107715; bh=zuhAErChXmTZvMoGaqhA8T5c9vvGGKPoIeF7VyoGiNY=; h=From:To:Cc:Subject:Date:From; b=uSxMnabM8svO3VExiUHPh8uF7M5CWm7RNSVRPg1XEufT1e6lqYQ3z4NYUOzEdK5IW JnNwse1GJSORonBPvsLK+F+uyFQWDqUKDvd5bOTVL3D3mBEQW1MmEZPtDEbaD/Hy3H u0CTsJk7dkLhNriWfn1Q/uqAEt6n7H6lBOu3+biHFoh84+pMpcfNXH9XFFpeSwEXd2 fdNfWyOnSKhEvONv2EnBqyXh5lAdUfE0JI7pClO1RMOarzU5A9uaGjI08ykxq8E7Dv L3EWpLo6+/rtKaX5A8sqBqWS/MPLCxK3q9KvWLll3YbHfX3g0qQeXkSoapnlm3NC8Z S4Vbn6U/LtrMQ== Received: from pat.atlnz.lc (Not Verified[10.32.16.33]) by svr-chch-seg1.atlnz.lc with Trustwave SEG (v8,2,6,11305) id ; Thu, 17 Oct 2024 08:41:55 +1300 Received: from chrisp-dl.ws.atlnz.lc (chrisp-dl.ws.atlnz.lc [10.33.22.30]) by pat.atlnz.lc (Postfix) with ESMTP id 2CA2713EE32; Thu, 17 Oct 2024 08:41:55 +1300 (NZDT) Received: by chrisp-dl.ws.atlnz.lc (Postfix, from userid 1030) id 28DC6280482; Thu, 17 Oct 2024 08:41:55 +1300 (NZDT) From: Chris Packham To: masahiroy@kernel.org, nathan@kernel.org, nicolas@fjasle.eu Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Chris Packham Subject: [PATCH v2] kbuild: Restore the ability to build out of tree dtbs Date: Thu, 17 Oct 2024 08:41:49 +1300 Message-ID: <20241016194149.4178898-1-chris.packham@alliedtelesis.co.nz> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-SEG-SpamProfiler-Analysis: v=2.4 cv=ca1xrWDM c=1 sm=1 tr=0 ts=67101703 a=KLBiSEs5mFS1a/PbTCJxuA==:117 a=nLVBVlUmovVwbiQ-:21 a=DAUX931o1VcA:10 a=N9YJ-UhC3puMJLZ-EMAA:9 a=3ZKOabzyN94A:10 X-SEG-SpamProfiler-Score: 0 x-atlnz-ls: pat Content-Type: text/plain; charset="utf-8" A build pattern to handle out of tree dtbs is to copy the .dts file into the kernel source tree and run `make myboard.dtb`. This is supported by the wildcard %.dtb rule in the Makefile but recent changes to split the dtb handling out of scripts/Makefile.build stopped this from working. Restore this functionality by looking for .dtb in $(MAKECMDGOALS) as well as $(targets). Fixes: e7e2941300d2 ("kbuild: split device tree build rules into scripts/Ma= kefile.dtbs") Signed-off-by: Chris Packham --- Notes: Changes in v2: - keep $(target) and search for .dtb in $(MAKECMDGOALS) scripts/Makefile.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 8f423a1faf50..78763a4bc58a 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build @@ -449,7 +449,7 @@ ifneq ($(userprogs),) include $(srctree)/scripts/Makefile.userprogs endif =20 -ifneq ($(need-dtbslist)$(dtb-y)$(dtb-)$(filter %.dtb %.dtb.o %.dtbo.o,$(ta= rgets)),) +ifneq ($(need-dtbslist)$(dtb-y)$(dtb-)$(filter %.dtb %.dtb.o %.dtbo.o,$(ta= rgets))$(filter %.dtb,$(MAKECMDGOALS)),) include $(srctree)/scripts/Makefile.dtbs endif =20 --=20 2.47.0