1 (edited by Munk 2018-01-11 03:05:38)

Topic: How to build a fork of github openwrt/packages

Hey guys,
I am new to openwrt and I added some functionality to the tinyproxy package.
Before submitting a pull request I want to test my changes.
I forked the github openwrt/packages repo but I am not clear how to have opkg install from the fork.
The opkg documentation I found refers to ipk files and I am confused how this repo ties in.

All the tutorials I can find in the wiki seems to describe a process that builds a firmware image.
I am trying to only build something that I can install via opkg as I don't want to have to reflash my router for testing.

I have a docker instance of noonien/docker-openwrt-buildroot but I think this is still trying to build a flash image.

Can anyone point me to some resources that will help?

Thanks

2 (edited by Antek 2018-01-13 15:23:58)

Re: How to build a fork of github openwrt/packages

To perform this, you'll need to clone the primary OpenWrt repository as well. Then copy the file feeds.conf.default into a new file feeds.conf.

In this new file, remove all other lines except the line for 'packages'. Then modify the 'packages' line to point to your alternate package repository.

If you forked the packages repository in GitHub, then this should be pretty simple: just update the address shown on the 'packages' line.

If you cloned the packages repository to your local computer and modified it there, then you'll need to modify the line to look like the following:

src-link packages /full/path/to/your/clone/folder

If this does not work, then simply delete the feeds.conf file and modify the feeds.conf.default directly. Just remember to omit changes to this file when committing or making pull requests.

EDIT: With these changes, you can use your local OpenWrt clone to build a firmware image with your update package. The modified package will appear under the bin folder, too, and you can copy it from there manually to your router and install it using opkg, if you do not want to re-flash the whole thing.