summaryrefslogtreecommitdiffstats
path: root/meta/classes
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-03 11:09:02 +0100
commitc5dc66430e8efa918afe5c8f502d3fcff3a0019d (patch)
tree1c80e95b7163c3d2af338b903b864a745060a83f /meta/classes
parent2668104a5c16b483e978a2e1a1540f8774738650 (diff)
downloadpoky-c5dc66430e8efa918afe5c8f502d3fcff3a0019d.tar.gz
package_rpm: Add builddir macro to define source directory
This allows its usage in other RPM macros so files in ${S} can be found. (From OE-Core rev: 649ddd4b17e8a1f94ca9f4bc3a71560437c61909) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 () {
674 cmd = rpmbuild 674 cmd = rpmbuild
675 cmd = cmd + " --nodeps --short-circuit --target " + pkgarch + " --buildroot " + pkgd 675 cmd = cmd + " --nodeps --short-circuit --target " + pkgarch + " --buildroot " + pkgd
676 cmd = cmd + " --define '_topdir " + workdir + "' --define '_rpmdir " + pkgwritedir + "'" 676 cmd = cmd + " --define '_topdir " + workdir + "' --define '_rpmdir " + pkgwritedir + "'"
677 cmd = cmd + " --define '_builddir " + d.getVar('S', True) + "'"
677 cmd = cmd + " --define '_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'" 678 cmd = cmd + " --define '_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'"
678 cmd = cmd + " --define '_use_internal_dependency_generator 0'" 679 cmd = cmd + " --define '_use_internal_dependency_generator 0'"
679 if perfiledeps: 680 if perfiledeps: