summaryrefslogtreecommitdiffstats
path: root/meta/site
diff options
context:
space:
mode:
authorSean Nyekjaer <sean.nyekjaer@prevas.dk>2018-02-12 10:41:17 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-02-16 18:05:40 +0000
commitc4ca3c4a5c03bf7dd9a97585af382d26b96fdb39 (patch)
tree52c4b5ffa45a46429762964650c42a892bcf9be9 /meta/site
parentfeded5fe2755fc6523c235fd6e82a0972e197c08 (diff)
downloadpoky-c4ca3c4a5c03bf7dd9a97585af382d26b96fdb39.tar.gz
site/common-linux: coreutils: get the uptime program to work
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. (From OE-Core rev: 199b661c0699eb31df5bc73f2e3dce6a2db4585d) Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/site')
-rw-r--r--meta/site/common-linux1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/site/common-linux b/meta/site/common-linux
index 2958716395..71ec961b15 100644
--- a/meta/site/common-linux
+++ b/meta/site/common-linux
@@ -48,6 +48,7 @@ hw_cv_func_vsnprintf_c99=${hw_cv_func_vsnprintf_c99=yes}
48 48
49# coreutils 49# coreutils
50gl_cv_func_fstatat_zero_flag=${gl_cv_func_fstatat_zero_flag=yes} 50gl_cv_func_fstatat_zero_flag=${gl_cv_func_fstatat_zero_flag=yes}
51gl_cv_have_proc_uptime=${gl_cv_have_proc_uptime=yes}
51 52
52# mysql 53# mysql
53ac_cv_sys_restartable_syscalls=${ac_cv_sys_restartable_syscalls=yes} 54ac_cv_sys_restartable_syscalls=${ac_cv_sys_restartable_syscalls=yes}