Project

General

Profile

QuickStart » History » Version 21

Version 20 (Michael Vale, 10/19/2012 08:13 AM) → Version 21/40 (Michael Vale, 10/19/2012 09:24 AM)

h1. QuickStart

h2. Quickstart guide to creating a ZRouter build environment.

h3. This Requires you have [[hg]]/mercurial installed (pkg install mercurial).

This should probably be done within a Jail.

# Create a path set aside for ZRouter build.
<pre># mkdir -p ZRouter/</pre>
# Enter directory:
<pre># cd ZRouter</pre>
# Checkout/clone ZRouter Project
<pre># hg clone http://zrouter.org/hg/zrouter/</pre>
# Checkout/clone Current compatible FreeBSD source:
<pre># hg clone http://zrouter.org/hg/FreeBSD/head FreeBSD</pre>
# Create Makefile.local.opts and set the following environment variables:
<pre># ee Makefile.local.opts

export
FREEBSD_SRC_TREE=${PATH_TO_FREEBSD_SRC}/head

export
OBJ_DIR=${PATH_FOR_OBJ_BUILD_DIR}
</pre>
# Begin ZRouter Build Menu
<pre># ./menu.sh</pre>
Or alternatively run make from the command-line, where Brand is board brand from zrouter/boards and Model is the model from zrouter/boards/brand/model:
<pre>-# make TARGET_PAIR=Brand/Model FREEBSD_SRC_TREE=${PATH_TO_FREEBSD_SRC}/head OBJ_DIR=${PATH_FOR_OBJ_BUILD_DIR}</pre>