From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6613620343774904320 X-Received: by 2002:a9d:522f:: with SMTP id e47mr24380475oth.68.1539853481248; Thu, 18 Oct 2018 02:04:41 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a9d:bc5:: with SMTP id 63ls14827349oth.3.gmail; Thu, 18 Oct 2018 02:04:41 -0700 (PDT) X-Google-Smtp-Source: ACcGV62KJhb8Kt/beZfHK7Gc9AxLKepkEcy4dPHE0HVZ36/6xA1WXs4ZAsV9f0ClooHwcBS6O7Ps X-Received: by 2002:a9d:490e:: with SMTP id e14mr24366226otf.43.1539853480984; Thu, 18 Oct 2018 02:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539853480; cv=none; d=google.com; s=arc-20160816; b=ywEcbgh0j56gGeXrGhG0gxl3Pq+/YiugLI8CKsaXFyJGV96ipxiKb/bT/EMzLJGqKw SGDVOcSrtSULw24iZZGqm4u6+N6undAHDEJ91L0C1LyBdTNYrSbJu3M7GackvOwu2liB nMwVHzVyir2feezl0M9gw8RBYbLkJk6NS89tvnwUPtSVTA7hAcDozYzkl22XVjQmqIzM pCeiz73xf1H41J9BvhXf++y3EnmfukToDdk2sH3F1s9+wTUNo1OmswueftszpmxMKGVx DSergWwPiKoTE3oh3t4j72FjUN3q0WO1CFWlF+za3iFJRKPfe97GUGoIQw3N++a1noX8 hj2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:message-id:date:subject:cc:to:from; bh=gV1NDCzAQOcBS5/+ULVGN8gYt3XJvVhBRg/cP1VQAUs=; b=s2X1ZcTFhMe4KL3g3S+OyDYCnU8nY6xZ+GPRDxXJrQGqwkMeUYmBHEaf/Ohz8YMEdg A2X0tWQNdmwhtH/o8jDoUnyStMd1dHb8GXeq+m7urfbizaZZAZBNBq39A1w2ZGSNEaHu an45R4OHbmDcJmrGIFrfKpwWqDbl/aL4gR0h5bZtT9+sTWQmJUOAEg6Op7cPu9EqhaJA rZKIGU8VjlHPzzuLqzqH2GwCFdc4cB7qCzAOW6q0isG5FTA8qGYAxKGLiAkwgcGpeN6r RO4DiSiiTE38X66Iyku+6uAWQoRcOfpHh4AoBfPUCKu+nrw4s1rzcz/6mZB7x3dNDUMg b8Mg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Return-Path: Received: from relay1.mentorg.com (relay1.mentorg.com. [192.94.38.131]) by gmr-mx.google.com with ESMTPS id 3si587546ott.3.2018.10.18.02.04.40 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Oct 2018 02:04:40 -0700 (PDT) Received-SPF: pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) client-ip=192.94.38.131; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of cedric_hombourger@mentor.com designates 192.94.38.131 as permitted sender) smtp.mailfrom=Cedric_Hombourger@mentor.com Received: from nat-ies.mentorg.com ([192.94.31.2] helo=svr-ies-mbx-02.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1gD4ES-0005cp-8O from Cedric_Hombourger@mentor.com for isar-users@googlegroups.com; Thu, 18 Oct 2018 02:04:40 -0700 Received: from FRG-W10-HOMBOUR.world.mentorg.com (137.202.0.90) by svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Thu, 18 Oct 2018 10:04:36 +0100 From: Cedric Hombourger To: CC: Cedric Hombourger Subject: [PATCH] image: include image name in the kernel/initrd image copies Date: Thu, 18 Oct 2018 11:04:28 +0200 Message-ID: <1539853468-156-1-git-send-email-Cedric_Hombourger@mentor.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: SVR-IES-MBX-07.mgc.mentorg.com (139.181.222.7) To svr-ies-mbx-02.mgc.mentorg.com (139.181.222.2) X-TUID: RfoWSOjnVzRo The kernel and initrd images are really image-specific (especially the later with the initrd being created/updated as packages get installed into the root file-system). Make sure we retain a per-image copy of these images in the image deploy directory by inserting the name of the image (${PN}) into the full name of the artifacts (set in ${KERNEL_IMAGE} and ${INITRD_IMAGE}). Signed-off-by: Cedric Hombourger --- meta/classes/image.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 05ff06f..c0af557 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -22,7 +22,8 @@ def get_image_name(d, name_link): if os.path.exists(path_link): base = os.path.basename(os.path.realpath(path_link)) full = base - full += "_" + d.getVar("DISTRO", True) + full += "_" + d.getVar("PN", True) + full += "-" + d.getVar("DISTRO", True) full += "-" + d.getVar("MACHINE", True) return [base, full] if os.path.islink(path_link): -- 2.11.0