diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2014-12-16 10:05:52 +0100 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2014-12-16 10:08:10 +0100 |
commit | 464d02e432a0fe5fb0afec8459631b4467b706f3 (patch) | |
tree | 61ff2420febf54adf1c5868c33de62ec15c37a7b /Makefile.gcc | |
parent | 7edc1ce8ef15b4938542e27b47e4d606c1685d58 (diff) | |
download | platform_external_arm-neon-tests-464d02e432a0fe5fb0afec8459631b4467b706f3.tar.gz platform_external_arm-neon-tests-464d02e432a0fe5fb0afec8459631b4467b706f3.tar.bz2 platform_external_arm-neon-tests-464d02e432a0fe5fb0afec8459631b4467b706f3.zip |
Add CPU variable in Makefiles.
Diffstat (limited to 'Makefile.gcc')
-rw-r--r-- | Makefile.gcc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile.gcc b/Makefile.gcc index 3bec4a3..660dcdc 100644 --- a/Makefile.gcc +++ b/Makefile.gcc @@ -32,9 +32,11 @@ # $ /path/to/qemu -L /path/to/sysroot/lib compute_ref.gccarm # $ diff stm-arm-neon.gccarm ref-rvct-neon.txt +CPU=cortex-a9 + # GCC/ARM cross compiler CC.gccarm := arm-none-eabi-gcc -CFLAGS.gccarm := -g -Wall -mcpu=cortex-a9 -mfloat-abi=hard -mfpu=neon -Wno-unused-variable -Wno-unused-function -ffast-math +CFLAGS.gccarm := -g -Wall -mcpu=$(CPU) -mfloat-abi=hard -mfpu=neon -Wno-unused-variable -Wno-unused-function -ffast-math LD.gccarm := $(CC.gccarm) LDFLAGS.gccarm := $(CFLAGS.gccarm) @@ -75,7 +77,7 @@ check-gccarm: $(REFGCCARM) diff $(REFGCCARM) ref-rvct-neon.txt SIM=qemu-system-arm -SIMFLAGS=-cpu cortex-a9 -semihosting -nographic -kernel +SIMFLAGS=-cpu $(CPU) -semihosting -nographic -kernel $(REFGCCARM): compute_ref.gccarm $(SIM) $(SIMFLAGS) $^ |