Project

General

Profile

QuickStart » History » Version 21

Michael Vale, 10/19/2012 09:24 AM

1 1 Nicolai Petri
h1. QuickStart
2 1 Nicolai Petri
3 13 Michael Vale
h2. Quickstart guide to creating a ZRouter build environment.
4 1 Nicolai Petri
5 17 Michael Vale
h3. This Requires you have [[hg]]/mercurial installed (pkg install mercurial).
6 13 Michael Vale
7 14 Michael Vale
This should probably be done within a Jail.
8 14 Michael Vale
9 15 Michael Vale
# Create a path set aside for ZRouter build.
10 16 Michael Vale
<pre># mkdir -p ZRouter/</pre>
11 15 Michael Vale
# Enter directory: 
12 16 Michael Vale
<pre># cd ZRouter</pre>
13 15 Michael Vale
# Checkout/clone ZRouter Project
14 16 Michael Vale
<pre># hg clone http://zrouter.org/hg/zrouter/</pre>
15 15 Michael Vale
# Checkout/clone Current compatible FreeBSD source:
16 16 Michael Vale
<pre># hg clone http://zrouter.org/hg/FreeBSD/head FreeBSD</pre>
17 15 Michael Vale
# Create Makefile.local.opts and set the following environment variables:
18 16 Michael Vale
<pre># ee Makefile.local.opts
19 21 Michael Vale
FREEBSD_SRC_TREE=${PATH_TO_FREEBSD_SRC}/head
20 21 Michael Vale
OBJ_DIR=${PATH_FOR_OBJ_BUILD_DIR}
21 15 Michael Vale
</pre>
22 15 Michael Vale
# Begin ZRouter Build Menu
23 1 Nicolai Petri
<pre># ./menu.sh</pre>
24 19 Michael Vale
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:
25 20 Michael Vale
<pre>-# make TARGET_PAIR=Brand/Model FREEBSD_SRC_TREE=${PATH_TO_FREEBSD_SRC}/head OBJ_DIR=${PATH_FOR_OBJ_BUILD_DIR}</pre>