diff options
author | Ross Burton <ross.burton@intel.com> | 2014-03-04 16:46:02 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-07 14:58:44 +0000 |
commit | 370717d32821d0c6d82901e6b4de7cdbba20bbaf (patch) | |
tree | ff62e7fb7cb6bb2ca7c37be2e29946dba8594c43 /meta/recipes-kernel | |
parent | baa8b031f2640a60467652625856529d9a57c6fb (diff) | |
download | poky-370717d32821d0c6d82901e6b4de7cdbba20bbaf.tar.gz |
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>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/perf/perf.bb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/recipes-kernel/perf/perf.bb b/meta/recipes-kernel/perf/perf.bb index 6258cbbe09..56576d5d65 100644 --- a/meta/recipes-kernel/perf/perf.bb +++ b/meta/recipes-kernel/perf/perf.bb | |||
@@ -86,10 +86,10 @@ EXTRA_OEMAKE += "\ | |||
86 | 'sysconfdir=${sysconfdir}' \ | 86 | 'sysconfdir=${sysconfdir}' \ |
87 | 'perfexecdir=${libexecdir}/perf-core' \ | 87 | 'perfexecdir=${libexecdir}/perf-core' \ |
88 | \ | 88 | \ |
89 | 'ETC_PERFCONFIG=${@oe.path.relative(prefix, sysconfdir)}' \ | 89 | 'ETC_PERFCONFIG=${@os.path.relpath(sysconfdir, prefix)}' \ |
90 | 'sharedir=${@oe.path.relative(prefix, datadir)}' \ | 90 | 'sharedir=${@os.path.relpath(datadir, prefix)}' \ |
91 | 'mandir=${@oe.path.relative(prefix, mandir)}' \ | 91 | 'mandir=${@os.path.relpath(mandir, prefix)}' \ |
92 | 'infodir=${@oe.path.relative(prefix, infodir)}' \ | 92 | 'infodir=${@os.path.relpath(infodir, prefix)}' \ |
93 | " | 93 | " |
94 | 94 | ||
95 | # PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h | 95 | # PPC64 uses long long for u64 in the kernel, but powerpc's asm/types.h |