diff options
author | Adrian Alonso <aalonso@secretlab.ca> | 2011-05-05 13:14:31 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-10 09:51:41 +0100 |
commit | 0638c470410b7ac3057d8f64ae0d389b5c3da838 (patch) | |
tree | 35a6a0e9f9783417477915aadfa43789517dd7c3 /meta/classes | |
parent | 473314d9978dfee53cddc45e4ee1863266eb01e1 (diff) | |
download | openembedded-core-0638c470410b7ac3057d8f64ae0d389b5c3da838.tar.gz openembedded-core-0638c470410b7ac3057d8f64ae0d389b5c3da838.tar.bz2 openembedded-core-0638c470410b7ac3057d8f64ae0d389b5c3da838.zip |
package_rpm: use target vendor information
* Instead of hardcoding target vendor string "-poky"
use TARGET_VENDOR information in case of using external
toolchains
Signed-off-by: Adrian Alonso <aalonso@secretlab.ca>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/package_rpm.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/package_rpm.bbclass b/meta/classes/package_rpm.bbclass index 70170d19ef..1cf9f798d3 100644 --- a/meta/classes/package_rpm.bbclass +++ b/meta/classes/package_rpm.bbclass @@ -761,13 +761,14 @@ python do_package_rpm () { # Setup the rpmbuild arguments... rpmbuild = bb.data.getVar('RPMBUILD', d, True) targetsys = bb.data.getVar('TARGET_SYS', d, True) + targetvendor = bb.data.getVar('TARGET_VENDOR', d, True) pkgwritedir = bb.data.expand('${PKGWRITEDIRRPM}/${PACKAGE_ARCH}', d) pkgarch = bb.data.expand('${PACKAGE_ARCH}', d) bb.mkdirhier(pkgwritedir) os.chmod(pkgwritedir, 0755) cmd = rpmbuild - cmd = cmd + " --nodeps --short-circuit --target " + pkgarch + "-poky-linux-gnu --buildroot " + pkgd + cmd = cmd + " --nodeps --short-circuit --target " + pkgarch + targetvendor + "-linux-gnu --buildroot " + pkgd cmd = cmd + " --define '_topdir " + workdir + "' --define '_rpmdir " + pkgwritedir + "'" cmd = cmd + " --define '_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm'" cmd = cmd + " --define '_use_internal_dependency_generator 0'" |