From patchwork Mon Jul 8 23:46:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ross Burton X-Patchwork-Id: 168695 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp7775021ilk; Mon, 8 Jul 2019 16:47:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxxt9FF4iFDOH8f/uXfsM+1jBMO0oRP1yVl7lV6E8E0Ce5SOm28T5qE711Kp0Ouc3nUDl0j X-Received: by 2002:a17:90a:4f0e:: with SMTP id p14mr28000765pjh.40.1562629645462; Mon, 08 Jul 2019 16:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562629645; cv=none; d=google.com; s=arc-20160816; b=xrWj4hKO42H1+t7HKwVa8L3rRlMqi/ZPOfESH25FLhPI6/jvQ70PtWI+VDyTc9saNo K72BVF28CpwqvEK66NddifGgx3EO/99ZYL6PSxi8CM6HQRHN6LC5kuaB5NxEdpMJZxlF 16Qk+N8UXEfQeb+6rgrRYFWtAWSjGPssl1BZ5CFGl0Zm93jVIyhszdZT8UP1spYh6j2t hQzzNsWnKfcTBWHC+6MCyGWmfhuPwEQiG0mHa6X7EpT4njpMfB2kDTa8zu9tmtxfHlsD JGLxvwAcpmUNotVRkHHVHU8VdmozJzgfQgjp6T4dqgQymWdmIk8+jNlGl5xjnHyxUO6a RlpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=8cec5TnS3X6a68Ekgkmh6Qk/tjLjv1guG02DLy/KDo0=; b=ylbKKpH51QZkSK9kq7kCrA+E3GHHPU7yru1/EDIeoA4aWg61jFJIPFRLYb8oUJQHAk rezVmfAxAGCn9Hg8AQrnrCRU8YXXc+0hyDq1ZLbaVqC0gHK7Ui2HA4xOu/gK/ke2IJ3j QCYmxqbRUeyCPgPObSGdyotxKiPTn/pvn99Sg/y2GIiJgfVTl9KWIhuoq1g7+WZwkXtS YOPPpHLD1YLOwrr1WyhOx9o6WhhGjQQO9EWH+LWU9GaIwWdEsviGtPUovcaquYC8kjK0 xw7e3FyCiNOYf2JC77KgLfY2vtwMd7GK16SwkHJMZsXo2eYPetHulQgVwK7y7EXlIySY o9Zw== 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=qZppuBZR; 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 t3si15687395plz.101.2019.07.08.16.47.25; Mon, 08 Jul 2019 16:47:25 -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=qZppuBZR; 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 9299C7DEA7; Mon, 8 Jul 2019 23:47:22 +0000 (UTC) X-Original-To: openembedded-core@lists.openembedded.org Delivered-To: openembedded-core@lists.openembedded.org Received: from mail-wm1-f68.google.com (mail-wm1-f68.google.com [209.85.128.68]) by mail.openembedded.org (Postfix) with ESMTP id DD1FD7DE8F for ; Mon, 8 Jul 2019 23:46:51 +0000 (UTC) Received: by mail-wm1-f68.google.com with SMTP id 207so1185921wma.1 for ; Mon, 08 Jul 2019 16:46:53 -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:mime-version :content-transfer-encoding; bh=jkl42tlcTAl6TZ80Xcc6Bl7UAKya5DR7D3eMsDBaMRw=; b=qZppuBZR5ZVr9NQD+HWwqPU1g1rmIrUo4cLFWD4ed1eRN7QEtZYMhXNK4srP/Wpl6B woBgH4B+9StZd/7lZl7EupPT5u49bDXL6Do/1kn8Jv6FZp0fDLW45B8JnDNywtAN8PHu aveOZawUv6TNpC5QpspzxbUlpluMn05YQitWDs0odsOC4HR+Bg7LLT8Mml52QCn/rT3t 3Cx6bddpAihef2kOElG+hKE60ZtzZsOVUm427xC+MqyZfYq7jxMG2c/uQgpT1V0bRStA g7+s8gKxzQj5XXX7S7DvdCQdZPCJHADlEJ2xbhUsHdfE0dYhvggm5o1GWW4drSY63Cvd 1AVg== 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:mime-version :content-transfer-encoding; bh=jkl42tlcTAl6TZ80Xcc6Bl7UAKya5DR7D3eMsDBaMRw=; b=AUUasLlLh+MwPIvZaKhd6pPhFnGkdsBVlWFvuu15t+7CztStkW63sEmyvbdET96eNP kpcj1Ih1sKrynW1zrGnE0+G8k25qIRqWpe1/EYEtCSz/w3ktXMdBkeI1LfJwsDw8EaQ7 rM056W6h5GIZnj1xF3KY8AthwJnPfdNzkxNRipmCD3UNygPeT4vSq8U7c+0b4ZzgIDgZ Nuc9sxHpoAF/aIWxWAm/f/6jUD5pijgh+ULsMGDj5i2zkwJG/5c4jeVbIps1G+Ic/Qgk S68ICrcQ4TPJaZx9iwWTdIAGYxfWNAHUHNxiiMyekt1x2YJYh2Vi8XsDnKhIY4pMA+Jt ZzfQ== X-Gm-Message-State: APjAAAXF3zAXzjaig3ZlrGglo/sskIJbZRNRVBxhi6Z594Pg6dHeqchk ZGNbUgsxa8Y65r2/B66HrjrKnv0qzW4= X-Received: by 2002:a7b:c310:: with SMTP id k16mr17674329wmj.133.1562629612480; Mon, 08 Jul 2019 16:46:52 -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 s18sm1024573wra.47.2019.07.08.16.46.51 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 08 Jul 2019 16:46:51 -0700 (PDT) From: Ross Burton To: openembedded-core@lists.openembedded.org Date: Tue, 9 Jul 2019 00:46:50 +0100 Message-Id: <20190708234650.15687-1-ross.burton@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [OE-core] [PATCH] buildhistory: filter out the unexpected prefix for native/cross sysroots 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: , Sender: openembedded-core-bounces@lists.openembedded.org Errors-To: openembedded-core-bounces@lists.openembedded.org For various technical reasons, native and cross builds have a prefix that includes the full path to the sysroot. As these are stripped away before the files are used in the sysroot, we should also filter them out of the buildhistory report. This both removes noise when sharing a buildhistory repository between different build directories, and improves the accuracy of the reports. Signed-off-by: Ross Burton --- meta/classes/buildhistory.bbclass | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) -- 2.20.1 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 5bf27268107..f986f7c7945 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass @@ -65,9 +65,20 @@ BUILDHISTORY_PRESERVE = "latest latest_srcrev sysroot" PATCH_GIT_USER_EMAIL ?= "buildhistory@oe" PATCH_GIT_USER_NAME ?= "OpenEmbedded" +# +# Write out the contents of the sysroot +# buildhistory_emit_sysroot() { mkdir --parents ${BUILDHISTORY_DIR_PACKAGE} - buildhistory_list_files_no_owners ${SYSROOT_DESTDIR} ${BUILDHISTORY_DIR_PACKAGE}/sysroot + case ${CLASSOVERRIDE} in + class-native|class-cross|class-crosssdk) + BASE=${SYSROOT_DESTDIR}/${STAGING_DIR_NATIVE} + ;; + *) + BASE=${SYSROOT_DESTDIR} + ;; + esac + buildhistory_list_files_no_owners $BASE ${BUILDHISTORY_DIR_PACKAGE}/sysroot } #