Add armv7hl architecture support 20/157620/3 submit/tizen/20171030.044443
authorDongkyun Son <dongkyun.s@samsung.com>
Wed, 25 Oct 2017 10:04:19 +0000 (19:04 +0900)
committerChan Lee <chan45.lee@samsung.com>
Thu, 26 Oct 2017 04:11:06 +0000 (13:11 +0900)
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>
packaging/swap-manager.spec
ui_viewer/Makefile

index 1063b44..a766be0 100644 (file)
@@ -25,6 +25,13 @@ Source:    %{name}_%{version}.tar.gz
 %define WSP_SUPPORT 0
 %endif
 
+%ifarch armv7l
+%define ARCH armv7l
+%endif
+%ifarch armv7hl
+%define ARCH armv7hl
+%endif
+
 %if %{with emulator}
 ExcludeArch: x86_64
 %else
@@ -127,7 +134,7 @@ cd -
 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}
index 59ed15f..b398519 100644 (file)
@@ -58,10 +58,13 @@ FLAGS := \
        $(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