diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2005-07-26 13:51:13 +0000 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2005-07-26 13:51:13 +0000 |
commit | 8ad5e950b6c89d5bc0518937cb2439a4d0bbef5d (patch) | |
tree | 4924df55df9f63ae7addd63e8281ee88dd1b4947 /app-emulation/qemu-softmmu | |
parent | Added to ~ppc (diff) | |
download | gentoo-2-8ad5e950b6c89d5bc0518937cb2439a4d0bbef5d.tar.gz gentoo-2-8ad5e950b6c89d5bc0518937cb2439a4d0bbef5d.tar.bz2 gentoo-2-8ad5e950b6c89d5bc0518937cb2439a4d0bbef5d.zip |
sysfs support added back
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'app-emulation/qemu-softmmu')
-rw-r--r-- | app-emulation/qemu-softmmu/ChangeLog | 6 | ||||
-rw-r--r-- | app-emulation/qemu-softmmu/Manifest | 10 | ||||
-rw-r--r-- | app-emulation/qemu-softmmu/files/kqemu-0.7.1-sysfs.patch | 63 | ||||
-rw-r--r-- | app-emulation/qemu-softmmu/qemu-softmmu-0.7.1.ebuild | 4 |
4 files changed, 75 insertions, 8 deletions
diff --git a/app-emulation/qemu-softmmu/ChangeLog b/app-emulation/qemu-softmmu/ChangeLog index 414c8993bae4..ca5bccf832bf 100644 --- a/app-emulation/qemu-softmmu/ChangeLog +++ b/app-emulation/qemu-softmmu/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-emulation/qemu-softmmu # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-softmmu/ChangeLog,v 1.3 2005/07/26 08:06:05 lu_zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-softmmu/ChangeLog,v 1.4 2005/07/26 13:51:13 lu_zero Exp $ + + 26 Jul 2005; Luca Barbato <lu_zero@gentoo.org> + +files/kqemu-0.7.1-sysfs.patch, qemu-softmmu-0.7.1.ebuild: + updated the sysfs patch, thanks to Philippe Weibel <philippe.weibel@free.fr> 26 Jul 2005; Luca Barbato <lu_zero@gentoo.org> qemu-softmmu-0.7.1.ebuild: Fixes and workarounds for the latest kernels. diff --git a/app-emulation/qemu-softmmu/Manifest b/app-emulation/qemu-softmmu/Manifest index ced3d5bf74bb..f4eac320454d 100644 --- a/app-emulation/qemu-softmmu/Manifest +++ b/app-emulation/qemu-softmmu/Manifest @@ -1,8 +1,8 @@ -MD5 898131aae735c3477ff2f9c6882f1178 metadata.xml 223 -MD5 c9720995cb9c07c71ca8ba9d9a59ad79 qemu-softmmu-0.7.1.ebuild 3987 +MD5 a6bac601aa366dab6428f29aeef7f1f7 ChangeLog 467 MD5 754955c38d3fe7db22e4bb6842c93c05 qemu-softmmu-0.7.0-r1.ebuild 3956 -MD5 61a1cd678eb957ff7482085a5950f4f1 ChangeLog 719 -MD5 f2e48bae97dad4e6e6bccdb212124ae0 files/digest-qemu-softmmu-0.7.0-r1 127 -MD5 fd7335121f3422f52ac0dfe371ffb6b8 files/digest-qemu-softmmu-0.7.1 125 +MD5 3e1972ec132fd96bdc667c8f9ad890c0 qemu-softmmu-0.7.1.ebuild 3917 +MD5 898131aae735c3477ff2f9c6882f1178 metadata.xml 223 MD5 87ec2e1fa832612fb834d7dd49cf7e5c files/kqemu-sysfs.patch 2094 +MD5 fd7335121f3422f52ac0dfe371ffb6b8 files/digest-qemu-softmmu-0.7.1 125 MD5 3202f7445799cce82ccaac9749e1443d files/qemu-softmmu-0.7.0-errno.patch 487 +MD5 f2e48bae97dad4e6e6bccdb212124ae0 files/digest-qemu-softmmu-0.7.0-r1 127 diff --git a/app-emulation/qemu-softmmu/files/kqemu-0.7.1-sysfs.patch b/app-emulation/qemu-softmmu/files/kqemu-0.7.1-sysfs.patch new file mode 100644 index 000000000000..1cd2cef22a23 --- /dev/null +++ b/app-emulation/qemu-softmmu/files/kqemu-0.7.1-sysfs.patch @@ -0,0 +1,63 @@ +--- kqemu.orig/kqemu-linux.c 2005-07-26 17:22:06.000000000 +0200 ++++ kqemu/kqemu-linux.c 2005-07-26 17:21:20.000000000 +0200 +@@ -17,6 +17,11 @@ + #include <asm/uaccess.h> + #include <asm/io.h> + ++#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) ++#include <linux/device.h> ++static struct class_simple *kqemu_class; ++#endif ++#include <linux/devfs_fs_kernel.h> + #include "kqemu.h" + + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,4,19) +@@ -344,10 +349,38 @@ + return ret; + } + } ++ ++#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) ++ kqemu_class = class_simple_create(THIS_MODULE, "kqemu"); ++ ++ if (IS_ERR(kqemu_class)) { ++ ret = PTR_ERR(kqemu_class); ++ goto out_chrdev; ++ } ++ ++ class_simple_device_add(kqemu_class, MKDEV(major, 0), NULL, "kqemu"); ++ ++#endif ++ ++ ret = devfs_mk_cdev(MKDEV(major, 0), ++ S_IFCHR|S_IRUSR|S_IWUSR, "kqemu"); ++ if (ret) ++ goto out_class; ++ + printk("KQEMU installed, max_instances=%d max_locked_mem=%dkB.\n", + KQEMU_MAX_INSTANCES, + max_locked_pages * 4); + return 0; ++ ++out_class: ++#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) ++ class_simple_device_remove(MKDEV(major,0)); ++ class_simple_destroy(kqemu_class); ++#endif ++out_chrdev: ++ unregister_chrdev(major, "kqemu"); ++ ++ return ret; + } + + void cleanup_module(void) +@@ -356,4 +389,9 @@ + unregister_chrdev(major, "kqemu"); + else + misc_deregister (&kqemu_dev); ++ devfs_remove("kqemu"); ++#if LINUX_VERSION_CODE > KERNEL_VERSION(2,6,0) ++ class_simple_device_remove(MKDEV(major, 0)); ++ class_simple_destroy(kqemu_class); ++#endif + } diff --git a/app-emulation/qemu-softmmu/qemu-softmmu-0.7.1.ebuild b/app-emulation/qemu-softmmu/qemu-softmmu-0.7.1.ebuild index 16e1f66ad3ef..fdc3f4d636a7 100644 --- a/app-emulation/qemu-softmmu/qemu-softmmu-0.7.1.ebuild +++ b/app-emulation/qemu-softmmu/qemu-softmmu-0.7.1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-softmmu/qemu-softmmu-0.7.1.ebuild,v 1.2 2005/07/26 08:06:05 lu_zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/qemu-softmmu/qemu-softmmu-0.7.1.ebuild,v 1.3 2005/07/26 13:51:13 lu_zero Exp $ inherit eutils flag-o-matic linux-mod toolchain-funcs @@ -56,7 +56,7 @@ src_unpack() { einfo "if you want it released under GPL" mv ${S}/../kqemu ${S} cd ${S}/kqemu - #epatch ${FILESDIR}/kqemu-sysfs.patch + epatch ${FILESDIR}/kqemu-${PV}-sysfs.patch sed -i -e "s:#ifndef PAGE_KERNEL_EXEC:#if 1:" ${S}/kqemu/kqemu-linux.c fi # if use qvm86; then |