summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehun Jeong <jh4u.jeong@samsung.com>2017-07-11 08:23:46 (GMT)
committerJaehun Jeong <jh4u.jeong@samsung.com>2017-07-12 23:04:57 (GMT)
commit4cacb8cd05cc7d542156b2776ccfc7a60937bd55 (patch)
tree27898bc5cecd4f20cdffb584d2052986e5af0c72
parent58cb688fd9f04087a63f5cb2aebadd6810b4a840 (diff)
downloadcoreclr-sandbox/jaehun77/hardfp.zip
coreclr-sandbox/jaehun77/hardfp.tar.gz
coreclr-sandbox/jaehun77/hardfp.tar.bz2
Add hard-float option to spec filesandbox/jaehun77/hardfp
Signed-off-by: Jaehun Jeong <jh4u.jeong@samsung.com>
-rw-r--r--compileoptions.cmake1
-rw-r--r--packaging/coreclr.spec7
2 files changed, 8 insertions, 0 deletions
diff --git a/compileoptions.cmake b/compileoptions.cmake
index 75d51fd..45541b9 100644
--- a/compileoptions.cmake
+++ b/compileoptions.cmake
@@ -61,6 +61,7 @@ if(CLR_CMAKE_PLATFORM_UNIX_ARM)
add_compile_options(-mfloat-abi=softfp)
add_compile_options(-target armv7-linux-gnueabi)
else()
+ add_compile_options(-mfloat-abi=hard)
add_compile_options(-target armv7-linux-gnueabihf)
endif(ARM_SOFTFP)
endif(CLR_CMAKE_PLATFORM_UNIX_ARM)
diff --git a/packaging/coreclr.spec b/packaging/coreclr.spec
index 3995c48..96b0c96 100644
--- a/packaging/coreclr.spec
+++ b/packaging/coreclr.spec
@@ -205,10 +205,17 @@ export C_INCLUDE_PATH="${LLVM_INCLUDEDIR}/llvm-c/:%{_includedir}"
%if 0%{skipnative}
%else
+%ifarch armv7l
export CFLAGS="${CFLAGS} -U__GNUC_MINOR__ -D__GNUC_MINOR__=3 -O2 --param=ssp-buffer-size=32 -fdiagnostics-color=never -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -Wp,-D__SOFTFP__ -Wno-error=inline-asm -integrated-as -Wno-ignored-attributes -Wno-switch-enum -Wno-switch -Wno-error=switch -Wno-error=switch-enum -w"
export CPPFLAGS="${CPPFLAGS} -U__GNUC_MINOR__ -D__GNUC_MINOR__=3 -O2 --param=ssp-buffer-size=32 -fdiagnostics-color=never -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -Wp,-D__SOFTFP__ -Wno-error=inline-asm -integrated-as -Wno-ignored-attributes -Wno-switch-enum -Wno-switch -Wno-error=switch -Wno-error=switch-enum -w"
export CXXFLAGS="${CXXFLAGS} -U__GNUC_MINOR__ -D__GNUC_MINOR__=3 -O2 --param=ssp-buffer-size=32 -fdiagnostics-color=never -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=softfp -Wp,-D__SOFTFP__ -Wno-error=inline-asm -integrated-as -Wno-ignored-attributes -Wno-switch-enum -Wno-switch -Wno-error=switch -Wno-error=switch-enum -w"
%endif
+%ifarch armv7hl
+export CFLAGS="${CFLAGS} -U__GNUC_MINOR__ -D__GNUC_MINOR__=3 -O2 --param=ssp-buffer-size=32 -fdiagnostics-color=never -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=hard -Wno-error=inline-asm -integrated-as -Wno-ignored-attributes -Wno-switch-enum -Wno-switch -Wno-error=switch -Wno-error=switch-enum -w"
+export CPPFLAGS="${CPPFLAGS} -U__GNUC_MINOR__ -D__GNUC_MINOR__=3 -O2 --param=ssp-buffer-size=32 -fdiagnostics-color=never -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=hard -Wno-error=inline-asm -integrated-as -Wno-ignored-attributes -Wno-switch-enum -Wno-switch -Wno-error=switch -Wno-error=switch-enum -w"
+export CXXFLAGS="${CXXFLAGS} -U__GNUC_MINOR__ -D__GNUC_MINOR__=3 -O2 --param=ssp-buffer-size=32 -fdiagnostics-color=never -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=neon -mfloat-abi=hard -Wno-error=inline-asm -integrated-as -Wno-ignored-attributes -Wno-switch-enum -Wno-switch -Wno-error=switch -Wno-error=switch-enum -w"
+%endif
+%endif
%else
# write the paths in general!