From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 07 Dec 2021 18:31:38 +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 1mueJV-0006Ob-TQ for lore@lore.pengutronix.de; Tue, 07 Dec 2021 18:31:37 +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 1mueJV-0000yJ-Eq; Tue, 07 Dec 2021 18:31:37 +0100 Received: from mail-vi1eur05on2069.outbound.protection.outlook.com ([40.107.21.69] helo=EUR05-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 1mueIx-0000wu-LF; Tue, 07 Dec 2021 18:31:09 +0100 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F23MfACuMmk/E6Kg/hWViV7jarDWWfpHP7wTaDoIT9xUdwhEJju/4i811kMJ//xJM51XxJlgAopPtXJ5UaYJ4SFxxmgNtUW5BOTDj6/7y4R+7rX7bYoMx4cI+xLlT9+L2vTEi17AfYWpNTPvrZUdfrIlG6qnAENvAK+9/eywkvg5Qkdi3/RjbiDo69E3DQQgZCE5b2XPyISqWQMwcRSuOKCSct4PSn9EkVV7PSFT5NPL6TDtDQlauGaK2yXnJ+QzK0rEwKyh54glirr4gW3Lako0MLu5Pa6gcoeNIbVcEtfR9UyKNiEMz4u9ySNc53rR5y/pYx1Bz5jZhCC+v6/25g== 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=zD/DjhVaA2QWR/mFuNaLVwjlakphx54agPvnRLJIkU4=; b=FSexbcr/Ffv5fB7038T+eGBD/K/SPhVGms3CBT+h+5JkOPR8ueSFcEpn0PlzQFueyeVpwaKyv3XZtTwG31YBkXvGjl2tjnJVxawfZRnrP1DexMnsNNdYy3qU6aWZCggS2w6m9cNTx1ACmHu/yiLukI0RS9sg8NSXqF0BfwAbJF4x0zc8Z1DzWwoJP2ZyNtOJtHLbUlxfmCReWJhdcP02cyKmPyzc9rlEp7Rr9DKOFAiHYuKxtT6MBIvzo9F1IgPhUlmsyubigBeVMC77Iqgby3uaJz6RTiuN3TAdZi6okNA3KKAbYoTn+0g/4Z+rbTaBjPGKiC+PeImLADkofjnCFA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=t2data.com; dmarc=pass action=none header.from=t2data.com; dkim=pass header.d=t2data.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=t2datacom.onmicrosoft.com; s=selector1-t2datacom-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zD/DjhVaA2QWR/mFuNaLVwjlakphx54agPvnRLJIkU4=; b=OQPVbKjhsElhpjekeVEPqwmJTyUQ/DkEAbDWN3RPLe0wvC98Du3OV19g3d3BZSkVM+R8NMjmgmTiT2cxZteWZwOOReefQmyrByki+eDO+1khFA7EsDAFqPQsEYcE+dbYOfBgH9Hk/V4xNvk3ETry3x3yoESQIVUjmKyDrjqbZNg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=t2data.com; Received: from DB9P251MB0618.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:334::22) by DB9P251MB0171.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:2c9::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4734.23; Tue, 7 Dec 2021 17:31:00 +0000 Received: from DB9P251MB0618.EURP251.PROD.OUTLOOK.COM ([fe80::cc24:927c:bd00:a0cf]) by DB9P251MB0618.EURP251.PROD.OUTLOOK.COM ([fe80::cc24:927c:bd00:a0cf%7]) with mapi id 15.20.4755.021; Tue, 7 Dec 2021 17:31:00 +0000 Message-ID: <5d9dbc5e-8330-34cd-3a4b-859ebfae277e@t2data.com> Date: Tue, 7 Dec 2021 18:30:54 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Content-Language: en-US To: Michael Riesch , ptxdist@pengutronix.de References: <20211207153905.2386379-1-michael.riesch@wolfvision.net> <20211207153905.2386379-2-michael.riesch@wolfvision.net> From: Christian Melki In-Reply-To: <20211207153905.2386379-2-michael.riesch@wolfvision.net> X-ClientProxiedBy: OL1P279CA0070.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:15::21) To DB9P251MB0618.EURP251.PROD.OUTLOOK.COM (2603:10a6:10:334::22) MIME-Version: 1.0 Received: from [192.168.7.217] (81.234.39.46) by OL1P279CA0070.NORP279.PROD.OUTLOOK.COM (2603:10a6:e10:15::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4755.17 via Frontend Transport; Tue, 7 Dec 2021 17:30:59 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6d595325-1b56-4549-199b-08d9b9a755dd X-MS-TrafficTypeDiagnostic: DB9P251MB0171:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7219; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uP2lHRfO+WUClHIPIXtPQHYhq9Oqz/lBxkt4UFX1trIC0B6jnjil8mlCKsiBE5UzN5dxKqPQ65hBQPFnQkqfqlQltXcXjoOjj+XDQXj3XKXcx9+ypzRpZK8GDtmMXut6QxzZWtjClYiWECikJPhIY2sYMxdr2g/maX2/ObFMmojRiG7BJGgs+UuAunAFQqEHid8uXZ2/294MyOSSCDCHAkM2jvpcz1sUUqxdfKUWgS3v9GiAcZKrUhUHRc4mGhZ1sHE0zurJ9mTXi4UH1oy/KWFRnQ2eq+GfWn9Pa4bh24aIfMlFv37nt7FFBADevHKyV5Pc7U8XuCgJMVQD79qDeeYFOEe7Iow3Odjv9bsB3MpbZB41wweOzvTr/y1fmcY+mRR7UFvxsoTVOw2dVP7pI7Vl4cReSJcINrISUnrSlBa7aPSeXdzKJAFHSN6aSYfTk5bW2Cn51/kQCuAqQ62awz9YS+iSkglRDtzeBexWLk7sFsO8wjgUY6LaMDiJD39H0jEQMPwFguWpV6Hc+SphMLGIkH2SbgyqxwJGGTj5V14xVX4QxUU+bZXM4bMhZTTg74tZMp4gSPkhcpRfWeyIoaz+y6zN36qlE62oBUtLLfQ3FC8ukNipGtxsmO4GhcKIdaPpyKv9JlHYbuT3ET52mnvPwM2LOmkLKOZxl1G5lDVt+voWdnAZM00F+n2/Irzopjym8cuy93ehH45F+su8//2o08osD0t8pWYErUX7+WjVj6Pd25MC+vzU4RwzE46QoCiit8+x+t/TUGgrUDyvtA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB9P251MB0618.EURP251.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(346002)(366004)(396003)(39830400003)(42606007)(376002)(136003)(31686004)(8936002)(186003)(44832011)(83380400001)(26005)(508600001)(5660300002)(2616005)(8676002)(86362001)(36756003)(6486002)(4326008)(956004)(53546011)(38350700002)(38100700002)(2906002)(66946007)(66556008)(66476007)(31696002)(316002)(3450700001)(6666004)(52116002)(16576012)(43740500002)(45980500001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?T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SDY5Mzl3NTc0WjlyYlB4anlQc3RF?= =?utf-8?B?RndTQXkrenFPMHNkSEtnZXFOampBOXBQN21sb2pRYUJleGJCcHIzV3VjdnRR?= =?utf-8?B?RlA0UlZZZi8vSHJJd20va1JLeDg0UFJGNzMyUlIzSEJNSXZpVlB1Q3hDU1ZY?= =?utf-8?B?eUNDRjFMRGhoMFY0UlQwV1ZCYWFLTWZDUnV3dXlkZXNBL1BQZnZIYS9VYnFY?= =?utf-8?B?NGp5U29jSWNxKzJwY0F5WGR5T2NTckNYWmFnNjUvbUk1ZW5jY3ROUXd2NWFv?= =?utf-8?B?U0FVZXludDYvWkh5VHl5RGl1MXFxd3YzQ3pPV0dLTWpUd21WK20xR1NoZXA2?= =?utf-8?B?WkxrVTNhbG1MVGk3N3F5c0hSVjlTQm9CUnVTZzU1czFpdWVXUFNMRnpJMFVy?= =?utf-8?B?bFJLUUlZc0xVVTNjWnNnZFp4UCtHNVhKdmhyU1BxSllFWXZoVE0yV3lBM3U3?= =?utf-8?B?Zi9LeGMyZ00raUpCZ2Z3cUtOT3RBPT0=?= X-OriginatorOrg: t2data.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6d595325-1b56-4549-199b-08d9b9a755dd X-MS-Exchange-CrossTenant-AuthSource: DB9P251MB0618.EURP251.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2021 17:31:00.3205 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 27928da5-aacd-4ba1-9566-c748a6863e6c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: BAydf1z9t5ns38BseZpwV+PzsQPq8hmXGxjq0T64tOk6ZL3SDiVcJcWMvyYtxMlb8IUj/LxgIIjG1UtXUymlylITetmLPBa8QUP3OXiRWrE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9P251MB0171 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-3.6 required=4.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,MSGID_FROM_MTA_HEADER,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Subject: Re: [ptxdist] [PATCH 1/2] ptxd_make_world_{dtb, dtbo}: add 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, christian.melki@t2data.com Cc: m.tretter@pengutronix.de 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 Hi! I like this take on dtbos! On 12/7/21 16:39, Michael Riesch wrote: > Make ptxd_make_dtb more general and provide suitable wrappers to > support the generation of device tree overlays. > > Signed-off-by: Michael Riesch > --- > rules/post/ptxd_make_world_dtbo.make | 21 +++++++ > scripts/lib/ptxd_make_world_dtb.sh | 82 ++++++++++++++++++++-------- > 2 files changed, 80 insertions(+), 23 deletions(-) > create mode 100644 rules/post/ptxd_make_world_dtbo.make > > diff --git a/rules/post/ptxd_make_world_dtbo.make b/rules/post/ptxd_make_world_dtbo.make > new file mode 100644 > index 000000000..61babc653 > --- /dev/null > +++ b/rules/post/ptxd_make_world_dtbo.make > @@ -0,0 +1,21 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2020 by Michael Tretter > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +world/dtbo/env = \ > + $(call world/env, $(1)) \ > + pkg_dtso_path="$($(1)_DTSO_PATH)" \ > + pkg_dtso="$($(1)_DTSO)" \ > + pkg_dtbo_dir="$($(1)_DTBO_DIR)" \ > + pkg_kernel_src="$($(1)_KERNEL_DIR)" \ > + pkg_arch="$(GENERIC_KERNEL_ARCH)" > + > +world/dtbo = \ > + $(call world/dtbo/env,$(strip $(1))) \ > + ptxd_make_world_dtbo > + > +# vim: syntax=make > diff --git a/scripts/lib/ptxd_make_world_dtb.sh b/scripts/lib/ptxd_make_world_dtb.sh > index f5e796b9d..c1ded5ffb 100644 > --- a/scripts/lib/ptxd_make_world_dtb.sh > +++ b/scripts/lib/ptxd_make_world_dtb.sh > @@ -9,18 +9,10 @@ > ptxd_make_dtb() { > local dtc dts tmp_dts dtb deps tmp_deps > > - if [[ "${dts_dts}" =~ ^/.* ]]; then > - ptxd_bailout "'${dts_dts}' must not be an absolute path!" \ > - "Use _DTS_PATH to specify the search path." > - fi > - > - if ! ptxd_in_path pkg_dts_path "${dts_dts}"; then > - ptxd_bailout "Device-tree '${dts_dts}' not found in '${pkg_dts_path}'." > - fi > - dts="${ptxd_reply}" > - dtb="${dtb_dir}/$(basename ${dts/%.dts/.dtb})" > + dts="${dtb_source}" > + dtb="${dtb_target}" > > - dtc="${pkg_build_dir}/scripts/dtc/dtc" > + dtc="${dtb_kernel_dir}/scripts/dtc/dtc" > if [ ! -x "${dtc}" ]; then > dtc=dtc > fi > @@ -39,16 +31,16 @@ ptxd_make_dtb() { > -Wp,-MT,${dtb_deps_target} \ > -nostdinc \ > -I"$(dirname "${dts}")" \ > - -I${pkg_dir}/arch/${pkg_arch}/boot/dts \ > - -I${pkg_dir}/arch/${pkg_arch}/boot/dts/include \ > - -I${pkg_dir}/scripts/dtc/include-prefixes \ > - -I${pkg_dir}/drivers/of/testcase-data \ > - -I${pkg_dir}/include \ > + -I${dtb_kernel_dir}/arch/${pkg_arch}/boot/dts \ > + -I${dtb_kernel_dir}/arch/${pkg_arch}/boot/dts/include \ > + -I${dtb_kernel_dir}/scripts/dtc/include-prefixes \ > + -I${dtb_kernel_dir}/drivers/of/testcase-data \ > + -I${dtb_kernel_dir}/include \ > -undef -D__DTS__ -x assembler-with-cpp \ > -o ${tmp_dts} \ > ${dts} && > > - sed -e "\;^ ${pkg_dir}[^ ]*;d" \ > + sed -e "\;^ ${dtb_kernel_dir}[^ ]*;d" \ > -e 's;^ \([^ \]*\); $(wildcard \1);' "${tmp_deps}" > "${deps}" && > # empty line in case all dependencies were removed > echo >> "${deps}" && > @@ -57,9 +49,9 @@ ptxd_make_dtb() { > echo "DTC $(ptxd_print_path "${dtb}")" && > ptxd_eval \ > "${dtc}" \ > - $(ptxd_get_ptxconf PTXCONF_DTC_EXTRA_ARGS) \ > + "${dtb_extra_args}" \ > -i "$(dirname "${dts}")" \ > - -i "${pkg_dir}/arch/${pkg_arch}/boot/dts" \ > + -i "${dtb_kernel_dir}/arch/${pkg_arch}/boot/dts" \ > -d "${tmp_deps}" \ > -I dts -O dtb -b 0 \ > -o "${dtb}" "${tmp_dts}" && > @@ -81,17 +73,61 @@ ptxd_make_dtb() { > export -f ptxd_make_dtb > > > +ptxd_make_world_dtbo() { > + local dtb_deps_target dtb_extra_args dtb_kernel_dir dtb_source dtb_target > + > + ptxd_make_world_init || break > + > + dtb_deps_target="${ptx_state_dir}/${pkg_stamp}" > + dtb_extra_args="-@" Looks ok. Do we need to do a dtc version check? 1.4.4+ I think. Maybe a bit excessive? > + dtb_kernel_dir="${pkg_kernel_src}" > + if [ -z $dtb_kernel_dir ]; then > + dtb_kernel_dir="${pkg_dir}" > + fi > + > + echo -e "\nBuilding device tree overlays..." > + > + for overlay in ${pkg_dtso}; do > + if [[ "${overlay}" =~ ^/.* ]]; then > + ptxd_bailout "'${overlay}' must not be an absolute path!" \ > + "Use _DTSO_PATH to specify the search path." > + fi > + > + if ! ptxd_in_path pkg_dtso_path "${overlay}"; then > + ptxd_bailout "Overlay '${overlay}' not found in '${pkg_dtso_path}'." > + fi > + dtb_source="${ptxd_reply}" > + dtb_target="${pkg_pkg_dir}/${pkg_dtbo_dir}/$(basename ${overlay/%.dts*/.dtbo})" > + > + ptxd_make_dtb || break > + done > +} > +export -f ptxd_make_world_dtbo > + > + > ptxd_make_world_dtb() { > - local dtb_deps_target dtb_dir > + local dtb_deps_target dtb_extra_args dtb_kernel_dir dtb_source dtb_target > > ptxd_make_world_init || break > > dtb_deps_target="${ptx_state_dir}/${pkg_stamp}" > - dtb_dir="${pkg_pkg_dir}/boot" > + dtb_extra_args="$(ptxd_get_ptxconf PTXCONF_DTC_EXTRA_ARGS)" Not sure I follow here. Must not the dtb itself be built with -@ for symbols if dtbos are used? Does EXTRA_ARGS default to -@ or something? > + dtb_kernel_dir="${pkg_dir}" > + > + echo -e "\nBuilding device trees..." > + > + for tree in ${pkg_dts}; do > + if [[ "${tree}" =~ ^/.* ]]; then > + ptxd_bailout "'${tree}' must not be an absolute path!" \ > + "Use _DTS_PATH to specify the search path." > + fi > > - echo -e "\nBuilding Device trees..." > + if ! ptxd_in_path pkg_dts_path "${tree}"; then > + ptxd_bailout "Overlay '${tree}' not found in '${pkg_dts_path}'." > + fi > + dtb_source="${ptxd_reply}" > + dtb_target="${pkg_pkg_dir}/boot/$(basename ${tree/%.dts/.dtb})" Static output dir path? > > - for dts_dts in ${pkg_dts}; do > ptxd_make_dtb || break > done > } > _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de