aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFranklin S. Cooper Jr2013-04-29 21:13:41 -0500
committerFranklin S. Cooper Jr2013-05-06 15:26:35 -0500
commit176c8869817913967ae1a0d561535eb40ba8a527 (patch)
tree7baeff7023dd414d5033507077d5d3c26d2f6f46
parent9b7b4fbde8fcf796a23da2a464dbf934e550f6c9 (diff)
downloadarm_benchmarks-176c8869817913967ae1a0d561535eb40ba8a527.tar.gz
arm_benchmarks-176c8869817913967ae1a0d561535eb40ba8a527.tar.xz
arm_benchmarks-176c8869817913967ae1a0d561535eb40ba8a527.zip
arm_benchmarks: Allow CFLAGS to be overridden.
* Allow CFLAGS to be overridden so Makefiles can support different architecture and allow different toolchains to be used.
-rw-r--r--armv5te/dhrystone/Makefile13
-rw-r--r--armv5te/linpack/Makefile11
-rw-r--r--armv5te/whetstone/Makefile11
-rw-r--r--armv7a/dhrystone/Makefile11
-rw-r--r--armv7a/linpack/Makefile12
-rw-r--r--armv7a/whetstone/Makefile12
6 files changed, 19 insertions, 51 deletions
diff --git a/armv5te/dhrystone/Makefile b/armv5te/dhrystone/Makefile
index 02f19c3..6a8971a 100644
--- a/armv5te/dhrystone/Makefile
+++ b/armv5te/dhrystone/Makefile
@@ -3,7 +3,7 @@
3# 3#
4# @path 4# @path
5# 5#
6# @desc Makefile for dhrystone for arm926ej-s (Debug and Release versions) 6# @desc Makefile for dhrystone (Debug and Release versions)
7# 7#
8# @ver 1.10 8# @ver 1.10
9# ---------------------------------------------------------------------------- 9# ----------------------------------------------------------------------------
@@ -21,8 +21,7 @@
21# ---------------------------------------------------------------------------- 21# ----------------------------------------------------------------------------
22# Variables passed in externally 22# Variables passed in externally
23# ---------------------------------------------------------------------------- 23# ----------------------------------------------------------------------------
24PLATFORM ?= 24CFLAGS ?= -march=armv5te -mtune=arm926ej-s
25ARCH ?=
26CROSS_COMPILE ?= 25CROSS_COMPILE ?=
27 26
28# ---------------------------------------------------------------------------- 27# ----------------------------------------------------------------------------
@@ -68,15 +67,11 @@ INCLUDES :=
68# All compiler options to be passed to the command line 67# All compiler options to be passed to the command line
69# ---------------------------------------------------------------------------- 68# ----------------------------------------------------------------------------
70ALL_CFLAGS := $(INCLUDES) \ 69ALL_CFLAGS := $(INCLUDES) \
71 -march=armv5te \
72 -mtune=arm926ej-s \
73 -c \ 70 -c \
74 $(CFLAGS) 71 $(CFLAGS)
75 72
76LDFLAGS := -march=armv5te \ 73LDFLAGS := -Wl,--hash-style=gnu \
77 -mtune=arm926ej-s \ 74 -Wl,-O1 \
78 -Wl,--hash-style=gnu \
79 -Wl,-O1
80 75
81# ---------------------------------------------------------------------------- 76# ----------------------------------------------------------------------------
82# Compiler symbol definitions 77# Compiler symbol definitions
diff --git a/armv5te/linpack/Makefile b/armv5te/linpack/Makefile
index 3090d61..4700f32 100644
--- a/armv5te/linpack/Makefile
+++ b/armv5te/linpack/Makefile
@@ -3,7 +3,7 @@
3# 3#
4# @path 4# @path
5# 5#
6# @desc Makefile for linpack for arm926ej-s (Debug and Release versions) 6# @desc Makefile for linpack (Debug and Release versions)
7# 7#
8# @ver 1.10 8# @ver 1.10
9# ---------------------------------------------------------------------------- 9# ----------------------------------------------------------------------------
@@ -21,8 +21,7 @@
21# ---------------------------------------------------------------------------- 21# ----------------------------------------------------------------------------
22# Variables passed in externally 22# Variables passed in externally
23# ---------------------------------------------------------------------------- 23# ----------------------------------------------------------------------------
24PLATFORM ?= 24CFLAGS ?= -march=armv5te -mtune=arm926ej-s
25ARCH ?=
26CROSS_COMPILE ?= 25CROSS_COMPILE ?=
27 26
28# ---------------------------------------------------------------------------- 27# ----------------------------------------------------------------------------
@@ -68,15 +67,11 @@ INCLUDES :=
68# All compiler options to be passed to the command line 67# All compiler options to be passed to the command line
69# ---------------------------------------------------------------------------- 68# ----------------------------------------------------------------------------
70ALL_CFLAGS := $(INCLUDES) \ 69ALL_CFLAGS := $(INCLUDES) \
71 -march=armv5te \
72 -mtune=arm926ej-s \
73 -fmessage-length=0 \ 70 -fmessage-length=0 \
74 -c \ 71 -c \
75 $(CFLAGS) 72 $(CFLAGS)
76 73
77LDFLAGS := -march=armv5te \ 74LDFLAGS := -Wl,-O1 \
78 -mtune=arm926ej-s \
79 -Wl,-O1 \
80 -Wl,--hash-style=gnu \ 75 -Wl,--hash-style=gnu \
81 -lm 76 -lm
82 77
diff --git a/armv5te/whetstone/Makefile b/armv5te/whetstone/Makefile
index 2f1c7a6..9ad7eaf 100644
--- a/armv5te/whetstone/Makefile
+++ b/armv5te/whetstone/Makefile
@@ -3,7 +3,7 @@
3# 3#
4# @path 4# @path
5# 5#
6# @desc Makefile for whetstone for arm926ej-s (Debug and Release versions) 6# @desc Makefile for whetstone (Debug and Release versions)
7# 7#
8# @ver 1.10 8# @ver 1.10
9# ---------------------------------------------------------------------------- 9# ----------------------------------------------------------------------------
@@ -21,8 +21,7 @@
21# ---------------------------------------------------------------------------- 21# ----------------------------------------------------------------------------
22# Variables passed in externally 22# Variables passed in externally
23# ---------------------------------------------------------------------------- 23# ----------------------------------------------------------------------------
24PLATFORM ?= 24CFLAGS ?= -march=armv5te -mtune=arm926ej-s
25ARCH ?=
26CROSS_COMPILE ?= 25CROSS_COMPILE ?=
27 26
28# ---------------------------------------------------------------------------- 27# ----------------------------------------------------------------------------
@@ -68,16 +67,12 @@ INCLUDES :=
68# All compiler options to be passed to the command line 67# All compiler options to be passed to the command line
69# ---------------------------------------------------------------------------- 68# ----------------------------------------------------------------------------
70ALL_CFLAGS := $(INCLUDES) \ 69ALL_CFLAGS := $(INCLUDES) \
71 -march=armv5te \
72 -mtune=arm926ej-s \
73 -fmessage-length=0 \ 70 -fmessage-length=0 \
74 -Wall \ 71 -Wall \
75 -c \ 72 -c \
76 $(CFLAGS) 73 $(CFLAGS)
77 74
78LDFLAGS := -march=armv5te \ 75LDFLAGS := -Wl,-O1 \
79 -mtune=arm926ej-s \
80 -Wl,-O1 \
81 -Wl,--hash-style=gnu \ 76 -Wl,--hash-style=gnu \
82 -lm 77 -lm
83 78
diff --git a/armv7a/dhrystone/Makefile b/armv7a/dhrystone/Makefile
index e007581..56bf5a8 100644
--- a/armv7a/dhrystone/Makefile
+++ b/armv7a/dhrystone/Makefile
@@ -3,7 +3,7 @@
3# 3#
4# @path 4# @path
5# 5#
6# @desc Makefile for dhrystone for cortex-a8 (Debug and Release versions) 6# @desc Makefile for dhrystone (Debug and Release versions)
7# 7#
8# @ver 1.10 8# @ver 1.10
9# ---------------------------------------------------------------------------- 9# ----------------------------------------------------------------------------
@@ -21,8 +21,7 @@
21# ---------------------------------------------------------------------------- 21# ----------------------------------------------------------------------------
22# Variables passed in externally 22# Variables passed in externally
23# ---------------------------------------------------------------------------- 23# ----------------------------------------------------------------------------
24PLATFORM ?= 24CFLAGS ?= -march=armv7-a -mtune=cortex-a8
25ARCH ?=
26CROSS_COMPILE ?= 25CROSS_COMPILE ?=
27 26
28# ---------------------------------------------------------------------------- 27# ----------------------------------------------------------------------------
@@ -68,14 +67,10 @@ INCLUDES :=
68# All compiler options to be passed to the command line 67# All compiler options to be passed to the command line
69# ---------------------------------------------------------------------------- 68# ----------------------------------------------------------------------------
70ALL_CFLAGS := $(INCLUDES) \ 69ALL_CFLAGS := $(INCLUDES) \
71 -march=armv7-a \
72 -mtune=cortex-a8 \
73 -c \ 70 -c \
74 $(CFLAGS) 71 $(CFLAGS)
75 72
76LDFLAGS := -march=armv7-a \ 73LDFLAGS := -Wl,--hash-style=gnu \
77 -mtune=cortex-a8, \
78 -Wl,--hash-style=gnu \
79 -Wl,-O1 \ 74 -Wl,-O1 \
80 75
81# ---------------------------------------------------------------------------- 76# ----------------------------------------------------------------------------
diff --git a/armv7a/linpack/Makefile b/armv7a/linpack/Makefile
index dbc2b74..fc6b2f4 100644
--- a/armv7a/linpack/Makefile
+++ b/armv7a/linpack/Makefile
@@ -3,7 +3,7 @@
3# 3#
4# @path 4# @path
5# 5#
6# @desc Makefile for linpack for cortex-a8 (Debug and Release versions) 6# @desc Makefile for linpack (Debug and Release versions)
7# 7#
8# @ver 1.10 8# @ver 1.10
9# ---------------------------------------------------------------------------- 9# ----------------------------------------------------------------------------
@@ -21,8 +21,7 @@
21# ---------------------------------------------------------------------------- 21# ----------------------------------------------------------------------------
22# Variables passed in externally 22# Variables passed in externally
23# ---------------------------------------------------------------------------- 23# ----------------------------------------------------------------------------
24PLATFORM ?= 24CFLAGS ?= -march=armv7-a -mtune=cortex-a8
25ARCH ?=
26CROSS_COMPILE ?= 25CROSS_COMPILE ?=
27 26
28# ---------------------------------------------------------------------------- 27# ----------------------------------------------------------------------------
@@ -68,16 +67,11 @@ INCLUDES :=
68# All compiler options to be passed to the command line 67# All compiler options to be passed to the command line
69# ---------------------------------------------------------------------------- 68# ----------------------------------------------------------------------------
70ALL_CFLAGS := $(INCLUDES) \ 69ALL_CFLAGS := $(INCLUDES) \
71 -march=armv7-a \
72 -mtune=cortex-a8 \
73 -mfloat-abi=softfp \
74 -fmessage-length=0 \ 70 -fmessage-length=0 \
75 -c \ 71 -c \
76 $(CFLAGS) 72 $(CFLAGS)
77 73
78LDFLAGS := -march=armv7-a \ 74LDFLAGS := -Wl,-O1 \
79 -mtune=cortex-a8 \
80 -Wl,-O1 \
81 -Wl,--hash-style=gnu \ 75 -Wl,--hash-style=gnu \
82 -lm 76 -lm
83 77
diff --git a/armv7a/whetstone/Makefile b/armv7a/whetstone/Makefile
index 0731a26..d22fefb 100644
--- a/armv7a/whetstone/Makefile
+++ b/armv7a/whetstone/Makefile
@@ -3,7 +3,7 @@
3# 3#
4# @path 4# @path
5# 5#
6# @desc Makefile for whetstone for cortex-a8 (Debug and Release versions) 6# @desc Makefile for whetstone (Debug and Release versions)
7# 7#
8# @ver 1.10 8# @ver 1.10
9# ---------------------------------------------------------------------------- 9# ----------------------------------------------------------------------------
@@ -21,8 +21,7 @@
21# ---------------------------------------------------------------------------- 21# ----------------------------------------------------------------------------
22# Variables passed in externally 22# Variables passed in externally
23# ---------------------------------------------------------------------------- 23# ----------------------------------------------------------------------------
24PLATFORM ?= 24CFLAGS ?= -march=armv7-a -mtune=cortex-a8
25ARCH ?=
26CROSS_COMPILE ?= 25CROSS_COMPILE ?=
27 26
28# ---------------------------------------------------------------------------- 27# ----------------------------------------------------------------------------
@@ -68,17 +67,12 @@ INCLUDES :=
68# All compiler options to be passed to the command line 67# All compiler options to be passed to the command line
69# ---------------------------------------------------------------------------- 68# ----------------------------------------------------------------------------
70ALL_CFLAGS := $(INCLUDES) \ 69ALL_CFLAGS := $(INCLUDES) \
71 -march=armv7-a \
72 -mtune=cortex-a8 \
73 -mfloat-abi=softfp \
74 -fmessage-length=0 \ 70 -fmessage-length=0 \
75 -Wall \ 71 -Wall \
76 -c \ 72 -c \
77 $(CFLAGS) 73 $(CFLAGS)
78 74
79LDFLAGS := -march=armv7-a \ 75LDFLAGS := -Wl,-O1 \
80 -mtune=cortex-a8 \
81 -Wl,-O1 \
82 -Wl,--hash-style=gnu \ 76 -Wl,--hash-style=gnu \
83 -lm 77 -lm
84 78