[yocto] [meta-raspberrypi] du giving non-integer result?

Michael Fainstein Michael.Fainstein at ecitele.com
Mon Sep 7 22:56:34 PDT 2015


I saw such behavior in 'expr' when I upgraded bash 3.1 - it started printing floats instead of integers.
You can solve it using awk's OFMT:  awk '{OFMT="%.0f";print $1}'

Michael

-----Original Message-----
From: yocto-bounces at yoctoproject.org [mailto:yocto-bounces at yoctoproject.org] On Behalf Of Trevor Woerner
Sent: Monday, September 07, 2015 10:40 AM
To: Khem Raj
Cc: yocto at yoctoproject.org
Subject: Re: [yocto] [meta-raspberrypi] du giving non-integer result?

On 09/07/15 03:21, Khem Raj wrote:
>> On Sep 6, 2015, at 7:40 PM, Trevor Woerner <twoerner at gmail.com> wrote:
>>
>> I can't explain why, but when I build "core-image-minimal" for
>> MACHINE=raspberrpi2 I get the following SD creation error:
>>
> which shell do you use for /bin/sh

$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Nov 22  2014 /bin/sh -> bash

$ /bin/bash --version
GNU bash, version 4.2.53(1)-release (x86_64-suse-linux-gnu) Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
--
_______________________________________________
yocto mailing list
yocto at yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto



More information about the yocto mailing list