Project

General

Profile

QuickStart » History » Version 18

« Previous - Version 18/40 (diff) - Next » - Current version
Michael Vale, 10/19/2012 08:11 AM


QuickStart

Quickstart guide to creating a ZRouter build environment.

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

This should probably be done within a Jail.

  1. Create a path set aside for ZRouter build.
    # mkdir -p ZRouter/
  2. Enter directory:
    # cd ZRouter
  3. Checkout/clone ZRouter Project
    # hg clone http://zrouter.org/hg/zrouter/
  4. Checkout/clone Current compatible FreeBSD source:
    # hg clone http://zrouter.org/hg/FreeBSD/head FreeBSD
  5. Create Makefile.local.opts and set the following environment variables:
    # ee Makefile.local.opts
     export FREEBSD_SRC_TREE=${PATH_TO_FREEBSD_SRC}/head
     export OBJ_DIR=${PATH_FOR_OBJ_BUILD_DIR}
    
  6. Begin ZRouter Build Menu
    # ./menu.sh

    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:
    -# make TARGET_PAIR=Board/Model FREEBSD_SRC_TREE=${PATH_TO_FREEBSD_SRC}/head OBJ_DIR=${PATH_FOR_OBJ_BUILD_DIR}