title: Building a Linux Kernel with Visual Studio 2010
body: <p>Does anyone have step-by-step instructions on how to build a Linux kernel using Visual Studio 2010?</p>
  
  <p>I've tried to search for the solution to this question directly, but no joy. A few things I have been able to find out:</p>
  
  <ol>
  <li><p>The Linux kernel is built using the GNU C compiler, so a prerequisite would be to build a Windows GNU C compiler, in order to compile a Linux GNU C compiler. I realize the GNU C compiler source code is available from GNU.org, but has anyone actually built the GNU C compiler for Windows using the Microsoft Visual Studio 2010 C/C++ compiler?</p></li>
  <li><p>Once the Linux GNU C compiler is made, I can use it to build the Linux kernel, along with any other Linux-based software needed to get a Linux system up and going. This is what I got from www.linuxfromscratch.org</p></li>
  </ol>
  
  <p>Some of you may be wondering why I don't simply download a pre-compiled GNU C compiler for this? The environment I'm working in is completely separated from any outside network. Even sneaker-net is not allowed. Every bit of software will have to be compiled from source, and those sources will have to be typed in by hand. It's inefficient, but it's also paranoid-secure. (Don't ask, I'm not the boss...)</p>
  
  <p>Anyway, we're looking at bringing up in-house Linux boxes, but we're starting with Windows 7 and Visual Studio 2010. Can someone please advise how we can turn all that re-typed source code into a working GNU C compiler for Windows? And also for Linux?</p>
  
  <p>Thanks for any advice!</p>