SHARE
TWEET

configure.diff

a guest Aug 6th, 2014 7 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/tools/configure b/tools/configure
  2. index 12025ba..ce1892b 100755
  3. --- a/tools/configure
  4. +++ b/tools/configure
  5. @@ -721,6 +721,15 @@ androidcc () {
  6.      prefixtools $gcctarget
  7.  }
  8.  
  9. +armcortexm4 () {
  10. +  prefixtools arm-none-eabi-
  11. +  gccchoice="4.8.3"
  12. +
  13. +  GCCOPTS="$CCOPTS -mthumb -march=armv7e-m -mtune=cortex-m4"
  14. +  GCCOPTIMIZE="-fomit-frame-pointer"  endian="little"
  15. +  arch_profile="m"
  16. +}
  17. +
  18.  whichadvanced () {
  19.    atype=`echo "$1" | cut -c 2-`
  20.    ##################################################################
  21. @@ -1344,6 +1353,9 @@ cat <<EOF
  22.   230) 760
  23.   231) 960
  24.  
  25. +==Unknown==
  26. + 250) Nautilus
  27. +
  28.  EOF
  29.  
  30.    buildfor=`input`;
  31. @@ -3744,6 +3756,26 @@ fi
  32.      t_model="ihifi"
  33.      ;;
  34.  
  35. +    250|Nautilus)
  36. +    target_id=90
  37. +    modelname="nautilus"
  38. +    target="NAUTILUS"
  39. +    memory=16
  40. +    bmp2rb_mono="$rootdir/tools/bmp2rb -f 0"
  41. +    bmp2rb_native="$rootdir/tools/bmp2rb -f 4"
  42. +    tool="$rootdir/tools/scramble -add=stm"
  43. +    output="nautilus.fw"
  44. +    bootoutput="boot.stm"
  45. +    appextra="gui:recorder"
  46. +    plugins=""
  47. +    swcodec="yes"
  48. +    toolset=$scramblebitmaptools
  49. +    t_cpu="arm"
  50. +    t_manufacturer="ST"
  51. +    t_model="nautilus"
  52. +    armcortexm4
  53. +    ;;
  54. +
  55.     *)
  56.      echo "Please select a supported target platform!"
  57.      exit 7
  58. @@ -4103,6 +4135,11 @@ elif [ "$ARG_CCACHE" != "0" ]; then
  59.    fi
  60.  fi
  61.  
  62. +if [ -n "$arch_profile" ]; then
  63. +    arch_profile="arch_profile_$arch_profile"
  64. +    Darch_profile="#define ARCH_PROFILE $arch_profile"
  65. +fi
  66. +
  67.  # figure out the full path to the various commands if possible
  68.  HOSTCC=`findtool gcc --lit`
  69.  HOSTAR=`findtool ar --lit`
  70. @@ -4212,10 +4249,16 @@ cat > autoconf.h <<EOF
  71.  #define arch_amd64 6
  72.  #define ARCH_AMD64 6
  73.  
  74. +
  75. ++#define arch_profile_m  0
  76. ++#define ARCH_PROFILE_M  0
  77. +
  78.  /* Define target machine architecture */
  79.  #define ARCH ${arch}
  80.  /* Optionally define architecture version */
  81.  ${Darch_version}
  82. +/* Optionally define architecture profile */
  83. +${Darch_profile}
  84.  
  85.  /* Define endianess for the target or simulator platform */
  86.  #define ${defendian} 1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top