Hi,

I'm trying to understand the build procedures of ONNV.
I did a successful build onnv_138. But when discussing the procedure a question 
 was asked regarding the setup the onbld tools.
I thinks it's called the workspace directory in any case it's the base 
directory for my question.
I issued the following command:
$ ksh93 usr/src/tools/scripts/bldenv.sh onnv.sh \
 "cd usr/src/tools && dmake install && cd .."

than came the remark "you missed && dmake setup after cd .."
Ok, but I got my build. What's going on..
Doing some searching I found this post by James McPherson
http://mail.opensolaris.org/pipermail/on-discuss/2010-May/001812.html
He suggested to issue:
$ ksh93 usr/src/tools/scripts/bldenv.sh envfile \
        "cd usr/src && \
        PATH= (insert PATH statement here) dmake setup && \
        cd tools && dmake install"

He included the setup target but also reversed the order.

Looking in the usr/src/Makefile if found the following lines regarding the 
setup target

line 99
mapfiles: bldtools
        @cd common/mapfiles; pwd; $(MAKE) install

line 160
#
# Top-level setup target to setup the development environment that includes
# headers, tools and generated mapfiles.  For open-only builds (i.e.: source
# trees w/o usr/closed), this also depends on the closedbins target (above)
# in order to properly seed the proto area.  Note, although the tools are
# dependent on a number of constant mapfiles, the tools themselves are
# required to build the generated mapfiles.
#
setup: bldtools mapfiles

bldtools: closedbins sgs
        @cd tools; pwd; $(MAKE) install

If I'm correct the setup target calls bldtools which will call the dmake 
install in tools. So is the dmake install in the command line redundant?
Bonus question, why did my build succeeded on my clean 134 machine when I did 
not call dmake setup?

Thank you,

Frederik
-- 
This message posted from opensolaris.org
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to