From: "Maxin B. John" <maxin.john@intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 2/2] image.bbclass: improve reproducibility
Date: Thu, 16 Nov 2017 17:56:07 +0200 [thread overview]
Message-ID: <1510847767-2966-2-git-send-email-maxin.john@intel.com> (raw)
In-Reply-To: <1510847767-2966-1-git-send-email-maxin.john@intel.com>
Improve reproducibility of builds by adding --apparent-size to du -ks in
get_rootfs_size
[YOCTO #12235]
Signed-off-by: Maxin B. John <maxin.john@intel.com>
---
meta/classes/image.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 0d14250..a24a561 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -524,7 +524,7 @@ def get_rootfs_size(d):
initramfs_fstypes = d.getVar('INITRAMFS_FSTYPES') or ''
initramfs_maxsize = d.getVar('INITRAMFS_MAXSIZE')
- output = subprocess.check_output(['du', '-ks',
+ output = subprocess.check_output(['du', '--apparent-size', '-ks',
d.getVar('IMAGE_ROOTFS')])
size_kb = int(output.split()[0])
base_size = size_kb * overhead_factor
--
2.4.0
next prev parent reply other threads:[~2017-11-16 15:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-16 15:56 [PATCH 1/2] libogg: upgrade to 1.3.3 Maxin B. John
2017-11-16 15:56 ` Maxin B. John [this message]
2017-11-21 10:59 ` [PATCH 2/2] image.bbclass: improve reproducibility Burton, Ross
2017-11-21 11:15 ` Maxin B. John
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1510847767-2966-2-git-send-email-maxin.john@intel.com \
--to=maxin.john@intel.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox