[oe-commits] Richard Purdie : cleanup-workdir: Fix crosssdk reference after addition of PN

git at git.openembedded.org git at git.openembedded.org
Tue May 6 17:01:27 UTC 2014


Module: openembedded-core.git
Branch: master-next
Commit: 2f922357287129f7d216393531886ed1f3ce8185
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2f922357287129f7d216393531886ed1f3ce8185

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Mon May  5 09:05:20 2014 +0100

cleanup-workdir: Fix crosssdk reference after addition of PN

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

---

 scripts/cleanup-workdir | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/cleanup-workdir b/scripts/cleanup-workdir
index 25fef97..a7f5a3a 100755
--- a/scripts/cleanup-workdir
+++ b/scripts/cleanup-workdir
@@ -50,8 +50,12 @@ def run_command(cmd):
 def get_cur_arch_dirs(workdir, arch_dirs):
     pattern = workdir + '/(.*?)/'
 
+    cmd = "bitbake -e | grep ^SDK_ARCH="
+    output = run_command(cmd)
+    sdk_arch = output.split('"')[1]
+
     # select thest 5 packages to get the dirs of current arch
-    pkgs = ['hicolor-icon-theme', 'base-files', 'acl-native', 'binutils-crosssdk', 'nativesdk-autoconf']
+    pkgs = ['hicolor-icon-theme', 'base-files', 'acl-native', 'binutils-crosssdk-' + sdk_arch, 'nativesdk-autoconf']
 
     for pkg in pkgs:
         cmd = "bitbake -e " + pkg + " | grep ^IMAGE_ROOTFS="



More information about the Openembedded-commits mailing list