[openbeos] Re: Jamfiles howto
- From: "Jonas Sundström" <jonas@xxxxxxxxxxx>
- To: openbeos@xxxxxxxxxxxxx
- Date: Fri, 29 Jun 2007 18:21:31 +0200 CEST
"Salvatore Benedetto" <emitrax@xxxxxxxxx> wrote:
...
> Besides, once the Jamfile is done, how am I supposed
> to compile the code? I know that in order to load the
> driver, I only need to place the binary in a certain directory.
This should work for your Jamfile:
"
SubDir HAIKU_TOP src add-ons kernel drivers video quickcam ;
SetSubDirSupportedPlatformsBeOSCompatible ;
UsePrivateHeaders quickcam ;
KernelAddon quickcam :
quickcam.c
sensor_pb0100.c
sensor_hdcs1000.c
;
"
I'm not sure if the BeOSCompatible should be included.
(I think the Package rule is for making archives of a driver or other
component for the build factory. Don't worry about that for now.)
If you have also edited the Jamfile of the parent folder you should be
able to just run "jam" or "jam -q" (stops at the first error) in the
quickcam folder.
The compiled driver ends up in ../../../../../../generated/objects/
haiku/x86/release/add-ons/kernel/drivers/video/quickcam/quickcam. If
you want it to be added to your Haiku image builds, I think you have to
edit build/jam/HaikuImage
/Jonas.
- Follow-Ups:
- [openbeos] Re: Jamfiles howto
- From: Salvatore Benedetto
- References:
- [openbeos] Re: Jamfiles howto
- From: Salvatore Benedetto
Other related posts:
- » [openbeos] Jamfiles howto
- » [openbeos] Re: Jamfiles howto
- » [openbeos] Re: Jamfiles howto
- » [openbeos] Re: Jamfiles howto
- » [openbeos] Re: Jamfiles howto
- » [openbeos] Re: Jamfiles howto
- » [openbeos] Re: Jamfiles howto
- » [openbeos] Re: Jamfiles howto
- » [openbeos] Re: Jamfiles howto
- » [openbeos] Re: Jamfiles howto
- [openbeos] Re: Jamfiles howto
- From: Salvatore Benedetto
- [openbeos] Re: Jamfiles howto
- From: Salvatore Benedetto