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>
(From OE-Core rev: 16e943690bdbdf2e60a2fe33950697278018c7d1)

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Bruce Ashfield
2020-02-21 12:45:59 -05:00
committed by Richard Purdie
parent f55a12702b
commit b44f3d0d70
3 changed files with 12 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ python () {
raise bb.parse.SkipRecipe("Set PREFERRED_PROVIDER_virtual/kernel to linux-yocto-rt to enable it")
}
SRCREV_machine ?= "2f533134cfb54b0f77e39a9a9108836aafc3eea1"
SRCREV_machine ?= "97cb5fe4e4fa529a5b8165c4f84182d2d4751b39"
SRCREV_meta ?= "c11911d4d1cf0d0b069dfd1922b41256f61442de"
SRC_URI = "git://git.yoctoproject.org/linux-yocto.git;branch=${KBRANCH};name=machine \