summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xscripts/cleanup-workdir6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/cleanup-workdir b/scripts/cleanup-workdir
index 86eae3702b..98769f6b32 100755
--- a/scripts/cleanup-workdir
+++ b/scripts/cleanup-workdir
@@ -50,12 +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=" 53 cmd = "bitbake -e | grep ^SDK_SYS="
54 output = run_command(cmd) 54 output = run_command(cmd)
55 sdk_arch = output.split('"')[1] 55 sdk_sys = output.split('"')[1]
56 56
57 # select thest 5 packages to get the dirs of current arch 57 # select thest 5 packages to get the dirs of current arch
58 pkgs = ['hicolor-icon-theme', 'base-files', 'acl-native', 'binutils-crosssdk-' + sdk_arch, 'nativesdk-autoconf'] 58 pkgs = ['hicolor-icon-theme', 'base-files', 'acl-native', 'binutils-crosssdk-' + sdk_sys, 'nativesdk-autoconf']
59 59
60 for pkg in pkgs: 60 for pkg in pkgs:
61 cmd = "bitbake -e " + pkg + " | grep ^IMAGE_ROOTFS=" 61 cmd = "bitbake -e " + pkg + " | grep ^IMAGE_ROOTFS="