diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-05 09:05:20 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-05 09:05:42 +0100 |
commit | 7b78c364b7de901f97cd8dbe56d5e02f545bf3d3 (patch) | |
tree | 3b778230e2897faf7d0ee93a58390f954bc02721 /scripts | |
parent | 56a39e9b67074abfb166c01d843b6680ee61abdf (diff) | |
download | ast2050-yocto-poky-7b78c364b7de901f97cd8dbe56d5e02f545bf3d3.zip ast2050-yocto-poky-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')
-rwxr-xr-x | scripts/cleanup-workdir | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/cleanup-workdir b/scripts/cleanup-workdir index 25fef97..a7f5a3a 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=" |