Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Jul 2015 06:37:52 -0700
From:      Leonardo Fogel <leonardofogel@yahoo.com.br>
To:        DanielO'Connor <darius@dons.net.au>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: How to Xbuild to BBB?
Message-ID:  <1437313072.79524.YahooMailBasic@web120803.mail.ne1.yahoo.com>
In-Reply-To: <2DED4E32-6599-4F5A-BDC8-E52F420D69C0@dons.net.au>

index | next in thread | previous in thread | raw e-mail

> Is there a way to update a running BBB system?

Hi.
I've built the kernel only. The instructions I know that work are:

$ env MAKEOBJDIRPREFIX=<dir> make buildenv         DESTDIR=<dir> KERNCONF=BEAGLEBONE TARGET=arm TARGET_ARCH=armv6
$ env MAKEOBJDIRPREFIX=<dir> make kernel-toolchain DESTDIR=<dir> KERNCONF=BEAGLEBONE TARGET=arm TARGET_ARCH=armv6
$ env MAKEOBJDIRPREFIX=<dir> make buildkernel      DESTDIR=<dir> KERNCONF=BEAGLEBONE TARGET=arm TARGET_ARCH=armv6
$ env MAKEOBJDIRPREFIX=<dir> make installkernel    DESTDIR=<dir> KERNCONF=BEAGLEBONE TARGET=arm TARGET_ARCH=armv6

According to build(7):
     buildenv          Spawn an interactive shell with environment variables
                       set up for cross-building the system.  The target archi-
                       tecture needs to be specified with make(1) variables
                       TARGET_ARCH and TARGET.
...
     MAKEOBJDIRPREFIX  Defines the prefix for directory names in the tree of
                       built objects.  Defaults to /usr/obj if not defined.
                       This variable should only be set in the environment and
                       not via /etc/make.conf or the command line.

As I understanding it, the correct usage of MAKEOBJDIRPREFIX is:
$ env MAKEOBJDIRPREFIX=<dir> make ...

Hope it helps.

Leonardo


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1437313072.79524.YahooMailBasic>