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
|
cat install.sh
|
||||||
sed -e '/linux\/ioctl.h/a#include <linux\/sched.h>' -i kqemu-linux.c
|
sed -e '/linux\/ioctl.h/a#include <linux\/sched.h>' -i kqemu-linux.c
|
||||||
'') ["minInit" "doUnpack"];
|
'') ["minInit" "doUnpack"];
|
||||||
|
fixInc = {
|
||||||
phaseNames = ["preConfigure" "doConfigure" "debugStep" "doMakeInstall"];
|
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 = {
|
meta = {
|
||||||
description = " Kernel module for Qemu acceleration ";
|
description = " Kernel module for Qemu acceleration ";
|
||||||
|
@ -17,8 +17,19 @@ rec {
|
|||||||
sed -e '/depmod/d' -i install.sh
|
sed -e '/depmod/d' -i install.sh
|
||||||
cat install.sh
|
cat install.sh
|
||||||
'') ["minInit" "doUnpack"];
|
'') ["minInit" "doUnpack"];
|
||||||
|
fixInc = {
|
||||||
phaseNames = ["preConfigure" "doConfigure" "debugStep" "doMakeInstall"];
|
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 = {
|
meta = {
|
||||||
description = " Kernel module for Qemu acceleration ";
|
description = " Kernel module for Qemu acceleration ";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user