[openbeosnetteam] Re: stack

Ingo wrote us:
> I commented out the inclusion of src/add-ons/kernel/drivers/net/
stack. 
> Not only because it doesn't build, but also because the name `stack' 
> for the net stack executable clashes with the STL header <stack>. 

Woa, my bad: the executable name was supposed to be "net_stack_driver", 
not simply "stack".

> This is a bit ugly, as it makes all files that include <stack> depend 
on the 
> net stack being built first. I see only two solutions for this 
problem: 
> 1) rename the executable (e.g. `net_stack') or add grist, e.g. `<net>
> stack', or even better `<user!net>stack' and `<kernel!net>stack' for 
> the two flavors.

Hum, could you explain me, eternal Jam weebie, what's "grist"?

Will renaming the executable name would be enough to fix this issue?
Like this:

R5KernelAddon net_stack_driver : kernel drivers bin :
        net_stack_driver.c      // net_userstack_driver.c for Userland stack 
version...
;



Bonus question: how to add support for building the kernel stack 
version OR the userland stack version of this driver in this Jamfile? 
Testing an env variable existence?

-Philippe

--
Fortune Cookie Says:

Overdrawn?  But I still have checks left!


Other related posts: