Advertisement
Guest User

Untitled

a guest
Aug 4th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.22 KB | None | 0 0
  1. diff --git a/tools/configure b/tools/configure
  2. index 30687b2..83106db 100755
  3. --- a/tools/configure
  4. +++ b/tools/configure
  5. @@ -502,6 +502,13 @@ arm7ejscc () {
  6.   endian="little"
  7.  }
  8.  
  9. +armcortexm4 () {
  10. +  findarmgcc
  11. +  GCCOPTS="$CCOPTS -mthumb -march=armv7e-m -mtune=cortex-m4"
  12. +  GCCOPTIMIZE="-fomit-frame-pointer"  endian="little"
  13. +  arch_profile="m"
  14. +}
  15. +
  16.  mipselcc () {
  17.   prefixtools mipsel-elf-
  18.   # mips is predefined, but we want it for paths. use __mips instead
  19. @@ -4159,6 +4166,11 @@ if [ -n "$arch_version" ]; then
  20.      Darch_version="#define ARCH_VERSION $arch_version"
  21.  fi
  22.  
  23. +if [ -n "$arch_profile" ]; then
  24. +    arch_profile="arch_profile_$arch_profile"
  25. +    Darch_profile="#define ARCH_PROFILE $arch_profile"
  26. +fi
  27. +
  28.  if test -n "$ccache"; then
  29.    CC="$ccache $CC"
  30.  fi
  31. @@ -4212,10 +4224,15 @@ cat > autoconf.h <<EOF
  32.  #define arch_amd64 6
  33.  #define ARCH_AMD64 6
  34.  
  35. +#define arch_profile_m  0
  36. +#define ARCH_PROFILE_M  0
  37. +
  38.  /* Define target machine architecture */
  39.  #define ARCH ${arch}
  40.  /* Optionally define architecture version */
  41.  ${Darch_version}
  42. +/* Optionally define architecture profile */
  43. +${Darch_profile}
  44.  
  45.  /* Define endianess for the target or simulator platform */
  46.  #define ${defendian} 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement