Patchwork [3/3] perf: don't use oe.path.relative

login
register
mail settings
Submitter Ross Burton
Date March 4, 2014, 4:46 p.m.
Message ID <1393951562-14251-3-git-send-email-ross.burton@intel.com>
Download mbox | patch
Permalink /patch/67963/
State Accepted
Commit 370717d32821d0c6d82901e6b4de7cdbba20bbaf
Headers show

Comments

Ross Burton - March 4, 2014, 4:46 p.m.
Instead of using oe.path.relative, use the Python Standard Library function
os.path.relpath.

Signed-off-by: Ross Burton <ross.burton@intel.com>
---
 meta/recipes-kernel/perf/perf.bb |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Patch

diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb
index 6258cbb..56576d5 100644
--- a/meta/recipes-kernel/perf/perf.bb
+++ b/meta/recipes-kernel/perf/perf.bb
@@ -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