forked from mirrors/nixpkgs
Fixes implemented inside kqemu expression
svn path=/nixpkgs/trunk/; revision=14234
This commit is contained in:
parent
8bf73286a4
commit
edfe20b2ac
|
@ -18,8 +18,19 @@ rec {
|
|||
cat install.sh
|
||||
sed -e '/linux\/ioctl.h/a#include <linux\/sched.h>' -i kqemu-linux.c
|
||||
'') ["minInit" "doUnpack"];
|
||||
|
||||
phaseNames = ["preConfigure" "doConfigure" "debugStep" "doMakeInstall"];
|
||||
fixInc = {
|
||||
text = ''
|
||||
sed -e '/#include/i#include <linux/sched.h>' -i kqemu-linux.c
|
||||
'';
|
||||
deps = ["minInit" "doUnpack"];
|
||||
};
|
||||
fixMemFunc = {
|
||||
text=''
|
||||
sed -e 's/memset/mymemset/g; s/memcpy/mymemcpy/g; s/void [*]my/static void *my/g' -i common/kernel.c
|
||||
'';
|
||||
deps = ["minInit" "doUnpack"];
|
||||
};
|
||||
phaseNames = ["fixInc" "fixMemFunc" "preConfigure" "doConfigure" "debugStep" "doMakeInstall"];
|
||||
|
||||
meta = {
|
||||
description = " Kernel module for Qemu acceleration ";
|
||||
|
|
|
@ -17,8 +17,19 @@ rec {
|
|||
sed -e '/depmod/d' -i install.sh
|
||||
cat install.sh
|
||||
'') ["minInit" "doUnpack"];
|
||||
|
||||
phaseNames = ["preConfigure" "doConfigure" "debugStep" "doMakeInstall"];
|
||||
fixInc = {
|
||||
text = ''
|
||||
sed -e '/#include/i#include <linux/sched.h>' -i kqemu-linux.c
|
||||
'';
|
||||
deps = ["minInit" "doUnpack"];
|
||||
};
|
||||
fixMemFunc = {
|
||||
text=''
|
||||
sed -e 's/memset/mymemset/g; s/memcpy/mymemcpy/g; s/void [*]my/static void *my/g' -i common/kernel.c
|
||||
'';
|
||||
deps = ["minInit" "doUnpack"];
|
||||
};
|
||||
phaseNames = ["fixInc" "fixMemFunc" "preConfigure" "doConfigure" "debugStep" "doMakeInstall"];
|
||||
|
||||
meta = {
|
||||
description = " Kernel module for Qemu acceleration ";
|
||||
|
|
Loading…
Reference in a new issue