Opened 16 years ago

Closed 16 years ago

#3780 closed bug (fixed)

Missing support for building to partition from MacOSX/Darwin

Reported by: awpeter Owned by: bonefish
Priority: normal Milestone: R1
Component: Build System Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

hrev30234 There is currently no way to build Haiku directly to a partition from Mac OS. Some part seems to be missing (i think where it figures out the geometry of the hard disk) in src/tools/fs_shell/unistd.cpp, since there are ifdefs for every platform except Darwin.

Attachments (1)

unistd_macosx.diff (1.8 KB ) - added by VinDuv 16 years ago.
unistd.cpp patch for Darwin/Mac OS X

Download all attachments as: .zip

Change History (3)

by VinDuv, 16 years ago

Attachment: unistd_macosx.diff added

unistd.cpp patch for Darwin/Mac OS X

comment:1 by VinDuv, 16 years ago

The attached patch adds support for geometry detection on Mac OS X.
The system does not seems to provide a way to get the disk geometry directly ; I used Darwin's fdisk source code as a reference to calculate them from the disk size.
This allows building Haiku to a partition, at least on my hardware.

comment:2 by bonefish, 16 years ago

Resolution: fixed
Status: newclosed

Thanks! Applied in hrev30289. I enforced the 80 columns per line limit, though.

Note: See TracTickets for help on using tickets.