public inbox for openembedded-core@lists.openembedded.org
 help / color / mirror / Atom feed
* [PATCH] scripts/cleanup-workdir: fix after binutils-cross name change
@ 2014-05-04 17:41 Stefan Stanacar
  2014-05-05  8:13 ` Richard Purdie
  0 siblings, 1 reply; 2+ messages in thread
From: Stefan Stanacar @ 2014-05-04 17:41 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Stefan Stanacar <sstncr@gmail.com>
---
 scripts/cleanup-workdir | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/cleanup-workdir b/scripts/cleanup-workdir
index 25fef97..cffac59 100755
--- a/scripts/cleanup-workdir
+++ b/scripts/cleanup-workdir
@@ -49,9 +49,10 @@ def run_command(cmd):
 
 def get_cur_arch_dirs(workdir, arch_dirs):
     pattern = workdir + '/(.*?)/'
-
+    tunearch = run_command("bitbake -e | grep ^TUNE_ARCH=")
+    tunearch = tunearch.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-' + tunearch, 'nativesdk-autoconf']
 
     for pkg in pkgs:
         cmd = "bitbake -e " + pkg + " | grep ^IMAGE_ROOTFS="
-- 
1.9.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] scripts/cleanup-workdir: fix after binutils-cross name change
  2014-05-04 17:41 [PATCH] scripts/cleanup-workdir: fix after binutils-cross name change Stefan Stanacar
@ 2014-05-05  8:13 ` Richard Purdie
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Purdie @ 2014-05-05  8:13 UTC (permalink / raw)
  To: Stefan Stanacar; +Cc: openembedded-core

On Sun, 2014-05-04 at 20:41 +0300, Stefan Stanacar wrote:
> Signed-off-by: Stefan Stanacar <sstncr@gmail.com>
> ---
>  scripts/cleanup-workdir | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/scripts/cleanup-workdir b/scripts/cleanup-workdir
> index 25fef97..cffac59 100755
> --- a/scripts/cleanup-workdir
> +++ b/scripts/cleanup-workdir
> @@ -49,9 +49,10 @@ def run_command(cmd):
>  
>  def get_cur_arch_dirs(workdir, arch_dirs):
>      pattern = workdir + '/(.*?)/'
> -
> +    tunearch = run_command("bitbake -e | grep ^TUNE_ARCH=")
> +    tunearch = tunearch.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-' + tunearch, 'nativesdk-autoconf']
>  
>      for pkg in pkgs:
>          cmd = "bitbake -e " + pkg + " | grep ^IMAGE_ROOTFS="

I pushed a fix for this before I saw the patch. FWIW for crosssdk we
need to use SDK_ARCH though.

Cheers,

Richard



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-05  8:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-04 17:41 [PATCH] scripts/cleanup-workdir: fix after binutils-cross name change Stefan Stanacar
2014-05-05  8:13 ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox