Support option "-mfloat-abi=hard".
Change-Id: I89d702c09e1deef8d74eedd765e4a7eb7588b144
Signed-off-by: Dongkyun Son <dongkyun.s@samsung.com>
Signed-off-by: Chan Lee <chan45.lee@samsung.com>
%define WSP_SUPPORT 0
%endif
+%ifarch armv7l
+%define ARCH armv7l
+%endif
+%ifarch armv7hl
+%define ARCH armv7hl
+%endif
+
%if %{with emulator}
ExcludeArch: x86_64
%else
cd daemon && make && cd - || false
# build ui_viewer
-cd ui_viewer && make && cd - || false
+cd ui_viewer && make %{?ARCH:ARCH=%{ARCH}} && cd - || false
%install
rm -rf ${RPM_BUILD_ROOT}
$(DEBUG_FLAGS) \
$(WARN_CFLAGS)
-ifeq (arm, $(findstring arm, $(shell uname -sm)))
+ifeq (armv7l, $(findstring armv7l, $(ARCH)))
FLAGS += -DDEVICE_ONLY -mno-unaligned-access -mfloat-abi=soft
endif
+ifeq (armv7hl, $(findstring armv7hl, $(ARCH)))
+ FLAGS += -DDEVICE_ONLY -mno-unaligned-access -mfloat-abi=hard
+endif
# compiler flags
CFLAGS := $(FLAGS) -D_GNU_SOURCE -fPIC