[oe-commits] [openembedded-core] 01/16: perf: fix do_compile failure with /tmp mounted with noexec

git at git.openembedded.org git at git.openembedded.org
Sat Oct 20 21:41:22 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit d819e7fa76e2b732aa7c33ab0e9a834781090824
Author: Hongxu Jia <hongxu.jia at windriver.com>
AuthorDate: Thu Oct 18 06:28:44 2018 -0700

    perf: fix do_compile failure with /tmp mounted with noexec
    
    On a builder which has /tmp mounted nexec, the ARM64 generation of
    the sycall table will fail:
    [snip]
    |perf-1.0/tools/perf/arch/arm64/entry/syscalls//mksyscalltbl:
    /tmp/create-table-6VGPSt: Permission denied
    [snip]
    
    To avoid the permission denied error, we must instruct the perf build
    to place temporary files in an appropriate directory (versus always
    using /tmp). To do this, we need both a kernel source change to perf,
    and a recipe change to pass the temp directory in by a TMPDIR variable.
    
    The linux-yocto has a reference kernel change: [perf arm64: Fix generate
    system call table failed with /tmp mounted with noexec], that has also
    been submitted upstream mailing list linux-perf-users at vger.kernel.org
    
    Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
    Reviewed-by: Bruce Ashfield <bruce.ashfield at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-kernel/perf/perf.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 586422f..af09904 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -75,6 +75,7 @@ EXTRA_OEMAKE = '\
     perfexecdir=${libexecdir} \
     NO_GTK2=1 \
     ${PACKAGECONFIG_CONFARGS} \
+    TMPDIR="${B}" \
 '
 
 EXTRA_OEMAKE += "\

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list