Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3900613imu; Mon, 7 Jan 2019 11:32:54 -0800 (PST) X-Google-Smtp-Source: ALg8bN7F6XbKy1wrf1IghTDq9JEkqgBArMeDlk6lehOdSOUisp60nyq9Dk+ll8mrlwh/5rnCNNxm X-Received: by 2002:a17:902:15a8:: with SMTP id m37mr63118893pla.129.1546889573988; Mon, 07 Jan 2019 11:32:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546889573; cv=none; d=google.com; s=arc-20160816; b=xL9uuPsRBTVtubLprSfPi+/EJYReIMk/xcPKgWpfqPbqSfdMBZulqEnAC80gidAqnh xzvjP2J1LiDSF559iMRmM2la8jfh9YtxMbz5KgzXIzdgw0IJsXkzvZId0qBu5dONoSrd pL/Nr5q8tcxOcbqY0yxcWz7kodeHNpwaKlbKeRL5PEw69Z9oCV9tfJNAco+FUyxguVXY 3ZsvdDR2ewgB+EoYWrG7YCJxzl9VmId6NlJypMBtZTaxG67qr2GovKSRT5CtRwK/z+zp FXe2LtVm1qG9fEojw4ZSqQA7cygs6Nie8LuE6GoN+niuwQnSA1Ra5jNtL+gSv5NRV8f7 pjSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:message-id:date:thread-index:thread-topic:subject :cc:to:from:dkim-signature; bh=ccp2neXIsX39kaSN6iaiYXT5mBxcN3DltKwY9odXdxA=; b=zBpV3WIPiBcJpBEEmsrN2dDVWPRBvFkuTUgBZhg3v5enryWsQd7S6lkYP25Yk5h+Wz B2nYK6tC9mjFAtj/DlzXpoblA2+GdkLBDfeMmlcsHuPv2ROzTo9m5z22+2rD2+QzQTpF EjyHBTULn4jIh5vtEFsWLFta9WA6xmJrGWSAkINJ7BeXMCCnVZrMxQZfkgE3510ZgqIl cAD/SIxlLnqrz7Q+9XsBWXZIHRpscFZifiJRK5vXRpr7OZQMiQcgQ37UA5JxLP5Pe7UX ESNv1KKr5d2OI99+LGj9Y7n46IFCuCag+YC7gF+VULdjSopPn9if12ix077TpwWnmaYs rc5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=ilqK+vE7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e11si16338373pgf.450.2019.01.07.11.32.37; Mon, 07 Jan 2019 11:32:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=ilqK+vE7; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727707AbfAGTbc (ORCPT + 99 others); Mon, 7 Jan 2019 14:31:32 -0500 Received: from mail-eopbgr10078.outbound.protection.outlook.com ([40.107.1.78]:25466 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726934AbfAGTbc (ORCPT ); Mon, 7 Jan 2019 14:31:32 -0500 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 CC: Michal Marek , Fabio Estevam , Mark Rutland , Aisheng Dong , Leo Li , "linux-kbuild@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , dl-linux-imx , "kernel@pengutronix.de" , "linux-kernel@vger.kernel.org" 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 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(-) --=20 2.17.1