summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlava Barinov <v.barinov@samsung.com>2016-05-10 17:44:24 +0300
committerSlava Barinov <v.barinov@samsung.com>2016-05-11 12:31:58 +0300
commit49c09d02db5394aecff9ea467e47eba00238bdeb (patch)
tree0a47544851934006004edcdc9c2ec9010838b283
parent6f76371957017c8197d5db26fd4bcd576214bdf1 (diff)
downloadqemu-accel-49c09d02db5394aecff9ea467e47eba00238bdeb.tar.gz
qemu-accel-49c09d02db5394aecff9ea467e47eba00238bdeb.tar.bz2
qemu-accel-49c09d02db5394aecff9ea467e47eba00238bdeb.zip
Add /bin/ls and /bin/readlink
The readlink tool is called on every single run of gcc and works very slow on arm64 platform now. Native arm64 ls is also slow under our qemu but is widely used during build. Change-Id: I46a0e055e35a93ee58d797ca87da0ed4748e352d Signed-off-by: Slava Barinov <v.barinov@samsung.com>
-rw-r--r--packaging/qemu-accel-aarch64.spec4
-rw-r--r--packaging/qemu-accel-armv7l.spec2
-rw-r--r--packaging/qemu-accel.spec.in2
3 files changed, 4 insertions, 4 deletions
diff --git a/packaging/qemu-accel-aarch64.spec b/packaging/qemu-accel-aarch64.spec
index 6281f62..6d637d8 100644
--- a/packaging/qemu-accel-aarch64.spec
+++ b/packaging/qemu-accel-aarch64.spec
@@ -84,7 +84,7 @@ This package is used in qemu-accel to accelerate python.
set +x
gcc_version=`gcc --version | sed -ne '1s/[^0-9]*\(\([0-9]\.\?\)*\).*/\1/p'`
# just like it is determided in python.spec
-python_version=`python --version 2>&1 | sed -ne '1s/.* //p' | head -c 3`
+python_version=`python --version 2>&1 | sed -ne '1s/.* //p' | head -c 3`
binaries="%{_libdir}/libnsl.so.1 %{_libdir}/libnss_compat.so.2" # loaded via dlopen by glibc
%ifarch %ix86
@@ -121,7 +121,7 @@ for executable in $LD \
%{_bindir}/%{target_arch}-{c++,g++,cpp,gcc,gcc-${gcc_version},gcc-ar,gcc-nm,gcc-ranlib,gcov} \
%{libdir}/gcc/%{target_arch}/${gcc_version}/{cc1,cc1plus,collect2,lto1,lto-wrapper,liblto_plugin.so} \
%{_bindir}/file \
- %{_bindir}/{find,xargs}
+ %{_bindir}/{find,xargs,readlink,ls}
do
binaries="$binaries $executable `ldd $executable | sed -n 's,.*=> \(/[^ ]*\) .*,\1,p'`"
done
diff --git a/packaging/qemu-accel-armv7l.spec b/packaging/qemu-accel-armv7l.spec
index c00b5df..8bcac10 100644
--- a/packaging/qemu-accel-armv7l.spec
+++ b/packaging/qemu-accel-armv7l.spec
@@ -121,7 +121,7 @@ for executable in $LD \
%{_bindir}/%{target_arch}-{c++,g++,cpp,gcc,gcc-${gcc_version},gcc-ar,gcc-nm,gcc-ranlib,gcov} \
%{libdir}/gcc/%{target_arch}/${gcc_version}/{cc1,cc1plus,collect2,lto1,lto-wrapper,liblto_plugin.so} \
%{_bindir}/file \
- %{_bindir}/{find,xargs}
+ %{_bindir}/{find,xargs,readlink,ls}
do
binaries="$binaries $executable `ldd $executable | sed -n 's,.*=> \(/[^ ]*\) .*,\1,p'`"
done
diff --git a/packaging/qemu-accel.spec.in b/packaging/qemu-accel.spec.in
index bc7a7fb..35cded6 100644
--- a/packaging/qemu-accel.spec.in
+++ b/packaging/qemu-accel.spec.in
@@ -118,7 +118,7 @@ for executable in $LD \
%{_bindir}/%{target_arch}-{c++,g++,cpp,gcc,gcc-${gcc_version},gcc-ar,gcc-nm,gcc-ranlib,gcov} \
%{libdir}/gcc/%{target_arch}/${gcc_version}/{cc1,cc1plus,collect2,lto1,lto-wrapper,liblto_plugin.so} \
%{_bindir}/file \
- %{_bindir}/{find,xargs}
+ %{_bindir}/{find,xargs,readlink,ls}
do
binaries="$binaries $executable `ldd $executable | sed -n 's,.*=> \(/[^ ]*\) .*,\1,p'`"
done