summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehun Jeong <jh4u.jeong@samsung.com>2017-07-11 08:23:46 (GMT)
committerDongkyun, Son <dongkyun.s@samsung.com>2017-07-14 12:32:37 (GMT)
commit31277ec73930e0a613c84aa7589c7a9129bdda98 (patch)
treeee1995e2a17af2e1dbdf8fc9c16ca69ad728e1a8
parent58cb688fd9f04087a63f5cb2aebadd6810b4a840 (diff)
downloadcoreclr-sandbox/dkson95/hardfp.zip
coreclr-sandbox/dkson95/hardfp.tar.gz
coreclr-sandbox/dkson95/hardfp.tar.bz2
Add hard-float option to spec filesandbox/dkson95/hardfp
Signed-off-by: Jaehun Jeong <jh4u.jeong@samsung.com> Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
-rw-r--r--compileoptions.cmake1
-rw-r--r--packaging/coreclr.spec12
2 files changed, 13 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..a8a6fe3 100644
--- a/packaging/coreclr.spec
+++ b/packaging/coreclr.spec
@@ -201,14 +201,26 @@ export C_INCLUDE_PATH="${LLVM_INCLUDEDIR}/llvm-c/:%{_includedir}"
%else
%ifarch %{arm}
+%ifarch armv7l
%define _barch armel
+%endif
+%ifarch armv7hl
+%define _barch arm
+%endif
%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!