Re: [OpenWrt-Devel] [RFC] Distcc support - Patchset V5

2009-10-19 Thread Luigi Mantellini
Hi All, These patches add: 1) suport for parallel make (inner package) 2) distcc support 3) fix package to be build using parallel make Any feedback is welcome. ciao luigi On Sun, Oct 18, 2009 at 12:07 PM, Luigi Mantellini wrote: > Hi ml, > > As we have the external toolchain support, w

Re: [OpenWrt-Devel] [RFC] Distcc support

2009-10-19 Thread Luigi 'Comio' Mantellini
Hi All, I noticed that a lot of packages call make passing both "all" and "install" target at the same time. This is not right because we cannot sure that a rule like "install: all" is present in the package's makifile. To fix the problem, we need to do two different make calls, the first with

Re: [OpenWrt-Devel] [RFC] Distcc support

2009-10-19 Thread Luigi 'Comio' Mantellini
Hi All, I noticed some packages (like ncurses, ppp, ...) that don't like the parallel make (with -jX X>1). My proposal is to define: MAKEJ1=$(MAKE) MAKE:=$(MAKE) -j$(CONFIG_JOBS) and use MAKEJ1 for these packages until we don't fix the issue. is it ok? ciao luigi Il domenica 18 ottobre

Re: [OpenWrt-Devel] [RFC] Distcc support

2009-10-18 Thread Luigi Mantellini
Hi Felix, On Sun, Oct 18, 2009 at 6:39 PM, Felix Fietkau wrote: > Yep, sounds good. By the way, I'm currently working on integrating a gcc > version with CodeSourcery patches into OpenWrt. Maybe that way you also > won't have to use external toolchains anymore. I've stripped the diff of No :) I

Re: [OpenWrt-Devel] [RFC] Distcc support

2009-10-18 Thread Bastian Bittorf
> Luigi Mantellini wrote: > > toolchain... it seems to work fine but I interrupted the compilation > > (today is sunday... and I need to see also the sun). The 'sun' is always under the desk. (in fact it's a full featured 2 x ultra-sparcII with maximum RAM) If you really want to see it, just pla

Re: [OpenWrt-Devel] [RFC] Distcc support

2009-10-18 Thread Felix Fietkau
Luigi Mantellini wrote: > Hi Felix > > On Sun, Oct 18, 2009 at 4:22 PM, Felix Fietkau wrote: >> Though you prefer this option, I believe using external toolchain >> support in OpenWrt will always be the exception, not the rule. We can >> easily add toolchains like CodeSourcery's or ELDK's to our

Re: [OpenWrt-Devel] [RFC] Distcc support

2009-10-18 Thread Felix Fietkau
Luigi Mantellini wrote: > Hi Daniel, > > to have a consistent build it's mandatory to have the same toolchain. > For this reason I think that distcc should be used only under this > hypothesis. > I'm using the external toolchain support and it works fine (I used > ELDK's and CodeSourcery's toolch

Re: [OpenWrt-Devel] [RFC] Distcc support

2009-10-18 Thread Luigi Mantellini
new patch v2 enjoy On Sun, Oct 18, 2009 at 12:07 PM, Luigi Mantellini wrote: > Hi ml, > > As we have the external toolchain support, we can consider to add a > distcc support. > I produced the following patch that I never tested yet! > > Just some information: >  - distcc must be usable only if

Re: [OpenWrt-Devel] [RFC] Distcc support

2009-10-18 Thread Luigi Mantellini
Hi Daniel, to have a consistent build it's mandatory to have the same toolchain. For this reason I think that distcc should be used only under this hypothesis. I'm using the external toolchain support and it works fine (I used ELDK's and CodeSourcery's toolchains with good results). I'm not sure

Re: [OpenWrt-Devel] [RFC] Distcc support

2009-10-18 Thread poelzi
Luigi Mantellini wrote: > As we have the external toolchain support, we can consider to add a > distcc support. > I produced the following patch that I never tested yet! > > Just some information: > - distcc must be usable only if EXTERNAL_TOOLCHAIN is used (it's > mandatory to have the same co

Re: [OpenWrt-Devel] [RFC] Distcc support

2009-10-18 Thread Luigi Mantellini
first mistake: add a "\" after $(MAKE_DISTCC_VARS) into package-defaults.mk I already said that I never tested ! ;) eheh ciao On Sun, Oct 18, 2009 at 12:07 PM, Luigi Mantellini wrote: > Hi ml, > > As we have the external toolchain support, we can consider to add a > distcc support. > I produced

[OpenWrt-Devel] [RFC] Distcc support

2009-10-18 Thread Luigi Mantellini
Hi ml, As we have the external toolchain support, we can consider to add a distcc support. I produced the following patch that I never tested yet! Just some information: - distcc must be usable only if EXTERNAL_TOOLCHAIN is used (it's mandatory to have the same compiler on all hosts...) - pum