diff options
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/qemu-arm-static.spec | 133 | ||||
-rw-r--r-- | packaging/qemu-binfmt-conf.sh | 69 | ||||
-rw-r--r-- | packaging/rpmlintrc | 5 |
3 files changed, 0 insertions, 207 deletions
diff --git a/packaging/qemu-arm-static.spec b/packaging/qemu-arm-static.spec deleted file mode 100644 index 6a90ee399..000000000 --- a/packaging/qemu-arm-static.spec +++ /dev/null @@ -1,133 +0,0 @@ -# -# spec file for package qemu -# -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. -# -# All modifications and additions to the file contributed by third parties -# remain the property of their copyright owners, unless otherwise agreed -# upon. The license for this file, and modifications and additions to the -# file, is the same license as for the pristine package itself (unless the -# license for the pristine package is not an Open Source License, in which -# case the license is the MIT License). An "Open Source License" is a -# license that conforms to the Open Source Definition (Version 1.9) -# published by the Open Source Initiative. - -# Please submit bugfixes or comments via http://bugs.opensuse.org/ -# - - -Name: qemu-arm-static -Url: http://www.qemu.org/ -Summary: Universal CPU emulator -License: BSD-3-Clause and GPL-2.0+ and LGPL-2.1+ and MIT -Group: System/Emulators/PC -Version: 1.6.0rc3.tizen20200617 -Release: 0 -Source: qemu-1.6.0-rc3.tar.bz2 -Source1: qemu-binfmt-conf.sh -# this is to make lint happy -Source300: rpmlintrc -BuildRoot: %{_tmppath}/%{name}-%{version}-build - -BuildRequires: python -BuildRequires: libattr-devel -%if 0%{?suse_version} >= 1220 -BuildRequires: pcre-devel-static -%endif -%if 0%{?suse_version} -BuildRequires: glibc-devel-static -BuildRequires: libattr-devel-static -BuildRequires: glib2-devel-static -BuildRequires: zlib-devel-static -%else -BuildRequires: glibc-static -BuildRequires: glib2-static -BuildRequires: zlib-static -%endif -%if 0%{?centos_version} == 600 - -%else -Requires: qemu -%endif -Provides: qemu:%_bindir/qemu-arm-static -Provides: tizen-qemu-arm-static = 2020.06.17 - -%description -QEMU is an extremely well-performing CPU emulator that allows you to -choose between simulating an entire system and running userspace -binaries for different architectures under your native operating -system. It currently emulates x86, ARM, PowerPC and SPARC CPUs as well -as PC and PowerMac systems. - -%prep -%setup -q -n qemu-1.6.0-rc3 -%if 0%{?fedora} == 23 -%global debug_package %{nil} -%endif - -%build - -export LDFLAGS="-lrt -pthread -lgthread-2.0 -lglib-2.0" -./configure \ - --prefix=%_prefix \ - --sysconfdir=%_sysconfdir \ - --libexecdir=%_libexecdir \ - --target-list="arm-linux-user,arm64-linux-user" \ - --disable-tools \ - --disable-guest-agent \ - --disable-docs \ - --disable-system \ - --enable-linux-user \ - --disable-werror \ - --disable-linux-aio \ - --disable-fdt \ - --disable-sdl \ - --static - -%if 0%{?suse_version} >= 1230 || 0%{?fedora} >= 19 || 0%{?centos_version} == 700 -# -lrt needs to come after -lglib-2.0 to avoid undefined mq_open, mq_xxx -sed -i "s/-lglib-2.0/-lglib-2.0 -lrt/" config-host.mak -%endif - -make %{?jobs:-j%jobs} V=1 - -%install -make install DESTDIR=$RPM_BUILD_ROOT -install -d -m 755 $RPM_BUILD_ROOT/%_sbindir -install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%_sbindir -mv $RPM_BUILD_ROOT/%_bindir/qemu-arm $RPM_BUILD_ROOT/%_bindir/qemu-arm-static -mv $RPM_BUILD_ROOT/%_bindir/qemu-arm64 $RPM_BUILD_ROOT/%_bindir/qemu-arm64-static -rm -rf $RPM_BUILD_ROOT/%_datadir -rm -rf $RPM_BUILD_ROOT/%_sysconfdir -rm -rf $RPM_BUILD_ROOT/%_libexecdir -#%fdupes -s $RPM_BUILD_ROOT - -%clean -rm -rf ${RPM_BUILD_ROOT} - -%files -%defattr(-, root, root) -%{_bindir}/qemu-arm-static -%{_bindir}/qemu-arm64-static -%{_bindir}/qemu-arm-binfmt -%{_bindir}/qemu-arm64-binfmt -%{_sbindir}/* - -%changelog -* Wed Jun 17 2020 yan11.meng@samsung.com -- Fix deb upload failed issue on launchpad -- change struct ucontext to ucontext_t -- use ucontext_t instead struct ucontext. -- fix pylint errors for qemu-arm-static -- fix build error in xUbuntu_19.10 -- fix build error for ubuntu20.04 - -* Sat Dec 31 2016 sk7.park@samsung.com -- Add depands packae qemu -- Add the qemu-arm-binfmt (qemu-arm64-binfmt) -- Upgrade tizen version to tizen20161231 -* Thu Oct 02 2014 markus.lehtonen@linux.intel.com -- Change packaging to Debian non-native -* Wed Jul 09 2014 gui.chen@intel.com -- update to v1.6.0 - diff --git a/packaging/qemu-binfmt-conf.sh b/packaging/qemu-binfmt-conf.sh deleted file mode 100644 index 53fadc815..000000000 --- a/packaging/qemu-binfmt-conf.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/sh -# enable automatic i386/ARM/M68K/MIPS/SPARC/PPC/s390 program execution by the kernel - -# load the binfmt_misc module -if [ ! -d /proc/sys/fs/binfmt_misc ]; then - /sbin/modprobe binfmt_misc -fi -if [ ! -f /proc/sys/fs/binfmt_misc/register ]; then - mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc -fi - -# probe cpu type -cpu=`uname -m` -case "$cpu" in - i386|i486|i586|i686|i86pc|BePC|x86_64) - cpu="i386" - ;; - m68k) - cpu="m68k" - ;; - mips*) - cpu="mips" - ;; - "Power Macintosh"|ppc|ppc64) - cpu="ppc" - ;; - armv[4-9]*) - cpu="arm" - ;; -esac - -# register the interpreter for each cpu except for the native one -if [ $cpu != "i386" ] ; then - echo ':i386:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/local/bin/qemu-i386:' > /proc/sys/fs/binfmt_misc/register - echo ':i486:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x06\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/local/bin/qemu-i386:' > /proc/sys/fs/binfmt_misc/register -fi -if [ $cpu != "alpha" ] ; then - echo ':alpha:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x26\x90:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/local/bin/qemu-alpha:' > /proc/sys/fs/binfmt_misc/register -fi -if [ $cpu != "arm" ] ; then - echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfa\xff\xff\xff:/usr/bin/qemu-arm-static:' > /proc/sys/fs/binfmt_misc/register - echo ':armeb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-arm-static:P' > /proc/sys/fs/binfmt_misc/register -fi -if [ $cpu != "sparc" ] ; then - echo ':sparc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/local/bin/qemu-sparc:' > /proc/sys/fs/binfmt_misc/register -fi -if [ $cpu != "ppc" ] ; then - echo ':ppc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x14:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/local/bin/qemu-ppc:' > /proc/sys/fs/binfmt_misc/register -fi -if [ $cpu != "m68k" ] ; then - echo 'Please check cpu value and header information for m68k!' - echo ':m68k:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x04:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/local/bin/qemu-m68k:' > /proc/sys/fs/binfmt_misc/register -fi -if [ $cpu != "mips" ] ; then - # FIXME: We could use the other endianness on a MIPS host. - echo ':mips:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/local/bin/qemu-mips:' > /proc/sys/fs/binfmt_misc/register - echo ':mipsel:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/local/bin/qemu-mipsel:' > /proc/sys/fs/binfmt_misc/register - echo ':mipsn32:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/local/bin/qemu-mipsn32:' > /proc/sys/fs/binfmt_misc/register - echo ':mipsn32el:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/local/bin/qemu-mipsn32el:' > /proc/sys/fs/binfmt_misc/register - echo ':mips64:M::\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/local/bin/qemu-mips64:' > /proc/sys/fs/binfmt_misc/register - echo ':mips64el:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/local/bin/qemu-mips64el:' > /proc/sys/fs/binfmt_misc/register -fi -if [ $cpu != "sh" ] ; then - echo ':sh4:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a\x00:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/local/bin/qemu-sh4:' > /proc/sys/fs/binfmt_misc/register - echo ':sh4eb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/local/bin/qemu-sh4eb:' > /proc/sys/fs/binfmt_misc/register -fi -if [ $cpu != "s390x" ] ; then - echo ':s390x:M::\x7fELF\x02\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x16:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/local/bin/qemu-s390x:' > /proc/sys/fs/binfmt_misc/register -fi diff --git a/packaging/rpmlintrc b/packaging/rpmlintrc deleted file mode 100644 index 66f5a92d9..000000000 --- a/packaging/rpmlintrc +++ /dev/null @@ -1,5 +0,0 @@ -# This line is mandatory to access the configuration functions -from Config import * - -addFilter("arch-dependent-file-in-usr-share") - |