summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYury Usishchev <y.usishchev@samsung.com>2015-08-05 21:03:26 +0300
committerhyokeun <hyokeun.jeon@samsung.com>2016-09-06 16:23:56 +0900
commit6b2685ec84dc5ab8a7eee3a3eb3df36f6ab93094 (patch)
tree8496db2ea5ffe8bcbbfade3db78671c8c7f04fed
parent8eb82d2ef234da40fdc45e2caef49f676bf16f5c (diff)
downloadqemu-6b2685ec84dc5ab8a7eee3a3eb3df36f6ab93094.tar.gz
qemu-6b2685ec84dc5ab8a7eee3a3eb3df36f6ab93094.tar.bz2
qemu-6b2685ec84dc5ab8a7eee3a3eb3df36f6ab93094.zip
Add compatibility symlinks
Symlinks to qemu binaries placed in directories where they are searched by common non-Tizen binfmt_misc configurations (eq. in Ubuntu). Change-Id: I6b8602736926dba24a7ffbc70c91222ec3ba5cc8
-rw-r--r--packaging/qemu-linux-user.spec16
1 files changed, 14 insertions, 2 deletions
diff --git a/packaging/qemu-linux-user.spec b/packaging/qemu-linux-user.spec
index 4bca75a94..1f5a1ec7a 100644
--- a/packaging/qemu-linux-user.spec
+++ b/packaging/qemu-linux-user.spec
@@ -146,8 +146,18 @@ ln -sf ../../../emul/ia32-linux $RPM_BUILD_ROOT/usr/share/qemu/qemu-i386
%ifnarch ia64
mkdir -p $RPM_BUILD_ROOT/emul/ia32-linux
%endif
-ln -sf /%_bindir/qemu-aarch64 $RPM_BUILD_ROOT/%_bindir/qemu-arm64
-ln -sf /%_bindir/qemu-aarch64-binfmt $RPM_BUILD_ROOT/%_bindir/qemu-arm64-binfmt
+# add compatibility symlinks
+ln -sf qemu-aarch64 $RPM_BUILD_ROOT/%_bindir/qemu-arm64
+ln -sf qemu-aarch64-binfmt $RPM_BUILD_ROOT/%_bindir/qemu-arm64-binfmt
+ln -sf qemu-arm $RPM_BUILD_ROOT/%_bindir/qemu-arm-static
+ln -sf qemu-aarch64 $RPM_BUILD_ROOT/%_bindir/qemu-aarch64-static
+mkdir -p $RPM_BUILD_ROOT/qemu
+for arch in arm{,64} aarch64;
+do
+ ln -sf %{_bindir}/qemu-$arch $RPM_BUILD_ROOT/qemu/qemu-$arch
+ ln -sf %{_bindir}/qemu-$arch-binfmt $RPM_BUILD_ROOT/qemu/qemu-$arch-binfmt
+done
+
%fdupes -s $RPM_BUILD_ROOT
%clean
@@ -186,6 +196,8 @@ rm -rf ${RPM_BUILD_ROOT}
%_bindir/qemu-unicore32
%_bindir/qemu-x86_64
%_bindir/qemu-*-binfmt
+%_bindir/qemu-*-static
+/qemu/
%_sbindir/qemu-binfmt-conf.sh
%ifnarch %ix86 x86_64 ia64
%dir /emul/ia32-linux