Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I'm wondering where I can download the source code of the kernel of Mac OS X Mountain Lion 10.8.2: Darwin 12.2.0.

I googled it, but its hard to find. And yes, I tried http://www.opensource.apple.com.

share|improve this question

2 Answers 2

You are looking in the correct spot. I haven't seen the wiki updated since Lion - but in the past, the comprehensive build scripts were packaged as part of the darwinbuild project.

The source for 10.8.2 is listed at http://www.opensource.apple.com/release/mac-os-x-1082/ and you might just try grabbing the latest darwinbuild from MacPorts rather thab building it from source to see if it can help you pull a newer branch corresponding to 10.8 even though the documentation is not written to indicate if the Mountain Lion specific branch steps are complete (or even require anything different than just taking the current trunk code).

share|improve this answer
    
Mmmmh. There is no mention of Darwin on the page you gave me. I searched Darwin, but the only match was in the "Related Site" section of the page. Should I search for something else than Darwin? –  Frizlab Oct 27 '12 at 0:54
up vote 1 down vote accepted

I found it. Actually, the Darwin kernel is named xnu. The complete kernel name, version included, for Mac OS X 10.8.2 is xnu-2050.18.24.

It can be downloaded here: http://www.opensource.apple.com/tarballs/xnu/xnu-2050.18.24.tar.gz.

Source code can be browsed online here: http://www.opensource.apple.com/source/xnu/xnu-2050.18.24/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.