summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/rpm.spec5
-rw-r--r--rpmrc.in2
2 files changed, 3 insertions, 4 deletions
diff --git a/packaging/rpm.spec b/packaging/rpm.spec
index 72010bd8a..56c83f017 100644
--- a/packaging/rpm.spec
+++ b/packaging/rpm.spec
@@ -210,11 +210,10 @@ rm -rf %{buildroot}/%{_libdir}/python%{py_ver}
rm -f %{buildroot}%{_libdir}/*.la
rm -f %{buildroot}%{_libdir}/rpm-plugins/*.la
sh %{buildroot}/usr/lib/rpm/find-lang.sh %{buildroot} rpm
-%ifarch armv7hl
+%ifarch armv7hl armv7l
# rpm is using the host_cpu as default for the platform, but armv7hl is not known by the kernel.
# so we need to enforce the platform here.
-# We don't want to use armv7l because it would make us incompatible to Fedora and MeeGo plattforms.
-echo -n armv7hl-tizen-linux> %{buildroot}/etc/rpm/platform
+echo -n %{_target_cpu}-tizen-linux-gnueabi > %{buildroot}/etc/rpm/platform
%endif
%post
diff --git a/rpmrc.in b/rpmrc.in
index 903235cc6..c59f93dee 100644
--- a/rpmrc.in
+++ b/rpmrc.in
@@ -67,7 +67,7 @@ optflags: armv4tl -O2 -g -march=armv4t
optflags: armv5tel -O2 -g -march=armv5te
optflags: armv5tejl -O2 -g -march=armv5te
optflags: armv6l -O2 -g -march=armv6
-optflags: armv7l -O2 -g -march=armv7
+optflags: armv7l -O2 -g -march=armv7-a -mtune=cortex-a8 -mlittle-endian -mfpu=vfpv3 -mfloat-abi=softfp -D __SOFTFP__
optflags: armv7hl -O2 -g -march=armv7-a -mfloat-abi=hard -mthumb -mabi=aapcs-linux
optflags: atarist -O2 -g -fomit-frame-pointer