PageRenderTime 16ms CodeModel.GetById 14ms app.highlight 0ms RepoModel.GetById 1ms app.codeStats 0ms

/config/arch.arm

http://github.com/OpenELEC/OpenELEC.tv
Unknown | 57 lines | 52 code | 5 blank | 0 comment | 0 complexity | ba2731c395f7753f82c6adddbfd42176 MD5 | raw file
 1# determines TARGET_CPU, if not forced by user
 2  if [ -z "$TARGET_CPU" ]; then
 3    TARGET_CPU=cortex-a8
 4  fi
 5
 6# TARGET_CPU:
 7# arm2 arm250 arm3 arm6 arm60 arm600 arm610 arm620 arm7 arm7m arm7d
 8# arm7dm arm7di arm7dmi arm70 arm700 arm700i arm710 arm710c
 9# arm7100 arm720 arm7500 arm7500fe arm7tdmi arm7tdmi-s arm710t
10# arm720t arm740t strongarm strongarm110 strongarm1100
11# strongarm1110 arm8 arm810 arm9 arm9e arm920 arm920t arm922t
12# arm946e-s arm966e-s arm968e-s arm926ej-s arm940t arm9tdmi
13# arm10tdmi arm1020t arm1026ej-s arm10e arm1020e arm1022e
14# arm1136j-s arm1136jf-s mpcore mpcorenovfp arm1156t2-s
15# arm1176jz-s arm1176jzf-s cortex-a8 cortex-a9 cortex-r4
16# cortex-r4f cortex-m3 cortex-m1 xscale iwmmxt iwmmxt2 ep9312.
17
18# TARGET_FPU:
19# This specifies what floating point hardware (or hardware emulation) is
20# available on the target. Permissible names are:
21# fpa fpe2 fpe3 maverick vfp vfpv3 vfpv3-fp16 vfpv3-d16 vfpv3-d16-fp16
22# vfpv3xd vfpv3xd-fp16 neon neon-fp16 vfpv4 vfpv4-d16 fpv4-sp-d16
23# neon-vfpv4.
24
25# determine architecture's family
26  case $TARGET_CPU in
27    arm1176jzf-s)
28      TARGET_SUBARCH=armv6zk
29      TARGET_ABI=eabi
30      TARGET_EXTRA_FLAGS="-mcpu=$TARGET_CPU"
31      TARGET_FPU_FLAGS="-mfloat-abi=$TARGET_FLOAT -mfpu=$TARGET_FPU"
32      SIMD_SUPPORT="no"
33      ;;
34    cortex-a7|cortex-a15|cortex-a15.cortex-a7|cortex-a17.cortex-a7)
35      TARGET_SUBARCH=armv7ve
36      TARGET_ABI=eabi
37      TARGET_EXTRA_FLAGS="-mcpu=$TARGET_CPU"
38      TARGET_FPU_FLAGS="-mfloat-abi=$TARGET_FLOAT -mfpu=$TARGET_FPU"
39      SIMD_SUPPORT="yes"
40      ;;
41    cortex-a5|cortex-a8|cortex-a9)
42      TARGET_SUBARCH=armv7-a
43      TARGET_ABI=eabi
44      TARGET_EXTRA_FLAGS="-mcpu=$TARGET_CPU"
45      TARGET_FPU_FLAGS="-mfloat-abi=$TARGET_FLOAT -mfpu=$TARGET_FPU"
46      SIMD_SUPPORT="yes"
47      ;;
48  esac
49
50  TARGET_GCC_ARCH=${TARGET_SUBARCH/-}
51  TARGET_KERNEL_ARCH=arm
52
53# setup ARCH specific *FLAGS
54  TARGET_CFLAGS="-march=$TARGET_SUBARCH -mabi=aapcs-linux -Wno-psabi -Wa,-mno-warn-deprecated $TARGET_EXTRA_FLAGS"
55  [ -n "$TARGET_FPU" ] && TARGET_CFLAGS="$TARGET_CFLAGS $TARGET_FPU_FLAGS"
56  TARGET_LDFLAGS="-march=$TARGET_SUBARCH -mtune=$TARGET_CPU"
57  GCC_OPTS="--with-abi=aapcs-linux --with-arch=$TARGET_SUBARCH --with-float=$TARGET_FLOAT --with-fpu=$TARGET_FPU"