Skip to content

About

OpenWRT package feed for FRRouting

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

frr-openwrt-feed

An OpenWRT package feed for FRRouting and the dependencies upstream FRR development needs: libyang (carried in-feed so it can lead the official feed) and librtr (rtrlib; absent from official feeds, required for BGP RPKI).

Add the feed

Append to your OpenWRT / SDK feeds.conf (or feeds.conf.default):

src-git frr https://<host>/frr-openwrt-feed.git
# or a local checkout:
src-link frr /path/to/frr-openwrt-feed

Then install, preferring this feed so the in-feed libyang wins:

./scripts/feeds update frr
./scripts/feeds install -a -p frr     # -p frr is REQUIRED for the libyang override

libyang override caveat: -p frr only takes effect for packages not already installed. If the official libyang was installed earlier (package/feeds/packages/libyang exists), remove the stale link first: rm package/feeds/*/libyang && ./scripts/feeds install -p frr libyang.

Source modes

Each package (frr, libyang, librtr) can build from a release, a git ref, or a local tree.

  • Release (default): pinned version + verified hash. frr 10.6.1, libyang 3.13.6, librtr 0.8.0.
  • Git ref:
    • frr / librtr: make menuconfig → the package → its "source" choice → Git ref, then set the git URL and ref. (Edit .config directly in headless/CI use, e.g. CONFIG_FRR_SOURCE_GIT=y, CONFIG_FRR_GIT_REF="...".)
    • libyang: make-variables, e.g. make package/libyang/compile LIBYANG_GIT_REF=v3.14.0. (libyang uses make-vars rather than a menuconfig choice to avoid a Kconfig symbol clash with the official libyang entry when both feeds are active.)
  • Local tree (any package): OpenWRT's native override. Symlink git-src in the package dir to the .git directory of a local git checkout (OpenWRT links it in as the build dir's .git and runs git checkout .), then enable the global override:
    ln -s /path/to/your-frr-checkout/.git feeds/frr/net/frr/git-src
    echo 'CONFIG_SRC_TREE_OVERRIDE=y' >> .config && make defconfig
    It overlays on whatever Release/Git mode is selected. Two caveats: the local tree must be a committed git working tree, and OpenWRT does not apply this package's patches/ in override mode — bring a build-ready source tree.

Git and local modes set PKG_MIRROR_HASH:=skip and are not hash-reproducible — intended for dev/CI, not release builds.

BGP RPKI

Enable FRR_RPKI (make menuconfig → frr) to build --enable-rpki; it pulls in librtr automatically. Off by default.

Layout

net/frr/      FRR package (forked from openwrt/packages) + source switch + RPKI
libs/libyang/ in-feed libyang (overrides official by feed priority)
libs/librtr/  rtrlib packaged as librtr (new; required for RPKI)

About

OpenWRT package feed for FRRouting

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages