tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: introduce OBJMACHINE_ARCH



On Dec 7,  8:59am, martin%duskware.de@localhost (Martin Husemann) wrote:
-- Subject: Re: introduce OBJMACHINE_ARCH

| On Wed, Dec 07, 2016 at 12:44:10AM +0000, Christos Zoulas wrote:
| > >which gives me that feature without any source code changes and
| > >it works going back to when MAKEOBJDIRPREFIX was added.
| 
| I use a very similar aproach to mrg's (a wrapper script around build.sh
| that sets -M depending on the requested arch)
| 
| > - this does not put the objdir in the tree.
| 
| This is a plus!

Not if you are trying to build in a single directory.

| > - it needs an external environment variable setup which is specific
| >   for each tree.
| 
| The nbmake-${arch} wrapper remembers it, so no need to keep the variable
| around afterwards.

Yes, so what? If I build in /usr/src/usr.bin/make, I have to find where my
objdir put it, and I am forced to use nbmake-arch which limits me to a tools
build.

| Anyway, I am not sure I understood what you are trying to do. We could
| modify the default objdir (if no -O and no -M options are given to build.sh)
| to fully include ${MACHINE_ARCH} without patching make, can't we?

There is no modification to the default behavior.

christos


Home | Main Index | Thread Index | Old Index