lib/oe/package_manager.py: Add processing for alternative SDK_OS

For the meta-mingw layer, we need to process alternative SDK_OS, since this
is not a Linux based OS.

(From OE-Core rev: b31e015d2e379c24610948d345c5970545887468)

Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Mark Hatle 2014-06-24 19:28:07 -05:00 committed by Richard Purdie
parent e110809a52
commit 94dbe8515d
1 changed files with 5 additions and 1 deletions

View File

@ -739,11 +739,15 @@ class RpmPM(PackageManager):
channel_priority = 5
platform_dir = os.path.join(self.etcrpm_dir, "platform")
sdkos = self.d.getVar("SDK_OS", True)
with open(platform_dir, "w+") as platform_fd:
platform_fd.write(platform + '\n')
for pt in platform_extra:
channel_priority += 5
platform_fd.write(re.sub("-linux.*$", "-linux.*\n", pt))
if sdkos:
tmp = re.sub("-%s$" % sdkos, "-%s\n" % sdkos, pt)
tmp = re.sub("-linux.*$", "-linux.*\n", tmp)
platform_fd.write(tmp)
# Tell RPM that the "/" directory exist and is available
bb.note("configuring RPM system provides")