From patchwork Mon Jan 7 19:31:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 10751147 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2FBBB91E for ; Mon, 7 Jan 2019 19:31:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1B5F528592 for ; Mon, 7 Jan 2019 19:31:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E7B2289E5; Mon, 7 Jan 2019 19:31:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E644C289E1 for ; Mon, 7 Jan 2019 19:31:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=5/R8O1L0Q4YIWyWeoyGMLsEsTJ7E0ZPQoJYO4YD1kdY=; b=CMnq6+zMMW5qFV Llaq8kfKtcJiq9AfqixLo4VBCr8Wc/AN6IyapLbz0/fhjHPSegEb1d2jL5TEOXexXyv0J3VExGk0m GZ0JUcmYNoF/7zp7VACS/CJM1D6Q7hd+jib9VA6rtnAp0/+NLlJn1fF75gevTgoDAIZG66vSGqvce NSum4N07EHrUrxY73M7mA4aIfNSgY1D4EMf9+HmWfp9h8GF9ITlRx4rn1P2FL7SoADJGDmA/3wUoZ EpMxeDGZ4YRV4ShDicjminL3aKyIlXiM8x6zbJeFGohLT2EM1n/vLD91hcN7y2uIdpKJ7UTopZhsL dqxopcCSTdpJFGFAnXfA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ggacZ-0000Qz-LX; Mon, 07 Jan 2019 19:31:35 +0000 Received: from mail-eopbgr10076.outbound.protection.outlook.com ([40.107.1.76] helo=EUR02-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ggacV-0000QA-HL for linux-arm-kernel@lists.infradead.org; Mon, 07 Jan 2019 19:31:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ccp2neXIsX39kaSN6iaiYXT5mBxcN3DltKwY9odXdxA=; b=ilqK+vE7iSFz2gfa0Rp9DTTq8Mh56D8n7vkv1noJuXQ1xOWqsznvnZG2dTNLXlG/AxqHrkqf5DahxCI7u9Nnx1MDvDrdzgsvPnLLHys3SkvOps1iJfIJp5qpBE1/+jUlaZOfmUuRWhZSspcIc95xlf5iKrr8R8meppGsVMbzoc4= Received: from VI1PR04MB5533.eurprd04.prod.outlook.com (20.178.122.159) by VI1PR04MB5311.eurprd04.prod.outlook.com (20.177.52.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1495.6; Mon, 7 Jan 2019 19:31:25 +0000 Received: from VI1PR04MB5533.eurprd04.prod.outlook.com ([fe80::7d6d:ce34:3439:c184]) by VI1PR04MB5533.eurprd04.prod.outlook.com ([fe80::7d6d:ce34:3439:c184%5]) with mapi id 15.20.1495.011; Mon, 7 Jan 2019 19:31:25 +0000 From: Leonard Crestez To: Masahiro Yamada , Rob Herring , Olof Johansson , Shawn Guo Subject: [PATCH 0/3] kbuild: Add wilddt function instead of listing dtbs Thread-Topic: [PATCH 0/3] kbuild: Add wilddt function instead of listing dtbs Thread-Index: AQHUpr+U4MlukrPd1USdyY3EAbizyw== Date: Mon, 7 Jan 2019 19:31:25 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [95.76.156.53] x-mailer: git-send-email 2.17.1 x-clientproxiedby: AM6PR0502CA0030.eurprd05.prod.outlook.com (2603:10a6:209:1::43) To VI1PR04MB5533.eurprd04.prod.outlook.com (2603:10a6:803:d2::31) authentication-results: spf=none (sender IP is ) smtp.mailfrom=leonard.crestez@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; VI1PR04MB5311; 6:VzjAfR0ycbWwq2XFE+bHzUjrNZeFDbDRIOC9fwvpSsCQatq8lSQO+h3hePqwW6lUgKULpuYQ637wCGzf7SHzM7favyYHkApavPDGmbkVMxF1n1O6SdX22yyB76cMO5SxhxbjZvgYOFLkt++OOfEhAkCOAP9hoP6TqSjVDSwDl5yu4c/YL6ebYJx4PCzrcrhBhtF+d6yp409+yahCj/VmrkFpobte99/KYBYINu4zMJYA4Ui1vOu4wu+u3uEfBIfwhStFzBzZbh57eCiSUNMGeu4BkGeeBo2nb+aQ3lCXDrso95fA2Uk8NOKLKGjmpOiZZPVUt+ESRaUyFtFUluoGXFlMtXIRvH9igD9l97ZWRwgNiszbDUozbUphLtVJs3hyyfHciu79shvoriy08fENsorkHgWERg8ajFh6XguycIR8Gxd9EbqPIxE7MYB/5NAtrtajRvAQOLKf3eyFG1K0Tw==; 5:JhghjwxO1jWOP6zmN4Hd4M75zlo5e8MxWedjBkKmOtgwjvdGgZtYRl7UQ0iCWDp+xTdQp82RlcN2UlhDBfVO51SJsbK+MhWZo6jm7soOIvlF/HndbyTkChWLXuX99ftbTcASEZUDR1seMud4/NR96ibLOFSgG2g6I5FRyo/kEyCyXMDA6BQsDZNTGqZraIcmTOa213pK1rbz0fUWq/qO2A==; 7:jCMrVZ8dYJy/U+imL/c6ZIOmdTVr6+sLTAiyUFLyKvmLf1gWr5zValAdHDxbiMLhUxtIoK+7ilmKup9G8J3Xd6JWQ7eCI4WF7UHSHpegYB/m3lNOko0cKZvedcqYj3VkipotoZHWSOYXKFaXTLz1+A== x-ms-office365-filtering-correlation-id: d71949d9-0336-4547-9485-08d674d6b663 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600109)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB5311; x-ms-traffictypediagnostic: VI1PR04MB5311: x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(3230021)(908002)(999002)(5005026)(6040522)(8220060)(2401047)(8121501046)(3002001)(3231475)(944501520)(52105112)(10201501046)(93006095)(93001095)(6055026)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:VI1PR04MB5311; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB5311; x-forefront-prvs: 0910AAF391 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(39860400002)(396003)(376002)(366004)(346002)(199004)(189003)(5660300001)(102836004)(256004)(7416002)(6436002)(97736004)(478600001)(966005)(25786009)(476003)(2616005)(14454004)(6116002)(3846002)(8936002)(486006)(66066001)(4326008)(44832011)(305945005)(6486002)(2906002)(7736002)(81166006)(81156014)(99286004)(106356001)(50226002)(186003)(53936002)(110136005)(316002)(54906003)(8676002)(105586002)(6506007)(386003)(86362001)(52116002)(71200400001)(71190400001)(6512007)(68736007)(26005)(36756003)(6306002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB5311; H:VI1PR04MB5533.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: OcXRMocUjB9zhwtsgJ09W4NGByo1Ylgltdhbq3HR5T+MHUEwC+CNmMey9k8Rq2JZZORD/SvwfGSzceZt7i21AOFelsmrfMzOSyiX4z8DnkCkb239vhiJrbEOpUimACE6HknOQKg2O/K7DXjHMs7Y+joouoURdHIQD2zR21OOjkNlWV0V3YdEbroR21z0+FCvRMXR8eO7PxW6IS4rwVU91MWthaEtx/QW1uNnsUsAyc7sCFX/cBORyZ3YeDxJKNd9UhjlKIFiEp5Pr5rWKFdEkPNQRe4pHrHl+DkGZnKFiILYdCO6yoeCX1f48r8CLiIf spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d71949d9-0336-4547-9485-08d674d6b663 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jan 2019 19:31:24.1159 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5311 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190107_113131_648996_2E99CBA9 X-CRM114-Status: GOOD ( 11.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , Aisheng Dong , Michal Marek , "linux-kbuild@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Leo Li , "devicetree@vger.kernel.org" , dl-linux-imx , "kernel@pengutronix.de" , Fabio Estevam , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The dts makefiles go through a lot of pointless churn when boards are added. Many SOCs (such as imx) have very simple naming conventions for all boards using a certain chip and board listings can be easily collapsed using wildcards. Add a "wilddt" function and use it for imx6/7/8 and layerscape. This can be applied to many other soc families later. Previously sent as RFC: https://lore.kernel.org/patchwork/patch/1022737/ Changes since RFC: * Split into 3-part series * Move the wilddt to Kbuild.include so that it's available everywhere * Use $(srctree)/$(src) instead of $(dtstree) * Also use wilddt in arm64/boot/dts/freescale Series is against next-20190107, conflicts are to be expected as board list keeps changing. Leonard Crestez (3): kbuild: Add wilddt function ARM: dts: imx: Use wilddt function arm64: dts: freescale: Use wilddt function arch/arm/boot/dts/Makefile | 201 ++----------------------- arch/arm64/boot/dts/freescale/Makefile | 25 +-- scripts/Kbuild.include | 6 + 3 files changed, 21 insertions(+), 211 deletions(-)