title: building Linux kernel on Mac OS X
body: <p>I am doing a project to modify the Linux kernel. I have a desktop Linux machine and I have no problem building kernel on it.</p>
  
  <p>However, I am going on a trip and I want to work on my way. I only have a MacBook. When I tried to build the Linux kernel, it complained that <code>elf.h was not found</code>. </p>
  
  <p>I download an elf.h from internet. Now it complains: <code>NO ELF</code></p>
  
  <p>I tried copying the entire <code>/usr/include</code> from my Linux desktop, and set it as the include directory, and still get strange errors like <code>"u8" not declared</code></p>
  
  <p>What is the standard way of doing kernel development on Mac? I have a virtual machine running Linux on the same Mac, and it will be used to test the modified kernel. However, I don't really want to build kernel on it, as it is kinda slow.</p>