[OE-core] [PATCH] site/common-linux: coreutils: get the uptime program to work

Andre McCurdy armccurdy at gmail.com
Mon Feb 12 20:19:03 UTC 2018


On Mon, Feb 12, 2018 at 12:10 PM, Khem Raj <raj.khem at gmail.com> wrote:
> On Mon, Feb 12, 2018 at 1:41 AM, Sean Nyekjaer <sean.nyekjaer at prevas.dk> wrote:
>> coreutils configure script needs to know whether /proc/uptime is
>> available, but this is not possible in a cross-compilation
>> context. This leads to an uptime program that fails to work on the
>> target, as it has been compiled without /proc/uptime reading support.
>>
>> This commit fixes that by telling coreutils at configure time that
>> /proc/uptime will be available on the target (which seems to be a
>> reasonable assumption on Linux systems).
>>
>> This commit is made with great inspiration from Thomas Petazzoni's
>> patch to buildroot to fix the same issue.
>>
>
> is there a knob in kernel to disable /proc/uptime ?

No, it's unconditional:

  https://github.com/torvalds/linux/blob/master/fs/proc/Makefile#L23



More information about the Openembedded-core mailing list