From patchwork Fri Feb 12 11:18:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 381795 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2846757jah; Fri, 12 Feb 2021 03:20:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJzVmk9sIMymQksQoEsIQpQRvngeqIiDECn8ikbH/iIUF+JRFZ6KylAMdpgoaiJarmMjf09K X-Received: by 2002:a05:6402:3590:: with SMTP id y16mr2825397edc.21.1613128826081; Fri, 12 Feb 2021 03:20:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613128826; cv=none; d=google.com; s=arc-20160816; b=yhN1Jax+EyAtetyFkumb9CBdNqxkDgZnedhtvheHyYDhwUnicgS1s/HsW8c3psWq9y Gs3yznxviGomyRLDD2rjuC673NcIkXpXdkrFtrX5yXS6XBp3ba+ZMGwZy7Mpls5GIFq2 jEq7XxEKjkM3Dpxahi0cielNMQI0up0HoCb2LIu6sy8pnoAeQ18d5GqG+OwGU6idtNs4 p0rl7bDbPuhDMXXCk7LIR/iqmG9OxHLCAfMqG3L6ighFHmpd48akMhDyKNkusgDGeIHV MwQtNUKNgdbOOHyVex6JY0y3VYQmnpeJEfZJg7qT1G0oqxqIM3I0KBJSyK9HTCTlQvtX jktw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5biKq7NugFH5645R57SKe1mgC1BP2ckBoaTjbO3BPZE=; b=hV5ToWxEphjurWnAS2fCXkksM3Y1cDXNDTJdFcW6kor1nNPcV4/ek3hgyF1KNGtBaA fB0pEARD5c14reUb0vwelWdq+8iWpMfOrwjkRVFKWeSVEDzor3H9Sq9/HRsLlpvDtE23 kN50tnSvVLVv+mj7u6EgUUZ3YrpZ1lQS0VQJMnl9V47X+We8aCHkPZt+TcxBnKyzpHKA TE2XsGdUAVr39qWV+Ms12WyXnfjTWA66m69qzSLxOAjWHXxHIj7uYh3EQMOfB2Mm49Ch +Uork4gYZ4eMJV/IIpzCNZVf2n2J5bYNAEF7hCLYDILqsJlAqVYR8Qqz4y7x/OoXWO41 Z+3Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="NCgoSjY/"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j24si5885999edr.101.2021.02.12.03.20.25; Fri, 12 Feb 2021 03:20:26 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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=@linaro.org header.s=google header.b="NCgoSjY/"; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230131AbhBLLTg (ORCPT + 6 others); Fri, 12 Feb 2021 06:19:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230134AbhBLLTd (ORCPT ); Fri, 12 Feb 2021 06:19:33 -0500 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2581DC06178A for ; Fri, 12 Feb 2021 03:18:48 -0800 (PST) Received: by mail-pj1-x102b.google.com with SMTP id gx20so261096pjb.1 for ; Fri, 12 Feb 2021 03:18:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=5biKq7NugFH5645R57SKe1mgC1BP2ckBoaTjbO3BPZE=; b=NCgoSjY/AMkFT1Q+TOjkW+QtV2Tgv5rRg6PXJ7EnfbP1PPBhrvLSMGJ2tMnLqGjvtS hTZ1DG03+SMrZ6Bs3yBMlN5TnazwJrXYZNZvBQFot6TT7ndKRG4QylMsD6ASbF42Tyfa C5XqIi0RdqUAiQAn4klCJX7wGydhpLNWEQcTuBnZ5R4vEUyVMTGeagoy3iwV2HTMcwB4 TnR1Ic+DM2P4BmPExrCFrXBZA/JS3eH2C3/Mn+gkULvE3kuz+Ujw0N0KntqfdXAwv1Iw ilwczRfJcAuISVv6gcIH2Xjd9fH4xaIdiRqDg8rWPfEmvwHn4cTepuwpoG++vZdyNKKI ur5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=5biKq7NugFH5645R57SKe1mgC1BP2ckBoaTjbO3BPZE=; b=F/nY2dgWf+AX6lzHqXfmiVHNiVrGIudNai9JvrhyqvS7tc/SKYd9GfvY2EalqcwY45 V+eIuEVY+pSIVQNvToyoUKJsMCU4fvI7+xBfTKDZVOC0ElqXgKeeJQCWwEzXet0oM/qY 8OhGUTrcW0oIQJhA/rheb14J6fEtu4v3SxH+r6Q6ln9V6+LrNzy3BwohtELxGAnjfBHe ZTZR7JKL+NC2zB4V32ouJsE7Iiprc03byd/cign4OAmWKtaK9KxXwnGaI4wEzaCOFiwm YEw6pjOKxnTsgPX5RzwnTpLZ4fz0ZFgrzB/19Muxc8F8+YAhjZ4NH5fZ57+tTca6KuYF tvFg== X-Gm-Message-State: AOAM531Co7uDRkLWoZpzMT5gin/UdUL5Z9yWJ+VpcGcsRQ/AoDaJt2QS ctc8wcnejZ1ed2aERtzWKskeqw== X-Received: by 2002:a17:902:c9c3:b029:e3:12d4:f2ca with SMTP id q3-20020a170902c9c3b02900e312d4f2camr2433994pld.33.1613128727728; Fri, 12 Feb 2021 03:18:47 -0800 (PST) Received: from localhost ([122.172.59.240]) by smtp.gmail.com with ESMTPSA id a37sm8763963pgm.79.2021.02.12.03.18.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 12 Feb 2021 03:18:47 -0800 (PST) From: Viresh Kumar To: Frank Rowand , Rob Herring , Pantelis Antoniou , Masahiro Yamada , Michal Marek Cc: Viresh Kumar , Vincent Guittot , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, anmar.oueja@linaro.org, Bill Mills , David Gibson , devicetree@vger.kernel.org, linux-kbuild@vger.kernel.org, Geert Uytterhoeven , Michal Simek Subject: [PATCH V8 1/4] kbuild: Simplify builds with CONFIG_OF_ALL_DTBS Date: Fri, 12 Feb 2021 16:48:35 +0530 Message-Id: X-Mailer: git-send-email 2.25.0.rc1.19.g042ed3e048af In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org We update 'extra-y' based on CONFIG_OF_ALL_DTBS three times. It would be far more straight forward if we rather update dtb-y to include all .dtb files if CONFIG_OF_ALL_DTBS is enabled. Signed-off-by: Viresh Kumar --- scripts/Makefile.lib | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.25.0.rc1.19.g042ed3e048af diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index b00855b247e0..fa0db696120f 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -81,14 +81,13 @@ always-y += $(userprogs-always-y) $(userprogs-always-m) # DTB # If CONFIG_OF_ALL_DTBS is enabled, all DT blobs are built +dtb-$(CONFIG_OF_ALL_DTBS) += $(dtb-) + extra-y += $(dtb-y) -extra-$(CONFIG_OF_ALL_DTBS) += $(dtb-) ifneq ($(CHECK_DTBS),) extra-y += $(patsubst %.dtb,%.dt.yaml, $(dtb-y)) extra-y += $(patsubst %.dtbo,%.dt.yaml, $(dtb-y)) -extra-$(CONFIG_OF_ALL_DTBS) += $(patsubst %.dtb,%.dt.yaml, $(dtb-)) -extra-$(CONFIG_OF_ALL_DTBS) += $(patsubst %.dtbo,%.dt.yaml, $(dtb-)) endif # Add subdir path