summaryrefslogtreecommitdiffstats
path: root/scripts/cleanup-workdir
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:42 +0100
commit7b78c364b7de901f97cd8dbe56d5e02f545bf3d3 (patch)
tree3b778230e2897faf7d0ee93a58390f954bc02721 /scripts/cleanup-workdir
parent56a39e9b67074abfb166c01d843b6680ee61abdf (diff)
downloadpoky-7b78c364b7de901f97cd8dbe56d5e02f545bf3d3.tar.gz
cleanup-workdir: Fix crosssdk reference after addition of PN
(From OE-Core rev: 2f922357287129f7d216393531886ed1f3ce8185) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/cleanup-workdir')
-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="