From patchwork Fri Mar 31 08:49:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinuvasan Arjunan X-Patchwork-Id: 2754 Return-Path: Received: from shymkent.ilbers.de ([unix socket]) by shymkent (Cyrus 2.5.10-Debian-2.5.10-3+deb9u2) with LMTPA; Fri, 31 Mar 2023 10:50:26 +0200 X-Sieve: CMU Sieve 2.4 Received: from mail-wr1-f60.google.com (mail-wr1-f60.google.com [209.85.221.60]) by shymkent.ilbers.de (8.15.2/8.15.2/Debian-8+deb9u1) with ESMTPS id 32V8oQ65017617 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 31 Mar 2023 10:50:26 +0200 Received: by mail-wr1-f60.google.com with SMTP id u27-20020adfa19b000000b002d3b9266941sf2337480wru.2; Fri, 31 Mar 2023 01:50:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680252620; cv=pass; d=google.com; s=arc-20160816; b=e7YGJertPIHECqDurGvwTNZXnX+j48oTmE2icZAnRrbj8puEDKtCLuB5LEfRJVuDD9 yTEbi0w0D5W8tzrh8iOL1WHMuVAVyF7zAS0bI8+7unq71O7oDh+oArBX9iyoJek/NJqZ N2YVpMRMKOBSBCsTWjgETsWEFg6RW045pHuTvDu+sTr+5VoyoTrO2CzZAZs+gvNGe5LD AAJLWrIKLwdvBzZIso90cGFo4qY0An06Y7QXHlaWsvnyWBvmn91wPShx5paoNhKHZFIN nXs59jIBw91ZgS7BDXh87YE3Aidc4OtjxHP/yIMDOXKJWSaAgTv3QhlharPwic/wSjOs 3AXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:mime-version:message-id:date :subject:cc:to:from:ironport-sdr:sender:dkim-signature; bh=UiviCjEnG7PFxOCMFCr0nef2zpIJJ1RDVmtKi4hPl6g=; b=mwoEjSUNncuuWyZQxFz2UKhHSQx6Qqu1Hsqzpfkm7babaaxRx3E9aQzE4g/uYwuKC7 cba39aiif2HsmmiUrok4l9RDLwZXDBNnvzRDQtbWxHOtRRoaZYgp3C8iOC/CRlk7b9AD Ix6F+ciebzoJ4NyfnGkc1ZHIpHGtLAaKTfKnSMwCAuz1eOezpTplLE3GdEeEdTZHPe9f 89xKwCgjemB0LeGJWKPwfmkJ3KkxfKE5tpLbbMgRLKrGF3S4TMwPp6NjV3D6879Q5PQc 4Bsq1l95xoFxz1gqxnkZshLvez8tVZsl0ZF3f4rq+9MgKSSzxYdlze38iDjZyCOSzR9K d9Xg== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=pass (google.com: domain of srinuvasan_a@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Srinuvasan_A@mentor.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20210112; t=1680252620; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:message-id:date:subject:cc:to:from :ironport-sdr:sender:from:to:cc:subject:date:message-id:reply-to; bh=UiviCjEnG7PFxOCMFCr0nef2zpIJJ1RDVmtKi4hPl6g=; b=X4OEm2jiMjCDpScPDrbwzMKsuqtZygdjI7eb6Ko6CgI+Z9Qnp5cM5e4wXVO6EVkZEZ KgouPM8HO4qo0Pe7KEztDhWJ0VED5UWkVQnQPBGRgYIgggIlS+kUKxcgnI5ELdntyA1e /K1x+cNELPbVcxo7eV6Tc2W/m5LqWZF1E247K7x2WYq8meGdWC19a0hcvu7F0OatSq2A kDcdDhvWrVEY30on3wSZJyD479Y2o6i64XKmuMoqJpsPkAVGixZrYP+JDjofKZskIyeo kU+8d705FT0BMOUlFWoOcqXm7Pn2c7LIvnuM71nZvKsacoRTeCJ8ZFbkxenq2dzRzmCA delw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680252620; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:x-gm-message-state :sender:from:to:cc:subject:date:message-id:reply-to; bh=UiviCjEnG7PFxOCMFCr0nef2zpIJJ1RDVmtKi4hPl6g=; b=A1i4XqUqf1waJv/0hSm89UfagpMwuRqpcCoeAlSdIlPnNh+J4ju82Tzn2TquNgeieU SqMcHz5y/fT/No9+qPkA+x6AjA6aNwB7kP0Erw1LI7CqY/omwGjgG3vicKjiNrcnneDr /atSzmeZkre3TVkYSskB9WciqP1zN+bx+NQjaFh9QttdEPUZPqQONrtGA7QA4hUq5Kfv 9WVHs0CuoN2wFbhFH4DtAduXAMaqHazEsTg1/tab8IX8akzIXRIwlolswLUXcFwreaQC 4+KU3DZK5HjkSDatr8crOCJ/yE66CzfGV7FIv112eN/llT9IsFlorEo3ofCHVp4Zy7+R u44A== Sender: isar-users@googlegroups.com X-Gm-Message-State: AAQBX9cbAQBdTZbuYLXrTxdkJtfsVG1RkOsESL2480QRbQVJT7JxEPyh S9Nem1M1yuV/XgYvidtyDr4= X-Google-Smtp-Source: AKy350acU00K9eBtybvp27AKXsEv0rP6IZ0TjDY6bIxhXoA1zRCPk3XJZTuwzQWkVLyK0GMfZ6nf3Q== X-Received: by 2002:a05:600c:1c23:b0:3ef:6989:19d4 with SMTP id j35-20020a05600c1c2300b003ef698919d4mr3471187wms.0.1680252620401; Fri, 31 Mar 2023 01:50:20 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:5b1c:0:b0:2c5:5262:2e24 with SMTP id bx28-20020a5d5b1c000000b002c552622e24ls2984402wrb.2.-pod-prod-gmail; Fri, 31 Mar 2023 01:50:19 -0700 (PDT) X-Received: by 2002:a5d:638d:0:b0:2c9:bb03:7843 with SMTP id p13-20020a5d638d000000b002c9bb037843mr19519838wru.69.1680252619109; Fri, 31 Mar 2023 01:50:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680252619; cv=none; d=google.com; s=arc-20160816; b=WWVwYKuOHB5yAuAChdyl3/PlmLdHq4H+AeYZIF7p8bqpSBFOe0s+jMu7QAaKTN8MJr Usruzhm4mRfAhJhlzWaACJzTFPF2Vm5vdchVukjqZh3Fhf3CqnXzAvhbWwZVgoJeDQbN L9Oh/lmHqHGia5CIebSRx7iRm8ostHNlGFL22uXU3ZFi+DS2mFYXD+CH/ibm1IS6TmvT ykF1qooLn845XhioVA8DQ15yewz8x4SrtDyWHEDaDMjBx/9JBiO9c2XG55AZVKe2vSYI z25rRGhmVVw8xIkxD3OIlinkWqyPIxEp5bI+hRgcz3r/rr5e1jS8ybxsjIA9NHvoRZdS g8bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:ironport-sdr; bh=S+kylgTHg8U3/Okphv7dwNbAyO/BKAqTdDEyDZ9de3Y=; b=0XboQS/EqxbqfkdWCuwZ+7PwpDSeivL/97HoMhKkobSi3pEHdrvhEr65+M0eV7Cdp/ T8/44xdnExWmK8hi306HGdrjPGcye/q11PoAfejfSZwJujGDOM1Hw8HhS/+FHE3t905o bH31me4h8JQeVHMCLg4D8wzLGJadZ8eNRGhQTwLZrxE+fJfxAauHYDf6knWiY7I6SUel DHZU5dV9KhYptMk0b2g/pnKteDo2EwaucnWPAzz2uunowhPqmIZIui4UB4qqIk10RyTM 3dkO4vcLbn9eQtzw/qNal/cvireTHeHASysnXKdLj7VYrQNhDvZeUYCRDEeoXR1euWkf hTRQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of srinuvasan_a@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Srinuvasan_A@mentor.com Received: from esa4.mentor.iphmx.com (esa4.mentor.iphmx.com. [68.232.137.252]) by gmr-mx.google.com with ESMTPS id m6-20020a056000024600b002c59bef13d2si78204wrz.8.2023.03.31.01.50.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Mar 2023 01:50:19 -0700 (PDT) Received-SPF: pass (google.com: domain of srinuvasan_a@mentor.com designates 68.232.137.252 as permitted sender) client-ip=68.232.137.252; X-IronPort-AV: E=Sophos;i="5.98,307,1673942400"; d="scan'208";a="989571" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa4.mentor.iphmx.com with ESMTP; 31 Mar 2023 00:50:11 -0800 IronPort-SDR: HKL4X9MWdKaZ+roOSLmIpUNPbvF2LA+GtepxWy5ucXgHE3TjGjh5dS8uVqFdT/Ayj8k1Tinkh8 7Ebw4gwerhxHgTVNoSlfogcbzBO5BWZX/EN4ZAgc/HuGqj84NVGS0gQ3//1stUQhAPO6NAsys9 PlJ/GtCNaoa4yC/VTC0qv3SpZYmoVayR5mQRv44TxNm/o9JNQg4Eb5OnGjuAjMTfYzQxrQYOxM MCnYCx8i0qYExE+heS38iGg0kL0qtFHPj2I3MWqo6rJgPwWPdTEOc/F2JRcWaRdeclUByD92CC m/A= From: Srinuvasan Arjunan To: CC: , Srinuvasan A Subject: [PATCH] meta/classes/sdk.bbclass: add --transform in TAR_OPTIONS Date: Fri, 31 Mar 2023 14:19:52 +0530 Message-ID: <20230331084952.414690-1-srinuvasan_a@mentor.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-ClientProxiedBy: svr-orw-mbx-11.mgc.mentorg.com (147.34.90.211) To svr-orw-mbx-13.mgc.mentorg.com (147.34.90.213) X-Original-Sender: srinuvasan_a@mentor.com X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of srinuvasan_a@mentor.com designates 68.232.137.252 as permitted sender) smtp.mailfrom=Srinuvasan_A@mentor.com Precedence: list Mailing-list: list isar-users@googlegroups.com; contact isar-users+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: isar-users@googlegroups.com X-Google-Group-Id: 914930254986 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on shymkent.ilbers.de X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= From: Srinuvasan A When we untar the SDK rootfs archive file, all the contents are extracted into the current directory, not a folder, this looks ugly hence fixed it with the file name transformations option. Signed-off-by: Srinuvasan A --- meta/classes/sdk.bbclass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/classes/sdk.bbclass b/meta/classes/sdk.bbclass index 06cae02..56b650a 100644 --- a/meta/classes/sdk.bbclass +++ b/meta/classes/sdk.bbclass @@ -11,6 +11,8 @@ inherit crossvars BBCLASSEXTEND = "sdk" BPN = "${PN}" +TAR_OPTIONS = "--transform="s|.|$(basename ${PP_DEPLOY}/${IMAGE_FULLNAME})|"" + python sdk_virtclass_handler() { pn = e.data.getVar('PN') if pn.endswith('-sdk'):