Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp81643lqm; Tue, 30 Apr 2024 13:31:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU7jPiRjV1U89z7Gkv96haUKNA2oNNPygz0KceBVZzG3YRau/rykMUAQspRve3xg3mt0DnAJEYANQopACHPvgCJzWaxw27csE1IFerBrA== X-Google-Smtp-Source: AGHT+IEW9Z/jxV+t22XZWkdu4oJZykN4JEDuVVM/wzB1ruC4mKniU1Q1k9RJcnIweM4mv1MmEu+V X-Received: by 2002:ad4:5ca2:0:b0:69b:16d5:a8ac with SMTP id q2-20020ad45ca2000000b0069b16d5a8acmr522296qvh.4.1714509061393; Tue, 30 Apr 2024 13:31:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714509061; cv=pass; d=google.com; s=arc-20160816; b=z3/UkYo4XA6YAkYAk6DqDJQu73JqZ1G9rguk5IMZECl422g6trqSuOAcfRod3jDiR4 pvfQ95iZlm6rI+7xHtjFA4H46VnWt3nWSIRyiyCdzRoKLaIO74wC2pSSSYAQIc+XnpLt miJB2JFQVfkixIF+K/ds20uFP3AfDC48NU73zn4nHbsAZySxBTDNx8AnLrdM0Tm1YOqA GOGfA4U5zS43zEWZDRTD465jfRKOsv4o7+Gm8QQ0WkKU7+auVfoj7MISHFYZ/7o9hhCf 6H+tHrc2EpPaiDiGhKoc1aKNLXV/qBEDzdCpzaK4WU5jpeqY04zWTK4BKFBmt27p/4XE ukrg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=xg/4xrkz+6RdvgOG1P/urZ4P0+Az1SkD8A1vpmaDDJg=; fh=8AqJu2dL1RpVlQkXTrkgNAleGud7UJfgqyzIfPc/c/o=; b=aDQ8PXOxbeikqbOas0CoZ9gmZtqB/O7BAbm1Oh6zH77S893YFc7FCaAWA6akOtjh8s KKhH8/eu9wjdYA4cP5ZARSdXPrUzIVnU2KznHRORRsXVUdRI+h71QwJ5IuMEJABK1G4/ 8sCQJkzcP9i1oO9M++hoyZ4URX96whgAFjpKSDSQZD+9zeLOfMGhRROVTEeb4cNq1QPb WxxBX5FDtsENgnFG3xEemPS7wNWBN+NcjKU8g4BGPcxg/IfGU/zhHJIVdygXFz4aAhpU FKEw4RJkzi82iRE+KDVo+k2KJYi3c1YEl7HU2v4v33VvkbqwqGA2Y3dJjLZr3JIOZm93 5Ong==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fyQqcERP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164708-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164708-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fn3-20020ad45d63000000b006a0cd6a78b9si6008800qvb.15.2024.04.30.13.31.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 13:31:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-164708-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fyQqcERP; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-164708-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-164708-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 0A6881C22D61 for ; Tue, 30 Apr 2024 20:31:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA136179B2; Tue, 30 Apr 2024 20:30:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fyQqcERP" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E2F22174EC9; Tue, 30 Apr 2024 20:30:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714509054; cv=none; b=I1mWthVfWLI5zLLul9YThIrKHLz8f39XFsQISYURxRoChbvHa4zvSonSXL9g0rFYSFvg/FA6K3AUWq2SGjY+zWJneQf6laJxyC5UW44If7VKeYbhQFGKfJX0lMCKASkRNWq7AAfiDX4hXIaZPHW29lHCa8PC3D7xxn4UKxNi71E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714509054; c=relaxed/simple; bh=MvOH2ZvxP5GZZg7KiE+tUNHewOywF+KGFNGXauPbL2Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Cu/jNivj59/OD2JwhJSe1yg+myMBseQAqnIX3XXmMjHNWd+j6E+0H7LX3qCxHu+0eEXUaIHr6OxtaIaeK9Vx2SzOtOSlhPzWZKx1z3V8M3rM+BqnAMq1tWTdfB1pjYXpO+4Ngzro2lYeZzffe7oUFbAEvGg2eXNbiKX/tFjApyg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fyQqcERP; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3804BC2BBFC; Tue, 30 Apr 2024 20:30:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714509053; bh=MvOH2ZvxP5GZZg7KiE+tUNHewOywF+KGFNGXauPbL2Y=; h=From:To:Cc:Subject:Date:From; b=fyQqcERPrr65wiXVj57nP5CqvmwFcQG8mVzwuu58sOnl/JzTwCR/fHXRtxG5BYcJy kwEB/0IkAPLkP2KzgmH3zeEk7oLbMfnHeiE2edfiwT0zrRHkYIbdabdad6o7+9i0nQ /HVM9nzFxrPcqi9ifLeY5mncpIi+9IhUUWZfx8IfWKxyyAL4RHhDICYSGVt9skBjCh rKwCS5F8ms2leL5J0S8WpoYPKTCNXfobz2jMQgYmuZa0Fvlh+GqssS0Y8OJURMU13i /GO/k6R7kG7TIHIRIKbjkg6SzhNB1vYk9FQToyspUAQN6JoEMksXnlVEISMnBtJrRF cKJP7MYUmoArg== From: "Rob Herring (Arm)" To: Masahiro Yamada , Nathan Chancellor , Nicolas Schier Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH] dt-bindings: kbuild: Fix dt_binding_check for arch without dts directory Date: Tue, 30 Apr 2024 15:29:29 -0500 Message-ID: <20240430202928.1143802-3-robh@kernel.org> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Commit 1d06c77d93da ("dt-bindings: kbuild: Add separate target/dependency for processed-schema.json") placed setting CHECK_DTBS for 'dt_binding_check' target within the section that depends on having arch/$ARCH/boot/dts/ which x86 doesn't have for example. That results in the schema checks not running for the examples. Move setting it back out of the conditional section as it was (CHECK_DT_BINDING is still replaced). Fixes: 1d06c77d93da ("dt-bindings: kbuild: Add separate target/dependency for processed-schema.json") Signed-off-by: Rob Herring (Arm) --- Cc: devicetree@vger.kernel.org Masahiro, Please take this as the above commit is in your tree. Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f4fe5b0ea931..43a2a630436a 100644 --- a/Makefile +++ b/Makefile @@ -1403,7 +1403,7 @@ dtbs: dtbs_prepare # dtbs_install depend on it as dtbs_install may run as root. dtbs_prepare: include/config/kernel.release scripts_dtc -ifneq ($(filter dt_binding_check dtbs_check, $(MAKECMDGOALS)),) +ifneq ($(filter dtbs_check, $(MAKECMDGOALS)),) export CHECK_DTBS=y endif @@ -1422,6 +1422,10 @@ endif endif +ifneq ($(filter dt_binding_check, $(MAKECMDGOALS)),) +export CHECK_DTBS=y +endif + PHONY += scripts_dtc scripts_dtc: scripts_basic $(Q)$(MAKE) $(build)=scripts/dtc -- 2.43.0