]> code.ossystems Code Review - openembedded-core.git/commit
linux-yocto: perf: Make perf able to build with latest libbfd
authorBruce Ashfield <bruce.ashfield@gmail.com>
Fri, 21 Feb 2020 17:45:59 +0000 (12:45 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 22 Feb 2020 23:51:46 +0000 (23:51 +0000)
commit16e943690bdbdf2e60a2fe33950697278018c7d1
treeac83db7c23fe63a79b6404295725d8bde8d2ee2c
parent8dfaf1abe9f2292b5c357a62d6fa4c0660a5c47c
linux-yocto: perf: Make perf able to build with latest libbfd

Khem pointed out that we need to backport the following change to get
perf building with the latest binutils:

commit 0ada120c883d4f1f6 upstream:

[
    Subject: perf: Make perf able to build with latest libbfd

    libbfd has changed the bfd_section_* macros to inline functions
    bfd_section_<field> since 2019-09-18. See below two commits:
      o http://www.sourceware.org/ml/gdb-cvs/2019-09/msg00064.html
      o https://www.sourceware.org/ml/gdb-cvs/2019-09/msg00072.html

    This fix make perf able to build with both old and new libbfd.

Signed-off-by: Changbin Du <changbin.du@gmail.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/20200128152938.31413-1-changbin.du@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
]

Reported-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-kernel/linux/linux-yocto-rt_5.4.bb
meta/recipes-kernel/linux/linux-yocto-tiny_5.4.bb
meta/recipes-kernel/linux/linux-yocto_5.4.bb