[OpenBIOS] [Patch v3] Add non-standard compiler prefix support

Lennart Sorensen lsorense at csclub.uwaterloo.ca
Thu Apr 30 23:11:28 CEST 2015


On Thu, Apr 30, 2015 at 11:51:27AM -0500, Segher Boessenkool wrote:
> >  select_prefix()
> >  {
> > -    for TARGET in ${1}-unknown-linux-gnu- ${1}-linux-gnu- ${1}-linux- ${1}-elf- ${1}-eabi-
> > +    # The user can specify the cross compiler like this: CROSS_COMPILER=ppc-elf- ./switch-arch ppc
> > +    for TARGET in ${1}-unknown-linux-gnu- ${1}-linux-gnu- ${1}-linux- ${1}-elf- ${1}-eabi- $CROSS_COMPILER
> >      do
> >          if type ${TARGET}gcc > /dev/null 2>&1
> >          then
> 
> If the user said what cross compiler they want, why not just trust
> him?  Those lines are way too long btw.

That makes sense, or at least try what they asked for first.

-- 
Len Sorensen



More information about the OpenBIOS mailing list