[OpenBIOS] [PATCH] have switch-arch tell you compiler name
Mark Cave-Ayland
mark.cave-ayland at ilande.co.uk
Tue Nov 13 23:54:15 CET 2012
On 13/11/12 17:21, Programmingkid wrote:
> This patch adds a feature to switch-arch so it tells you the names of the compilers is it looking for. I had just installed a cross compiler and was confused as to why switch-arch wouldn't detect it. This feature helped me figure out that the problem was with the name of the compiler I was using.
>
> signed-off-by: John Arbuckle<programmingkidx at gmail.com>
>
> Index: /Users/misbah/Desktop/openbios/trunk/openbios-devel/config/scripts/switch-arch
> ===================================================================
> --- /Users/misbah/Desktop/openbios/trunk/openbios-devel/config/scripts/switch-arch (revision 1067)
> +++ /Users/misbah/Desktop/openbios/trunk/openbios-devel/config/scripts/switch-arch (working copy)
> @@ -99,6 +99,7 @@
> {
> for TARGET in ${1}-linux-gnu- ${1}-linux- ${1}-elf- ${1}-eabi-
> do
> + echo "Trying compiler ${TARGET}gcc"
> if type ${TARGET}gcc> /dev/null 2>&1
> then
> return
For me, this would make the output of switch-arch unnecessarily verbose.
Most of the effort goes into building a cross-compile setup, so once the
compiler is configured this output effectively becomes noise.
I would consider a patch for an optional "-v" (verbose) argument to
switch-arch to aid people setting up their environment though.
ATB,
Mark.
More information about the OpenBIOS
mailing list