scripts/build/arch/avr32.sh
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Thu Jan 10 22:38:48 2013 +0100 (2013-01-10)
changeset 3163 06938bc1c6e7
child 3169 9d0b37f08a10
permissions -rw-r--r--
scripts: check for running as root

Running as root is really, really dangerous.

Add a runtime-check that refuses to build if running as root.
Can be overriden with a double switch in the menuconfig.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 # Compute AVR32-specific values
     2 
     3 CT_DoArchTupleValues() {
     4     # The architecture part of the tuple:
     5     CT_TARGET_ARCH="${CT_ARCH}"
     6 
     7     # gcc ./configure flags
     8     CT_ARCH_WITH_ARCH=
     9     CT_ARCH_WITH_ABI=
    10     CT_ARCH_WITH_CPU=
    11     CT_ARCH_WITH_TUNE=
    12     CT_ARCH_WITH_FPU=
    13     CT_ARCH_WITH_FLOAT=
    14     CT_TARGET_SYS=none
    15 
    16 }