HAL on Darwin/OSX?

Jeshua Lacock jeshua at OpenOSX.com
Thu Oct 13 00:16:27 PDT 2005

On Oct 11, 2005, at 8:09 AM, David Zeuthen wrote:

>> I was curious if HAL runs on the Darwin/Mac OSX platform?
> Should be possible. One explicit goal we had when designing HAL was 
> that
> an operating system might only supply a subset of the functionality
> specified in the spec. So, initially only you would only export e.g.
> physical devices (USB, PCI etc.), then you would add disk drives,
> volumes, batteries etc.
>>  From what I gather, it doesn't, it appears to be Linux only...
> You should be able to build it so it only exports a single hal device
> object, namely the root computer device object. AFAIK this works on
> Solaris so getting it to run on Darwin should be a walk in the park. Of
> course, only exporting the computer is not too useful but it's a good
> starting point for hacking on this code.


Thanks for the help.


I don't know about a "walk in the park" but everything does seem 
straightforward, albeit, a fairly extensive port.

The ioctl calls will have to be ported (many calls could use the ioreg 
system command instead), and numerous linux-only headers and 
definitions must be ported such as linux/input.h, and what is mntent.h? 
All of the CD-ROM/DVD/ATA/SCSI drivers will need attention.

Question.  What would one do to build a minimal version of HAL that 
would export a single device - the computer?  I would like to start 
there instead of trying to get everything working at first. Are there 
configure options to achieve this, or will I need to edit the 
Makefiles? Has hal been ported to BSD, that would be a good start.

I am completely new to hal, so please be patient with me.


Jeshua Lacock ___________________________
Programmer/Owner		Phone:	877.240.1364
http://OpenOSX.com		Fax:		415.462.6211

More information about the hal mailing list