[haiku] Re: Compiling Haiku

  • From: Bruno Albuquerque <bga@xxxxxxxxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Thu, 17 Sep 2009 12:48:15 -0300

Ricardo Maraschini wrote:

I'm having a great fun here looking for haiku source code and I have a
lot of questions regarding the compile process.
Let's assume that I change a device driver(for instance
intel_extreme/driver.cpp), so I got into intel_extreme directory and
run the "jam" command. As far as I see the compiled files stay under
an directory called "generated" in haiku source.

This is correct.

There's a command(or a parameter to jam) to apply all changed/compiled
binaries to haiku under /boot/system ?

HAIKU_INSTALL_DIR=/boot jam -q update-install intel_extreme

This will compile the target named in tel_extreme and automatically move it to the correct destination based on the destination directory specified by HAIKU_INSTALL_DIR.

2 things to note:

1 - Depending on wha6t you compile, doing this may end up resulting in a crash as some (all?) drivers are automatically picked up by the system and reloaded whenever possible.

2 - This, being a video driver, will probably require am app_server restart which can be achieved in an easy way by rebooting. :)

I need to rebuild all system every time I change something?

Nope. See above.

Anybody can point me to a documentation where I can solve this doubts?

You can check the ReadMe files in the source dir.

Is this the right list for these questions?

AFAIK, yes. But there has been a recent discussion about this and I am not sure about the conclusion. In any case, feel free to ask me anything you want.

-Bruno


Other related posts: