wiki:UmlFedoraCompile

Compiling User Mode Linux kernel on Fedora

This seamed to be the way to compile the 2.6.16.19-TFC-r202 kernel on Fedora Core 6 ....

  1. Do not use a separate build directory (no KBUIL_OUTPUT in the Makefile)
  1. rename /usr/include/linux to something else
  1. make a symlink from /usr/include/linux to the include directory in the kernel version you try to build
  1. modify arch/um/os-Linux/process.c: remove line 142: inline _syscall0(pid_t, getpid)
  1. make defconfig ARCH=um
  1. make ARCH=um

Cleanup: remove the symlink and put back your old /usr/include/linux

Last modified 11 years ago Last modified on Apr 12, 2007, 5:54:12 PM