Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 380D2E00C5F; Tue, 8 Jan 2019 19:10:05 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, * medium trust * [198.47.23.248 listed in list.dnswl.org] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 961A9E00B77 for ; Tue, 8 Jan 2019 19:10:04 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x093A3Ar060772 for ; Tue, 8 Jan 2019 21:10:03 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1547003403; bh=5jD663qULbigqC49J1ajhzkmIyhUce6OAz1wqw5OZwY=; h=From:To:CC:Subject:Date; b=xcWh0StqSjM0mRaK/g8vrvlr6B9ABizwgX2txYA0IIWFxeFMGKBDJr6ysCBTnSC3w NUDwvLpxWHoTEZRolABgdVjSbqiXihZpcL8nuD0X/oq90IEeFq95258v95gJxvofmH 5gnQPIxnV18j3EI1Al49B1ZXQM7rIYeNYP8cKmWg= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x093A3D7051649 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 8 Jan 2019 21:10:03 -0600 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 8 Jan 2019 21:10:02 -0600 Received: from dlep33.itg.ti.com (157.170.170.75) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 8 Jan 2019 21:10:02 -0600 Received: from puget.gt.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id x0939xCL029084; Tue, 8 Jan 2019 21:10:00 -0600 From: Denys Dmytriyenko To: Date: Wed, 9 Jan 2019 03:02:12 +0000 Message-ID: <20190109030212.19162-1-denys@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Cc: Suman Anna Subject: [rocko/master][PATCH] cmem.inc: add arm64 support for cmem injection X-BeenThere: meta-ti@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-ti layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2019 03:10:05 -0000 Content-Type: text/plain Since cmem 4.16 now supports arm64, update cmem injection code accordingly to work with arm64 DTS files. Cc: Sam Nelson Cc: Jacob Stiffler Cc: Suman Anna Signed-off-by: Denys Dmytriyenko --- recipes-kernel/linux/cmem.inc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/recipes-kernel/linux/cmem.inc b/recipes-kernel/linux/cmem.inc index 0327557f..5fd0b9d9 100644 --- a/recipes-kernel/linux/cmem.inc +++ b/recipes-kernel/linux/cmem.inc @@ -70,11 +70,14 @@ python do_setup_cmem() { # Get destination directory and destination dtsi filename which adds # the MACHINE prefix. - dst_dir = os.path.join(localdata.getVar('S'), 'arch/arm/boot/dts') + dst_dir = os.path.join(localdata.getVar('S'), localdata.expand('arch/${ARCH}/boot/dts')) dst_dtsi = localdata.expand('${MACHINE}-${CMEM_DTSI}') # Copy cmem.dtsi into source tree - shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,dst_dtsi)) + if localdata.getVar('ARCH') is 'arm64': + shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,'ti',dst_dtsi)) + else: + shutil.copy(os.path.join(src_dir,src_dtsi), os.path.join(dst_dir,dst_dtsi)) # Inject dtsi into each dts in list for dtb in (localdata.getVar('CMEM_DEVICETREE') or '').split(): -- 2.17.1