[oe-commits] [openembedded-core] 17/27: perf: fix build with kernel older than 4.8

git at git.openembedded.org git at git.openembedded.org
Tue May 29 20:09:49 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 19fb2d11a8bb3c6dfdd5edc1b9155d642dc0f5e0
Author: Martin Jansa <martin.jansa at gmail.com>
AuthorDate: Thu May 24 14:56:01 2018 +0000

    perf: fix build with kernel older than 4.8
    
    * perf is failing to build for me since this oe-core commit:
      commit 9b38c824961fc9dce51bda95c25dac91a69fc64f
      Author: Hongxu Jia <hongxu.jia at windriver.com>
      Date:   Tue Apr 24 11:33:47 2018 +0800
    
        perf: make a copy of kernel source to perf workdir
    
      the problem is that perf sources in kernel older than 4.8 (in my case
      4.4) are depending on the "global" include headers outside tools
      directory, e.g. swab.h in:
      kernel-source/tools$ git grep swab.h
      perf/MANIFEST:include/linux/swab.h
      perf/MANIFEST:include/uapi/linux/swab.h
      perf/util/include/asm/byteorder.h:#include "../../../../include/uapi/linux/swab.h"
    
      this was resolved in 4.8 with:
      commit 7e3f36411342a54f1981fa97b43550b8406a3d69
      Author: Arnaldo Carvalho de Melo <acme at redhat.com>
      Date:   Mon Jul 18 17:42:16 2016 -0300
    
        perf tools: Remove tools/perf/util/include/asm/byteorder.h
    
        Not used anymore. This also stops include linux/swab.h directly
        from the kernel sources, remove that reference from the MANIFEST.
    
      and few more changes to make tools/include more complete and standalone:
      tools/include in 4.15:
      asm  asm-generic  linux  tools  trace  uapi
    
      tools/include in 4.4:
      asm  asm-generic  linux  tools
    
      but copying the include header even for kernels which don't really
      need it doesn't add big overhead, so just copy include to perf sources
      for all kernels.
    
    Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 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 fb4e3ac..51f5597 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -98,6 +98,7 @@ EXTRA_OEMAKE += "\
 "
 
 PERF_SRC ?= "Makefile \
+             include \
              tools/arch \
              tools/build \
              tools/include \

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


More information about the Openembedded-commits mailing list