summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-05 09:05:20 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-05-05 09:05:20 +0100
commit2f922357287129f7d216393531886ed1f3ce8185 (patch)
treef6f3660030f5bec809e8d2835353cad6f80d0dc7 /scripts
parentb77494025b3d47fd5130ae6c445ac84cabb1f91e (diff)
downloadopenembedded-core-2f922357287129f7d216393531886ed1f3ce8185.tar.gz
openembedded-core-2f922357287129f7d216393531886ed1f3ce8185.tar.bz2
openembedded-core-2f922357287129f7d216393531886ed1f3ce8185.zip
cleanup-workdir: Fix crosssdk reference after addition of PN
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/cleanup-workdir6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/cleanup-workdir b/scripts/cleanup-workdir
index 25fef976b6..a7f5a3a667 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="