summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-28 09:18:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-28 10:16:03 +0100
commit04a3b6c0ca4e127a0a010c31e432a1c2e356b30c (patch)
tree2c45aa81188bade10892cd7d4f5997e6e6e7aa2c
parentcf882b6e3abbbc437fc61be58f1265ae3fd4e1b2 (diff)
downloadpoky-04a3b6c0ca4e127a0a010c31e432a1c2e356b30c.tar.gz
scripts/cleanup-workdir: Adapt to SDK_ARCH -> SDK_SYS chanages for crosssdk
With the change of crosssdk to use SDK_SYS, we need to update the script to match. (From OE-Core rev: 8ab1f6073f86d05493bb32a8135c9d912d72f5f0) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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="