scripts/build/arch/blackfin.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>
thomas@1910
     1
# Compute Blackfin-specific values
thomas@1910
     2
thomas@1910
     3
CT_DoArchTupleValues() {
thomas@1910
     4
    # The architecture part of the tuple:
thomas@1910
     5
    CT_TARGET_ARCH="bfin"
thomas@1910
     6
thomas@1910
     7
    # gcc ./configure flags
thomas@1910
     8
    CT_ARCH_WITH_ARCH=
thomas@1910
     9
    CT_ARCH_WITH_ABI=
thomas@1910
    10
    CT_ARCH_WITH_CPU=
thomas@1910
    11
    CT_ARCH_WITH_TUNE=
thomas@1910
    12
    CT_ARCH_WITH_FPU=
thomas@1910
    13
    CT_ARCH_WITH_FLOAT=
thomas@1910
    14
}