mirror of
https://git.yoctoproject.org/poky
synced 2026-05-08 05:09:24 +00:00
perf: Add EXTRA_LDFLAGS for MIPS N32
MIPS N32 requires EXTRA_LDFLAGS to link correctly. (From OE-Core rev: 5b3cc758ddd8bfe6e52e6287ddf463c080673a7e) Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6dc16c8907
commit
902f162234
@@ -80,6 +80,7 @@ EXTRA_OEMAKE = '\
|
||||
AR="${AR}" \
|
||||
LD="${LD}" \
|
||||
EXTRA_CFLAGS="-ldw" \
|
||||
EXTRA_LDFLAGS="${PERF_EXTRA_LDFLAGS}" \
|
||||
perfexecdir=${libexecdir} \
|
||||
NO_GTK2=1 ${TUI_DEFINES} NO_DWARF=1 ${LIBUNWIND_DEFINES} \
|
||||
${SCRIPTING_DEFINES} ${LIBNUMA_DEFINES} \
|
||||
@@ -98,6 +99,12 @@ EXTRA_OEMAKE += "\
|
||||
'infodir=${@os.path.relpath(infodir, prefix)}' \
|
||||
"
|
||||
|
||||
PERF_EXTRA_LDFLAGS = ""
|
||||
|
||||
# MIPS N32
|
||||
PERF_EXTRA_LDFLAGS_mipsarchn32eb = "-m elf32btsmipn32"
|
||||
PERF_EXTRA_LDFLAGS_mipsarchn32el = "-m elf32ltsmipn32"
|
||||
|
||||
do_compile() {
|
||||
# Linux kernel build system is expected to do the right thing
|
||||
unset CFLAGS
|
||||
|
||||
Reference in New Issue
Block a user