4 General info about OpenWrt buildsystem: `link <https://openwrt.org/docs/guide-developer/build-system/start>`_.
6 Prepare build environment
7 -------------------------
9 For Debian based distributions, run:
13 sudo apt-get install git build-essential libssl-dev libncurses5-dev \
14 unzip zlib1g-dev subversion mercurial
16 For other environments, instructions can be found in the
17 `official documentation
18 <https://openwrt.org/docs/guide-developer/build-system/install-buildsystem#examples_of_package_installations>`_.
21 Get OpenWrt Sources (from Git)
22 ------------------------------
25 The OpenWrt build will fail if you run it as root. So take care to run it as a nonprivileged user.
27 Clone the OpenWrt sources and retrieve the package feeds
31 git clone https://github.com/openwrt/openwrt.git
33 ./scripts/feeds update -a
34 ./scripts/feeds install -a
36 Configure OpenWrt for your target and select the needed FRR packages in Network -> Routing and Redirection -> frr,
43 Then, to compile either a complete OpenWrt image, or the FRR packages, run:
47 make or make package/frr/compile
49 It may be possible that on first build ``make package/frr/compile`` not
50 to work and it may be needed to run a ``make`` for the entire build
51 environment. Add ``V=s`` to get more debugging output.
53 More information about OpenWrt buildsystem can be found `here
54 <https://openwrt.org/docs/guide-developer/build-system/use-buildsystem>`__.
59 To update to a newer version, or change other options, you need to edit the ``feeds/packages/frr/Makefile``.
61 More information about working with patches in OpenWrt buildsystem can be found `here
62 <https://openwrt.org/docs/guide-developer/build-system/use-patches-with-buildsystem>`__.
67 Edit ``/usr/sbin/frr.init`` and add/remove the daemons name in section
68 ``DAEMONS=`` or don't install unneeded packages For example: zebra bgpd ldpd
69 isisd nhrpd ospfd ospf6d pimd ripd ripngd
74 - ``service frr enable``
79 - ``service frr start``