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).
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 overridelibyang override caveat:
-p frronly takes effect for packages not already installed. If the official libyang was installed earlier (package/feeds/packages/libyangexists), remove the stale link first:rm package/feeds/*/libyang && ./scripts/feeds install -p frr libyang.
Each package (frr, libyang, librtr) can build from a release, a git ref,
or a local tree.
- Release (default): pinned version + verified hash.
frr10.6.1,libyang3.13.6,librtr0.8.0. - Git ref:
frr/librtr:make menuconfig→ the package → its "source" choice → Git ref, then set the git URL and ref. (Edit.configdirectly 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-srcin the package dir to the.gitdirectory of a local git checkout (OpenWRT links it in as the build dir's.gitand runsgit checkout .), then enable the global override: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'sln -s /path/to/your-frr-checkout/.git feeds/frr/net/frr/git-src echo 'CONFIG_SRC_TREE_OVERRIDE=y' >> .config && make defconfig
patches/in override mode — bring a build-ready source tree.
Git and local modes set
PKG_MIRROR_HASH:=skipand are not hash-reproducible — intended for dev/CI, not release builds.
Enable FRR_RPKI (make menuconfig → frr) to build --enable-rpki; it pulls
in librtr automatically. Off by default.
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)