summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):
50def get_cur_arch_dirs(workdir, arch_dirs): 50def get_cur_arch_dirs(workdir, arch_dirs):
51 pattern = workdir + '/(.*?)/' 51 pattern = workdir + '/(.*?)/'
52 52
53 cmd = "bitbake -e | grep ^SDK_ARCH="
54 output = run_command(cmd)
55 sdk_arch = output.split('"')[1]
56
53 # select thest 5 packages to get the dirs of current arch 57 # select thest 5 packages to get the dirs of current arch
54 pkgs = ['hicolor-icon-theme', 'base-files', 'acl-native', 'binutils-crosssdk', 'nativesdk-autoconf'] 58 pkgs = ['hicolor-icon-theme', 'base-files', 'acl-native', 'binutils-crosssdk-' + sdk_arch, 'nativesdk-autoconf']
55 59
56 for pkg in pkgs: 60 for pkg in pkgs:
57 cmd = "bitbake -e " + pkg + " | grep ^IMAGE_ROOTFS=" 61 cmd = "bitbake -e " + pkg + " | grep ^IMAGE_ROOTFS="