Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] package_rpm: Add builddir macro to define source directory
@ 2014-08-29 17:40 Richard Purdie
  2014-08-29 18:40 ` Mark Hatle
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Purdie @ 2014-08-29 17:40 UTC (permalink / raw)
  To: openembedded-core; +Cc: ronan, Ed Bartosh

This allows its usage in other RPM macros so files in ${S} can be found.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass
index 0f565ac..51910ec 100644
--- a/meta/classes/package_rpm.bbclass
+++ b/meta/classes/package_rpm.bbclass
@@ -689,6 +689,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:




^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-29 18:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-29 17:40 [PATCH] package_rpm: Add builddir macro to define source directory Richard Purdie
2014-08-29 18:40 ` Mark Hatle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox