Override package from default repos with package from custom feed when using SDK

There is an package example-1.2 in my custom feed, but example-1.1 in default feed.
When using SDK, I added my custom feed in feeds.conf.default, and used ./scripts/feeds update -a and ./scripts/feeds install -a.
After compiled by make package/example/compile, example-1.1 was built.
How to build example-1.2?

move the line with your feed at the top in feeds.conf.default, then use the script to delete and reinstall feeds.

packages present in the feeds at the top will override packages in feeds below them.

For example

src-link local /path/to/local/custom/feed
src-git packages https://git.openwrt.org/feed/packages.git
src-git luci https://git.openwrt.org/project/luci.git
src-git routing https://git.openwrt.org/feed/routing.git
src-git telephony https://git.openwrt.org/feed/telephony.git
#src-git video https://github.com/openwrt/video.git
#src-git targets https://github.com/openwrt/targets.git
#src-git oldpackages http://git.openwrt.org/packages.git
#src-link custom /usr/src/openwrt/custom-feed

1 Like