Show
Ignore:
Timestamp:
09/30/08 19:09:44 (3 months ago)
Author:
mjones
Message:

Add an abuild command line option for -fno-stack-protect for toolchains that might require it.

Signed-off-by: Marc Jones <marc.jones@…>
Acked-by: Stefan Reinauer <stepan@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/coreboot-v2/util/abuild/abuild

    r3359 r3623  
    4343# this is disabled per default but can be enabled with -s 
    4444silent= 
     45 
     46# stackprotect mode enabled by -ns option. 
     47stackprotect=false 
    4548 
    4649ARCH=`uname -m | sed -e s/i.86/i386/ -e s/sun4u/sparc64/ \ 
     
    323326                CROSS_COMPILE='' 
    324327        fi 
    325         HOSTCC='gcc' 
    326  
     328         
     329        if  [ "$stackprotect" = "true" ]; then 
     330                CC="$CC -fno-stack-protector" 
     331        fi 
     332 
     333        HOSTCC='gcc' 
     334         
    327335        printf "Processing mainboard/$VENDOR/$MAINBOARD" 
    328336 
     
    469477        printf "    [-c|--cpus <numcpus>]         build on <numcpus> at the same time\n" 
    470478        printf "    [-s|--silent]                 omit compiler calls in logs\n" 
     479        printf "    [-ns|--nostackprotect]        use gcc -fno-stack-protector option\n" 
    471480        printf "    [lbroot]                      absolute path to coreboot sources\n" 
    472481        printf "                                  (defaults to $LBROOT)\n\n" 
     
    525534                -c|--cpus)      shift; cpus="$1"; test "$cpus" == "max" && cpus=""; shift;; 
    526535                -s|--silent)    shift; silent="-s";; 
     536                -ns|--nostackprotect) shift; stackprotect=true;; 
    527537                --)             shift; break;; 
    528538                -*)             printf "Invalid option\n\n"; myhelp; exit 1;;