DragonFly users List (threaded) for 2009-11
Re: Makefile upgrade: target for x86_64
YONETANI Tomokazu wrote:
On Fri, Nov 06, 2009 at 09:56:44PM +0530, Saifi Khan wrote:
On Sat, 7 Nov 2009, YONETANI Tomokazu wrote:
On Fri, Nov 06, 2009 at 08:06:56PM +0530, Saifi Khan wrote:
Yonetani Tomokazu thank you for your reply.
By setting environment variables with the same name, or specify them
Running the Makefile in debug mode, shows that the following
variables are still set to amd64
Please see the highlighted lines (line 751 and 752) at
How do i set these variables to x86_64 in the Makefile ?
on the command line. Otherwise they're taken from sysctl variables
(look at InitVariables() function in make's source code).
i wrote a small shell script that i 'source' so that the
environment variables are set.
If you're performing the `approved method of upgrading your
system', you're still running old kernel, which should return
I've just upgraded my amd64 machine as described at the end of build(7)
with a little arrangement:
env - PATH=/sbin:/bin:/usr/sbin:/usr/bin __MAKE_CONF=/dev/null sh -c '
make buildkernel KERNCONF=FOO
make installkernel KERNCONF=FOO
MACHINE_ARCH=x86_64 make upgrade
(the first line is to get rid of extra env variables or /etc/make.conf)
then rebooted, and now make command reports these variables correctly:
$ env - PATH=$PATH make -V MACHINE_ARCH -V MACHINE -V MACHINE_PLATFORM
correct. just reboot and then perform the make upgrade.