summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2013-09-03 21:17:54 -0400
committerAnas Nashif <anas.nashif@intel.com>2013-09-03 21:48:00 -0400
commitf56842e495d798022536351e5865d71855223c3a (patch)
treefc05086eee0658ef95dc67f5f40b50b09eedbc17
parent6a8d25c09836923d642a6c02e1d49d61abda9618 (diff)
downloadrpm-f56842e495d798022536351e5865d71855223c3a.tar.gz
rpm-f56842e495d798022536351e5865d71855223c3a.tar.bz2
rpm-f56842e495d798022536351e5865d71855223c3a.zip
also set optflag defaults for armv7l Change-Id: I0cdcc093245b1e121b51327b83300b59d101a30b Signed-off-by: Anas Nashif <anas.nashif@intel.com>
-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