commit | d23b5b74cfadea0618e5984e8d3565d2696d26b8 | [log] [tgz] |
---|---|---|
author | Oliver O'Halloran <oohall@gmail.com> | Tue Jul 30 17:46:11 2019 +1000 |
committer | Adriana Kobylak <anoo@linux.ibm.com> | Mon Aug 19 17:28:13 2019 +0000 |
tree | f6770e7044b6d58bfb9c70f895ca062eed776456 | |
parent | 4d3d91262bcaf1afc2eee54145052106644410be [diff] |
Use wc to calculate file sizes Milton pointed out that for the du command the -b and -k options aren't really compatible. From the man page: -b, --bytes equivalent to '--apparent-size --block-size=1' -k like --block-size=1K As a result 'du -bk' will act as if the following args were used: --apparent-size --block-size=1K However, it's probably not safe to assume this. Fix this by replacing the use of du with "wc -c". POSIX requires that wc -c prints size of each input file in bytes so it should be safe (and portable). Fixes: adf91f58dac9 ("Fix generate-tar on ppc64 hosts") Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Change-Id: I1baf96b4c5304a27ddedf3384cf23d2c346134d8
OpenPower PNOR (Processor NOR) Code Management provides a set of host software management applications for OpenPower systems. The host firmware is stored on the PNOR chip. More information can be found at Software Architecture or Host Code Update
To build this package, do the following steps: 1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make To clean the repository run `./bootstrap.sh clean`.