Current-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Where does the kernel get built?
On Tue, Nov 29, 2011 at 10:40:47AM -0500, D'Arcy Cain wrote:
> On 11-11-29 10:35 AM, D'Arcy Cain wrote:
> >+[ -f /etc/mk.conf ] && grep MAKEOBJDIRPREFIX /etc/mk.conf|tr -d '
> >'|${HOST_SH}
>
> Ignore that. I hit "Send" too soon. This is what I meant:
>
> [ -f /etc/mk.conf ] && eval `grep MAKEOBJDIRPREFIX /etc/mk.conf|tr -d ' '`
How about this, in either build.sh or nbmake-<arch>:
if [ -z "${MAKEOBJDIRPREFIX}" ] ; then
MAKEOBJDIRPREFIX=$(make -V '${MAKEOBJDIRPREFIX}')
fi
That'll actually evaluate the setting in mk.conf according to make's rules
and set it without the risk of shell metacharacters interfering.
eric
Home |
Main Index |
Thread Index |
Old Index