[yocto] FW: busybox date cli does not support %N (nanoseconds)

Thanassis Silis djnass_18 at hotmail.com
Tue Oct 13 17:42:44 PDT 2015


I was looking around for all busybox related files  under <yocto_root>/sources and found these 2 busybox defconfigs which look promising

./poky/meta-yocto/recipes-core/busybox/busybox-1.20.2/poky-tiny/defconfig
and
./poky/meta/recipes-core/busybox/busybox-1.20.2/defconfig

these are not exactly same:
diff ./poky/meta-yocto/recipes-core/busybox/busybox-1.20.2/poky-tiny/defconfig ./poky/meta/recipes-core/busybox/busybox-1.20.2/defconfig
3,4c3,4
< # Busybox version: 1.19.3
< # Wed Nov 30 09:33:16 2011
---
> # Busybox version: 1.20.2
> # Mon Aug 20 17:01:45 2012

but most importantly they both had disabled this related option:

# CONFIG_FEATURE_DATE_NANO is not set

The question is , in which one of the 2 should I enable it so that busybox's "date +%N" function will understand and export nanoseconds?

thank you in advance for your help!


From: djnass_18 at hotmail.com
To: leonardo.sandoval.gonzalez at linux.intel.com
Subject: RE: [yocto] FW: busybox date cli does not support %N (nanoseconds)
Date: Tue, 13 Oct 2015 20:51:33 +0000




Yes it is,
sorry for the omission - it was only in the email.
The problem persists.

> Date: Tue, 13 Oct 2015 15:21:33 -0500
> From: leonardo.sandoval.gonzalez at linux.intel.com
> To: djnass_18 at hotmail.com
> Subject: Re: [yocto] FW: busybox date cli does not support %N (nanoseconds)
> 
> isn't it date +%N? (with the plus sign)
> 
> On 10/13/2015 02:12 PM, Thanassis Silis wrote:
> >
> >
> > From: djnass_18 at hotmail.com
> > To: yocto-bounces at yoctoproject.org
> > Subject: busybox date cli does not support %N (nanoseconds)
> > Date: Tue, 13 Oct 2015 15:23:20 +0000
> >
> >
> >
> >
> > Hi all,
> > I am building an fsl-image-test and the date command when run as "date %N" outputs %N instead on the nanoseconds.
> >
> > what options do I have to get nanoseconds?
> >
> > perhaps I have missed a kernel option?
> > perhaps I can use something else to grab nanoseconds in the shell?
> >
> > thank you
> >
> >   		 	   		   		 	   		
> >
> >
> >
 		 	   		   		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20151014/26daf141/attachment.html>


More information about the yocto mailing list