Howto build » History » Version 6
For this tutorial we expect you check out / unpack the sources to
For now you also need our patched FreeBSD sources. We work on getting this patches back to official FreeBSD-HEAD, so one day this step will be obsolete.
Get it via Mercurial or by fetching ZRouter's patched FreeBSD sources
For this tutorial we expect you check out / unpack the modified FreeBSD sources to
For this tutorial we expect you want to build a firmware for a device from vendor D-Link, the model is DIR-320 (see Supported devices).
As root do:
cd /projects/ZRouter/zrouter make FREEBSD_SRC_TREE=/projects/ZRouter/FreeBSD/head TARGET_PAIR=D-Link/DIR-320
Customize the build¶
You can create the file Makefile.local.opts in your ZRouter's home with predefined variables, so you can skip to specify them with every make run:
FREEBSD_SRC_TREE=/projects/ZRouter/FreeBSD/head # override default /usr/obj OBJ_DIR=/projects/ZRouter/obj TARGET_PAIR=D-Link/DIR-320
Now just run