From patchwork Thu Jun 27 12:28:53 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 167969 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp2280641ilk; Thu, 27 Jun 2019 05:29:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxccBLB7gyLjNqGFMak7tzLvC0Ssckn5+sVV4XEZH7HVjUg5lkN0bAPYmvQgFmJTmMSHN7e X-Received: by 2002:a17:902:bc83:: with SMTP id bb3mr4577719plb.56.1561638549359; Thu, 27 Jun 2019 05:29:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561638549; cv=none; d=google.com; s=arc-20160816; b=cnInI2wIl0k3U2aP3RqLO4QHWFq/peU+Y+c5wwfK7RksTbAeGla6ZPECNz1YUAH14a OBL/oDIxX2Xk/AYSow2C7mYcFcep6fuEN5YN+3yRWCQBtdFWXFfvshbQEEpM5eMGdZIS vAjNrF22YQSWAslYSSXAEDOXX2kEknVFjn1TA5yrLekc10gPZedaTPhRyC807gJjhK23 EREj5l4UU7cF3jmeQ8Ko3LhWyLCPjfxiMI0W0RgyoWFhSaU3rOZmU5wDkUXDGb8ciIxE L5eH9tiy4wRoo9UI3nDeJ6nrbJKO28wTneqUhUZFI0TGmHIquSh9SKEVTJ2bN8rQFc8I vRuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to; bh=InYARL1KwDJPA8FybSpj8fDJ8/qDs9lZx908WsSU5oM=; b=gn5ZYLSh/YB2KIzs1pc6oAtgO7bstO3GWN1Ej9NmuJe8un6obn39g9P+iVgfln3iQ/ 3EHPqXMrCYbveiDh5cU2t7bMaW6VDA1T1Bbm1t6Skc7x8+ZMHvUWX7HOt6acXIZZArEU QQYUX9W60f3Bpjqx6nj4C8USX+iwHeQlozeIDXHw954Wycdfjmyfv+7WGj7PUpC3B0Rv HM/6+KJwKRxIQIFH6YyyejzTRKRQ0pVfndwKy99loGgWLiqM5c+72O19KRCjT2oAYzWj Vuf9qn+0p0xQBNEfsvc56qBM1jcFp7AtMYj8lIEQpgumJrUTdwYbtFv8q2VKBdcoAQQo v7iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=lMdbvtjM; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id d18si2631727pfn.202.2019.06.27.05.29.08; Thu, 27 Jun 2019 05:29:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@intel-com.20150623.gappssmtp.com header.s=20150623 header.b=lMdbvtjM; spf=pass (google.com: best guess record for domain of openembedded-core-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-core-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 4F06D7E901; Thu, 27 Jun 2019 12:29:00 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by mail.openembedded.org (Postfix) with ESMTP id 2A6287E7D1 for ; Thu, 27 Jun 2019 12:28:57 +0000 (UTC) Received: by mail-wm1-f67.google.com with SMTP id a15so5545861wmj.5 for ; Thu, 27 Jun 2019 05:28:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id; bh=s/Rhgsp4M0bD57MKHQoBfJ700FdE6BXkaanEakDxsVw=; b=lMdbvtjMUXZkKZwPd6KUv6AIfFuAqrAH7JC87+HdJRUqYoK/eBSoGth0HOTdQKgdLm 5QdorAi7wjW+x8pFlEaFo9hMwrcnJU0BpKCTCvb8+JbDwGky0YkJ/mh0cg8qOHH/TcAc v8vOHtdL74cJOARBJc9UzphNFOimjRkKsRClNoa8IFoBo0ADyJLQ4+BnEq9+W8lui5Op +mG3mp11s680MQl3ZLHrr8iiGo2BVryu+qJrkb5R2OliXDBm1DVJQg423LZIqXHV/ogr TJIYN+a7cfd6rdePXyjiRZdsPSM6sckIrxROUl7oPdzm+6OOs63U2hI4aPNkKhfRJhLU 3eUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id; bh=s/Rhgsp4M0bD57MKHQoBfJ700FdE6BXkaanEakDxsVw=; b=Mr9Y+y9Jwml+tXT8bdgD+qq+iOGOcxnNrkapx9Koop9NHA19WL+OiiUDtfkeJw8wzI 2MbIF9dW2q2VWTjGZQ0OEBsVtmS2OujUUUZgdNZw/8LWJLPEbpdvEBs/sHVpyRIeM2Q1 VQNpGi500d9lULVwMU3d7156nWXT2QNxcXZjmP5qVdak4ZVRe6uXHSAVsSqNgfRO8Xc7 X1aoM85GmxhC6okhvGmYuuiyuUKuEa3xsmvyddYtLy0E+iF/v+GgyKqY5uSzoCEqfTnV 9EQtPKFIH8CuO5q78i4npG3N/IXk39WDcHrujHYaaWCS+A7F7gKl9cjWvuwgbqPFZPjv o5HA== X-Gm-Message-State: APjAAAWrZWO1khtyNNUYZLcRTeSBpMGaZELxdkLGLBNoj08IM9cnvvsz NBl5qEtMvL2lTFbesCDN3UouogpRbc8= X-Received: by 2002:a1c:96c7:: with SMTP id y190mr2821271wmd.87.1561638538369; Thu, 27 Jun 2019 05:28:58 -0700 (PDT) Received: from flashheart.burtonini.com (35.106.2.81.in-addr.arpa. [81.2.106.35]) by smtp.gmail.com with ESMTPSA id f2sm1371248wrq.48.2019.06.27.05.28.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 27 Jun 2019 05:28:57 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Thu, 27 Jun 2019 13:28:53 +0100 Message-Id: <20190627122854.28435-1-ross.burton@intel.com> X-Mailer: git-send-email 2.11.0 Subject: [OE-core] [PATCH 1/2] buildhistory: write the contents of the sysroot X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org Changes to the sysroot as just as interesting during development, so write the file listing for the sysroot to buildhistory too. Signed-off-by: Ross Burton --- meta/classes/buildhistory.bbclass | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core Signed-off-by: Ross Burton <ross.burton@intel.com>
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 2e501df24b4..baa7c8e2799 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -60,15 +60,23 @@ SSTATEPOSTUNPACKFUNCS[vardepvalueexclude] .= "| buildhistory_emit_outputsigs" # When extending build history, derive your class from buildhistory.bbclass # and extend this list here with the additional files created by the derived # class. -BUILDHISTORY_PRESERVE = "latest latest_srcrev" +BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot" PATCH_GIT_USER_EMAIL ?= "buildhistory@oe" PATCH_GIT_USER_NAME ?= "OpenEmbedded" +buildhistory_emit_sysroot() { + mkdir --parents ${BUILDHISTORY_DIR_PACKAGE} + buildhistory_list_files ${SYSROOT_DESTDIR} ${BUILDHISTORY_DIR_PACKAGE}/sysroot +} + # # Write out metadata about this package for comparison when writing future packages # python buildhistory_emit_pkghistory() { + if d.getVar('BB_CURRENTTASK') in ['populate_sysroot', 'populate_sysroot_setscene']: + bb.build.exec_func("buildhistory_emit_sysroot", d) + if not d.getVar('BB_CURRENTTASK') in ['packagedata', 'packagedata_setscene']: return 0