summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-29 16:56:27 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-09-02 17:51:45 +0100
commit649ddd4b17e8a1f94ca9f4bc3a71560437c61909 (patch)
treea1d5e98c0b7144d46ba74f45eb8d1762f42db797
parent03ac91815013c0e85c4694b3ab849257e658aeba (diff)
downloadopenembedded-core-contrib-649ddd4b17e8a1f94ca9f4bc3a71560437c61909.tar.gz
openembedded-core-contrib-649ddd4b17e8a1f94ca9f4bc3a71560437c61909.tar.bz2
openembedded-core-contrib-649ddd4b17e8a1f94ca9f4bc3a71560437c61909.zip
package_rpm: Add builddir macro to define source directory
This allows its usage in other RPM macros so files in ${S} can be found. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/package_rpm.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 1ea7549621..57309accf5 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -674,6 +674,7 @@ python do_package_rpm () {
cmd = rpmbuild
cmd = cmd + " --nodeps --short-circuit --target " + pkgarch + " --buildroot " + pkgd
cmd = cmd + " --define '_topdir " + workdir + "' --define '_rpmdir " + pkgwritedir + "'"
+ cmd = cmd + " --define '_builddir " + d.getVar('S', True) + "'"
cmd = cmd + " --define '_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'"
cmd = cmd + " --define '_use_internal_dependency_generator 0'"
if perfiledeps: