From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 07 Dec 2021 16:39:56 +0100 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mucZQ-0001Qp-QO for lore@lore.pengutronix.de; Tue, 07 Dec 2021 16:39:56 +0100 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mucZQ-0004lB-AB; Tue, 07 Dec 2021 16:39:56 +0100 Received: from [40.107.8.72] (helo=EUR04-VI1-obe.outbound.protection.outlook.com) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mucYs-0004Vl-R2; Tue, 07 Dec 2021 16:39:23 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jyyyM67dVLNRCXZum4SbKJU+0I/hr8Oq/zR+/fJk+LbJ5dZLz78xt5OvyJPLLkXIkOTFp57bmrsNzIkrRPxT6XUl26osGX5g40CgGAY50zh83k8LMIzhurqeWecgbEyOc9uMyQl/SJstasF8jbIHRC7T5FjC1+WSpEveajZCtfSWsuo4y5RK3eqlSKCDvFb3dnAI/VJe8bYPPYP8jx4uVPcQz74f6AUlWR5ip4cR3IsYgHVlSqVQN3nwERFORi9qCQzWnUrOATKDyYBLoj3hf6LufJ3EcBfnwR1gCH3eHQycxfS3T3KS5Geag68Q1fH5LuUbvVwHmTT4IJShLt1CYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=5Yz5tAm/FcecKesuOteSu97fG9H4S1ohY1vpAhhSv6Y=; b=eASf3nr7HD1dDYqc+bWE8TgteqxsquHKbYtoAHs3nNxyOy8Nnv0gvU/5+fzS7rpkak9ytt4VeeYYEKcxYcsYs7hEdcVGQA1dYpubz3059hxwjkfY3wBvnek0ZBZWNRgDLCnOxJRVyfYU10WKyZ1CS/TNO9SvNgzElSdW3ZxOjUrmKtEVVGCDlm50GWogkqee93rO0RcGr1wPm6+5IuHYt1Vck/OvXtvJ6ZvVBnAVLqL1O9E8HSXAVjnS738h7XVAnK+EEGH4XGdvqkUrf0HLa4HJJTFUQ2Yz5dN/s9soTBvOfOpPjvb5oq7Uw9/HriWRYIvI3eJA53Nt2rjKlSUlvg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5Yz5tAm/FcecKesuOteSu97fG9H4S1ohY1vpAhhSv6Y=; b=QP7e23nXY4jxXkUbAX0WV+ubbrt/IICTmEasihSY6y+UC6Aky/mc6kfqVdm0Xr/pNEaDT+BcK/bWvJ7Gv4x8R0T8yVpN+Roi8Vev40BtModrQx0STby6qkGEc1ygiaiF5kL1BfQ1mhYli1EaWb0Z4/gpVp0Lfix/kBgi0EnidOo= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from DBBPR08MB4523.eurprd08.prod.outlook.com (2603:10a6:10:c8::19) by DB8PR08MB5116.eurprd08.prod.outlook.com (2603:10a6:10:e5::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.21; Tue, 7 Dec 2021 15:39:20 +0000 Received: from DBBPR08MB4523.eurprd08.prod.outlook.com ([fe80::81d1:d448:4016:1956]) by DBBPR08MB4523.eurprd08.prod.outlook.com ([fe80::81d1:d448:4016:1956%4]) with mapi id 15.20.4755.022; Tue, 7 Dec 2021 15:39:20 +0000 From: Michael Riesch To: ptxdist@pengutronix.de Date: Tue, 7 Dec 2021 16:39:05 +0100 Message-Id: <20211207153905.2386379-3-michael.riesch@wolfvision.net> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211207153905.2386379-1-michael.riesch@wolfvision.net> References: <20211207153905.2386379-1-michael.riesch@wolfvision.net> X-ClientProxiedBy: ZR0P278CA0095.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::10) To DBBPR08MB4523.eurprd08.prod.outlook.com (2603:10a6:10:c8::19) MIME-Version: 1.0 Received: from charlie.fritz.box (2a05:1141:1c9:7c00:2971:328c:3026:3149) by ZR0P278CA0095.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:23::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.11 via Frontend Transport; Tue, 7 Dec 2021 15:39:19 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0a7d8dd6-6638-40d8-b89c-08d9b997bc52 X-MS-TrafficTypeDiagnostic: DB8PR08MB5116:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1388; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FNr/hZ9OADD7kcMqYpjcK9B0eGkD/0T2/ZyjQWmm5Pz+9jZWOAVXv2Ycfr1VRiqmbK/haRGn3DU/0/UbBO5MydnIU4QJnZa7IpsImLcFB1JgK+5eOpUsAuckAu52felGtIW9Kav69FVkT0eNq9ikz9INRkOXlJIQ39EG6eBHHV9VoAPK6h9IJuYNBrJ3XjyLjmHKnL3pKfBjJuMWDhasO0MuFWKTkWc+XWk9ThsaJtTLxvE8uVjrWvNXzCPol3jkzyHC3SOqq+uYh+mCTEHuiHQmiUQ7Uu657LBEKhLuzAEAMtrEksBHL9ZAtQnk0wtrJtRsKIYLlcPCtD5G7LWYfxBdK/LDAe50cpQX2JXG7oRGqE2aJRsDHvhm2+KbjT+xwHdr/Bzbt/2Kxl9xeZMr14m2JJurfh9YnPtbAoDC8zVwYuRt2nEsXnwGBjNNOuAB+QxCV+y5qoKx5yQvAZOvRF3TQ4fUszb+A0fsqo15/ZZkuOIZLi4lEzgVQL+sJ1rLkGM0DDU8pl1FcwO/Dyu3SOjkqqXnjkB/HzLZKwLSUufGqU8HQB4K5cb0x/DeqEm3keuvyOcBXN3jF2XrnmyhdM+HryuS0/Zy/guHwjrZUsImPO6axLmMvQ+THScTDy3rcXbpnyFeA7YGzHyzYlJKgg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DBBPR08MB4523.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(39850400004)(396003)(366004)(376002)(136003)(8676002)(6916009)(66476007)(36756003)(66946007)(2616005)(66556008)(5660300002)(6666004)(86362001)(52116002)(6506007)(508600001)(44832011)(316002)(2906002)(107886003)(38100700002)(4326008)(6512007)(6486002)(186003)(1076003)(83380400001)(8936002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?MesRBPXnS62f9NC/lODnhDqCmsST5stU8HHtZCy/IcLihOD0Dr33VGwnpFuZ?= =?us-ascii?Q?Uk42/gLe7qaK/3GF2sRHCkkr/xei//g6kHqeCNFA3GIW+MGNwb6wUE8u5HgJ?= =?us-ascii?Q?LilUAzosHfUpjLMIFZvBMk1gA14PBdpr7+wgJZbIKwKRbc7nbnQ6oCIq9smZ?= =?us-ascii?Q?qSOI1zzE+bdib76PLR6Px0593rgT7SnB5zDyssiT7DRTy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+tIIw4EoIwEZqGIyVZuuGBRoyOM2OOAeO?= =?us-ascii?Q?7821QsmIoMkGDND3lK3wvXPT5fzINy9xXHxN+xMFXERUJLk5LCIp2hpu+/YS?= =?us-ascii?Q?9HE1hQmxxhjPZrd6jBCY1O8uT/AvwP6c9vdjOyvS3mQ9t6HEp5LXv+FCqhQD?= =?us-ascii?Q?Ve40o+BDIRRuR4h0oR+dDFTJSuZnEa0iMudGKJ8n/sjVjbFVjvZ8ZPHGl2ei?= =?us-ascii?Q?Z6vyUTn63LxUsdE1ylbY9HtH++vQo4Dub4shv4jnLQuK5AC/vIwdoui+4q+R?= =?us-ascii?Q?6+mU1F/9ETqa/BpwBTCD6Bz6ryHKjH7Tu0fNI2sklJM31C3AIBvZqwm0xNs/?= =?us-ascii?Q?HCqO+/m3ueVO1y1NjxRq6bGjURCnnBKklUz9uYGJykLGEZEeivqPpkPbdH3g?= =?us-ascii?Q?Bcd2CVJMA7J2akfJg0sRm0piAsfqbPtJvHH2Chj0hoaOITGQcWj2Y1Nal8Cs?= =?us-ascii?Q?ZlpXE/2be+teLs1UwJXkkeK+THLyvjfB3p+5Jabvj0cEmPTyyUyqCshImPQH?= =?us-ascii?Q?lhTNZziQGqMTwjK0gWBY68md2aWNxQz5EF3uwYf0m71dpe5WZKXp1Vp6x4sN?= =?us-ascii?Q?xTmA2HQMdlYqC0/3+ap79tjVq3A1zQXOgJCdQiMTUIhVejimQQdMegZcIDqL?= =?us-ascii?Q?FbmhM1THOA=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 0a7d8dd6-6638-40d8-b89c-08d9b997bc52 X-MS-Exchange-CrossTenant-AuthSource: DBBPR08MB4523.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2021 15:39:20.1933 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: EfEUCgeRxxmtIFVv1BR8/ep9WduTeFpoWPVmONGd3bzMje+pBXIUTB/OduVB66HlaCtHDZMSZz3sDcaIGxByy1WNpyGbIccU/lKHBJBgWXE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB5116 X-Host-Lookup-Failed: Reverse DNS lookup failed for 40.107.8.72 (deferred) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MSGID_FROM_MTA_HEADER, PDS_HP_HELO_NORDNS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,RDNS_NONE, SPF_PASS,T_SPF_HELO_TEMPERROR autolearn=no autolearn_force=no version=3.4.2 Subject: [ptxdist] [PATCH 2/2] kernel: activate support for device tree overlays X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: christian.melki@t2data.com, m.tretter@pengutronix.de, Michael Riesch Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false Activate the recently introduced support for device tree overlays for the kernel package. Signed-off-by: Michael Riesch --- platforms/kernel.in | 28 +++++++++++++++++++++++++++- rules/kernel.make | 9 +++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/platforms/kernel.in b/platforms/kernel.in index 9976436ce..2c332e2cb 100644 --- a/platforms/kernel.in +++ b/platforms/kernel.in @@ -186,7 +186,7 @@ config KERNEL_DTS_PATH help Define path to the dts source file. Multiple directories can be specified separated by ':'. A relative path will be expanded relative - to the workspace and all other layers. Only on of the specified paths + to the workspace and all other layers. Only one of the specified paths can be a relative path. config KERNEL_DTS @@ -200,6 +200,32 @@ config KERNEL_DTS endif +menuconfig KERNEL_DTBO + bool + prompt "Build device tree overlays " + +if KERNEL_DTBO + +config KERNEL_DTSO_PATH + string "path to overlay file(s)" + default "${PTXDIST_PLATFORMCONFIG_SUBDIR}/dts/overlays:${KERNEL_DIR}/arch/${GENERIC_KERNEL_ARCH}/boot/dts" + help + Define path to the dts(o) source file(s). Multiple directories can be + specified separated by ':'. A relative path will be expanded relative + to the workspace and all other layers. Only one of the specified paths + can be a relative path. + +config KERNEL_DTSO + string "overlay file(s)" + default ".dtso" + help + Select the dts(o) file(s) to be compiled. For relative file + names KERNEL_DTSO_PATH is used as a search path for the device + tree files specified here. + Multiple dts(o) files can be specified, separated by spaces. + +endif + config KERNEL_CODE_SIGNING prompt "use code signing infrastructure" select KERNEL_OPENSSL diff --git a/rules/kernel.make b/rules/kernel.make index 0ecf5f4e9..1b70faf21 100644 --- a/rules/kernel.make +++ b/rules/kernel.make @@ -29,7 +29,11 @@ KERNEL_BUILD_DIR := $(KERNEL_DIR)-build KERNEL_CONFIG := $(call ptx/in-platformconfigdir, $(call remove_quotes, $(PTXCONF_KERNEL_CONFIG))) KERNEL_DTS_PATH := $(call remove_quotes,$(PTXCONF_KERNEL_DTS_PATH)) KERNEL_DTS := $(call remove_quotes,$(PTXCONF_KERNEL_DTS)) +KERNEL_DTSO_PATH := $(call remove_quotes,$(PTXCONF_KERNEL_DTSO_PATH)) +KERNEL_DTSO := $(call remove_quotes,$(PTXCONF_KERNEL_DTSO)) KERNEL_DTB_FILES := $(addsuffix .dtb,$(basename $(KERNEL_DTS))) +KERNEL_DTBO_FILES := $(addsuffix .dtbo,$(basename $(KERNEL_DTSO))) +KERNEL_DTBO_DIR := /boot/overlays KERNEL_LICENSE := GPL-2.0-only KERNEL_SOURCE := $(SRCDIR)/$(KERNEL).$(KERNEL_SUFFIX) KERNEL_DEVPKG := NO @@ -265,6 +269,7 @@ ifdef PTXCONF_KERNEL_MODULES_INSTALL @$(call world/install, KERNEL) endif @$(call world/dtb, KERNEL) + @$(call world/dtbo, KERNEL) @$(call touch) # ---------------------------------------------------------------------------- @@ -294,6 +299,10 @@ ifdef PTXCONF_KERNEL_INSTALL @$(foreach dtb, $(KERNEL_DTB_FILES), \ $(call install_copy, kernel, 0, 0, 0644, -, \ /boot/$(dtb), n)$(ptx/nl)) + + @$(foreach dtbo, $(KERNEL_DTBO_FILES), \ + $(call install_copy, kernel, 0, 0, 0644, -, \ + $(KERNEL_DTBO_DIR)/$(dtbo), n)$(ptx/nl)) endif # install the ELF kernel image for debugging purpose -- 2.30.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de