Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/tools/configure b/tools/configure
- index 30687b2..83106db 100755
- --- a/tools/configure
- +++ b/tools/configure
- @@ -502,6 +502,13 @@ arm7ejscc () {
- endian="little"
- }
- +armcortexm4 () {
- + findarmgcc
- + GCCOPTS="$CCOPTS -mthumb -march=armv7e-m -mtune=cortex-m4"
- + GCCOPTIMIZE="-fomit-frame-pointer" endian="little"
- + arch_profile="m"
- +}
- +
- mipselcc () {
- prefixtools mipsel-elf-
- # mips is predefined, but we want it for paths. use __mips instead
- @@ -4159,6 +4166,11 @@ if [ -n "$arch_version" ]; then
- Darch_version="#define ARCH_VERSION $arch_version"
- fi
- +if [ -n "$arch_profile" ]; then
- + arch_profile="arch_profile_$arch_profile"
- + Darch_profile="#define ARCH_PROFILE $arch_profile"
- +fi
- +
- if test -n "$ccache"; then
- CC="$ccache $CC"
- fi
- @@ -4212,10 +4224,15 @@ cat > autoconf.h <<EOF
- #define arch_amd64 6
- #define ARCH_AMD64 6
- +#define arch_profile_m 0
- +#define ARCH_PROFILE_M 0
- +
- /* Define target machine architecture */
- #define ARCH ${arch}
- /* Optionally define architecture version */
- ${Darch_version}
- +/* Optionally define architecture profile */
- +${Darch_profile}
- /* Define endianess for the target or simulator platform */
- #define ${defendian} 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement