All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] icecc.bbclass: fix kernel distributed compilation
@ 2009-04-17 10:22 Roman I Khimov
  2009-04-17 10:27 ` Koen Kooi
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Roman I Khimov @ 2009-04-17 10:22 UTC (permalink / raw)
  To: openembedded-devel

---
 classes/icecc.bbclass |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/classes/icecc.bbclass b/classes/icecc.bbclass
index dce29fb..0eb2d9f 100644
--- a/classes/icecc.bbclass
+++ b/classes/icecc.bbclass
@@ -137,7 +137,8 @@ def create_native_env(bb,d):
 
 def get_cross_kernel_cc(bb,d):
     kernel_cc = bb.data.expand('${KERNEL_CC}', d)
-    kernel_cc = kernel_cc.replace('ccache', '')
+    kernel_cc = kernel_cc.replace('ccache', '').strip()
+    kernel_cc = kernel_cc.split(' ')[0]
     kernel_cc = kernel_cc.strip()
     return kernel_cc
 
@@ -182,10 +183,10 @@ def create_cross_kernel_env(bb,d):
     cr_env_script = bb.data.getVar('ICECC_ENV_EXEC',  d) or  bb.data.expand('${STAGING_DIR}', d)+"/ice/icecc-create-env"
     result=os.popen("%s %s %s %s %s %s" %(cr_env_script,
            "--silent",
-           os.path.join(ice_dir,'bin',kernel_cc),
-           os.path.join(ice_dir,target_sys,'bin','g++'),
-           os.path.join(ice_dir,target_sys,'bin','as'),
-           os.path.join(ice_dir,"ice",cross_name) ) )
+           os.path.join(ice_dir, 'bin', kernel_cc),
+           os.path.join(ice_dir, 'bin', "%s-g++" % target_sys),
+           os.path.join(ice_dir, 'bin', "%s-as" % target_sys),
+           os.path.join(ice_dir, "ice", cross_name) ) )
     return tar_file
 
 
-- 
1.6.2.1


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




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

* Re: [PATCH] icecc.bbclass: fix kernel distributed compilation
  2009-04-17 10:22 [PATCH] icecc.bbclass: fix kernel distributed compilation Roman I Khimov
@ 2009-04-17 10:27 ` Koen Kooi
  2009-04-20  8:06   ` Roman I Khimov
  2009-04-21 20:20 ` Roman I Khimov
  2009-04-21 20:44 ` Leon Woestenberg
  2 siblings, 1 reply; 5+ messages in thread
From: Koen Kooi @ 2009-04-17 10:27 UTC (permalink / raw)
  To: openembedded-devel

On 17-04-09 12:22, Roman I Khimov wrote:
> ---
>   classes/icecc.bbclass |   11 ++++++-----
>   1 files changed, 6 insertions(+), 5 deletions(-)

Acked-by: Koen Kooi <koen@openembedded.org>


>
> diff --git a/classes/icecc.bbclass b/classes/icecc.bbclass
> index dce29fb..0eb2d9f 100644
> --- a/classes/icecc.bbclass
> +++ b/classes/icecc.bbclass
> @@ -137,7 +137,8 @@ def create_native_env(bb,d):
>
>   def get_cross_kernel_cc(bb,d):
>       kernel_cc = bb.data.expand('${KERNEL_CC}', d)
> -    kernel_cc = kernel_cc.replace('ccache', '')
> +    kernel_cc = kernel_cc.replace('ccache', '').strip()
> +    kernel_cc = kernel_cc.split(' ')[0]
>       kernel_cc = kernel_cc.strip()
>       return kernel_cc
>
> @@ -182,10 +183,10 @@ def create_cross_kernel_env(bb,d):
>       cr_env_script = bb.data.getVar('ICECC_ENV_EXEC',  d) or  bb.data.expand('${STAGING_DIR}', d)+"/ice/icecc-create-env"
>       result=os.popen("%s %s %s %s %s %s" %(cr_env_script,
>              "--silent",
> -           os.path.join(ice_dir,'bin',kernel_cc),
> -           os.path.join(ice_dir,target_sys,'bin','g++'),
> -           os.path.join(ice_dir,target_sys,'bin','as'),
> -           os.path.join(ice_dir,"ice",cross_name) ) )
> +           os.path.join(ice_dir, 'bin', kernel_cc),
> +           os.path.join(ice_dir, 'bin', "%s-g++" % target_sys),
> +           os.path.join(ice_dir, 'bin', "%s-as" % target_sys),
> +           os.path.join(ice_dir, "ice", cross_name) ) )
>       return tar_file
>
>





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

* Re: [PATCH] icecc.bbclass: fix kernel distributed compilation
  2009-04-17 10:27 ` Koen Kooi
@ 2009-04-20  8:06   ` Roman I Khimov
  0 siblings, 0 replies; 5+ messages in thread
From: Roman I Khimov @ 2009-04-20  8:06 UTC (permalink / raw)
  To: openembedded-devel

On Friday 17 April 2009 14:27:06 Koen Kooi wrote:
> On 17-04-09 12:22, Roman I Khimov wrote:
> > ---
> >   classes/icecc.bbclass |   11 ++++++-----
> >   1 files changed, 6 insertions(+), 5 deletions(-)
>
> Acked-by: Koen Kooi <koen@openembedded.org>

Well, maybe someone will commit it then? :)


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

* Re: [PATCH] icecc.bbclass: fix kernel distributed compilation
  2009-04-17 10:22 [PATCH] icecc.bbclass: fix kernel distributed compilation Roman I Khimov
  2009-04-17 10:27 ` Koen Kooi
@ 2009-04-21 20:20 ` Roman I Khimov
  2009-04-21 20:44 ` Leon Woestenberg
  2 siblings, 0 replies; 5+ messages in thread
From: Roman I Khimov @ 2009-04-21 20:20 UTC (permalink / raw)
  To: openembedded-devel

On Friday 17 April 2009 14:22:21 Roman I Khimov wrote:
> ---
>  classes/icecc.bbclass |   11 ++++++-----

ping




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

* Re: [PATCH] icecc.bbclass: fix kernel distributed compilation
  2009-04-17 10:22 [PATCH] icecc.bbclass: fix kernel distributed compilation Roman I Khimov
  2009-04-17 10:27 ` Koen Kooi
  2009-04-21 20:20 ` Roman I Khimov
@ 2009-04-21 20:44 ` Leon Woestenberg
  2 siblings, 0 replies; 5+ messages in thread
From: Leon Woestenberg @ 2009-04-21 20:44 UTC (permalink / raw)
  To: openembedded-devel

Acked-by: Leon Woestenberg <leon@sidebranch.com>

-- 
Leon



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

end of thread, other threads:[~2009-04-21 20:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-17 10:22 [PATCH] icecc.bbclass: fix kernel distributed compilation Roman I Khimov
2009-04-17 10:27 ` Koen Kooi
2009-04-20  8:06   ` Roman I Khimov
2009-04-21 20:20 ` Roman I Khimov
2009-04-21 20:44 ` Leon Woestenberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.