perf: don't use oe.path.relative

Instead of using oe.path.relative, use the Python Standard Library function
os.path.relpath.

(From OE-Core rev: 01f640f2e878ef86db4138f422fdf74f5f41c8c5)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2014-03-04 16:46:02 +00:00
committed by Richard Purdie
parent baa8b031f2
commit 370717d328

View File

@@ -86,10 +86,10 @@ EXTRA_OEMAKE += "\
'sysconfdir=${sysconfdir}' \
'perfexecdir=${libexecdir}/perf-core' \
\
'ETC_PERFCONFIG=${@oe.path.relative(prefix, sysconfdir)}' \
'sharedir=${@oe.path.relative(prefix, datadir)}' \
'mandir=${@oe.path.relative(prefix, mandir)}' \
'infodir=${@oe.path.relative(prefix, infodir)}' \
'ETC_PERFCONFIG=${@os.path.relpath(sysconfdir, prefix)}' \
'sharedir=${@os.path.relpath(datadir, prefix)}' \
'mandir=${@os.path.relpath(mandir, prefix)}' \
'infodir=${@os.path.relpath(infodir, prefix)}' \
"
# PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h