On Thu, Mar 31, 2016 at 12:51 PM, $rik@nth <srikanth0...@gmail.com> wrote:
> On Thu, Mar 31, 2016 at 8:59 AM, Jim Wilson <jim.wil...@linaro.org> wrote:
>> On Wed, Mar 30, 2016 at 7:37 PM, $rik@nth <srikanth0...@gmail.com> wrote:
>>> You mean if i set --host=arm-linux-gnuebi and
>>> --target=arm-linux-gunebi should automatically pick cross compilers
>>
>> Yes, in theory, it should find CC, AS, AR, etc by itself.  Don't
>> forget that you need to set all 3 of build, host, and target for this
>> to work.
>>
>>> instead of pointing them? I am just following Linaro website on how to
>>> build cross tool chain
>>> https://wiki.linaro.org/WorkingGroups/ToolChain/BuildingGNUToolchains
>>
>> That page only talks about a basic cross build.  it doesn't talk about
>> cross building a native.
>>
>>> Please let me know if there is some more links where i can follow precisely.
>>
>> We call it a "canadian cross" when build != host != target.  What you
>> are trying to do is very similar to a canadian cross, and works
>> basically the same way.  If you do a web search for "build canadian
>> cross gcc" then you can find some web pages that talk about this.  In
>> general, this isn't well documented, because it is much harder to do a
>> canadian cross than a regular cross, and it usually requires learning
>> quite a bit about how gcc builds work in order to be able to do it
>> successfully.
>>
>> We have a tool called ABE that we use for builds inside linaro.  There
>> is a wiki page for it at
>>     https://wiki.linaro.org/ABE
>
> Thanks you. I will go through this utility for building native toolchain.
>
>> I know that this has support for a windows canadian cross build, e.g.
>> build=x86_64-linux host=i686-w64-mingw3 and then a target or arm or
>> aarch64.  I don't know offhand if it can be used for what you are
>> trying to do.
>>
>> Building a native gcc binary is much easier than trying to cross build
>> a native.  You should do a native build if you can.
>
> Though this is very new to me. Definitely i will give it a try as you
> mentioned this process is very easy to build native gcc binaries. But
> here i want to build static binaries and where i need to pass the
> Flags to ABE. There is no argument supports to build static tool
> chains.
I gone through the script and saw there are env settings [--set
{cflags|ldflags|runtestflags|makeflags}=XXX]
>
>>
>> Jim
>
>
>
> --
> Thanks & Regards,
> M.Srikanth Kumar.



-- 
Thanks & Regards,
M.Srikanth Kumar.
_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to