scripts/build/arch/sparc.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 sparc-specific values
     2 CT_DoArchTupleValues() {
     3     # That's the only thing to override
     4     if [ "${CT_ARCH_64}" = "y" ]; then
     5         CT_TARGET_ARCH="${CT_ARCH}64"
     6     fi
     7 
     8 }