Page 1 of 1

Custom Build Based on OpenWRT Fork

Posted: Fri Sep 05, 2025 2:39 pm
by asammar
Hello everyone,

Is there a way to compile a custom image based on an OpenWRT fork and not the official release?

I am trying to build an ipq806x image based on one of the NSS forks to improve performance. I've done several custom Gargoyle builds in the past but all are based on standard OpenWRT releases.

Any hints would be greatly appreciated.

Thank you.

Re: Custom Build Based on OpenWRT Fork

Posted: Fri Sep 05, 2025 6:26 pm
by Lantis
Can you link the fork so I can take a look?

Basically the way Gargoyle build scripts work:
1. Establishes global variables (language settings, target and profile)
2. Shrinks JavaScript and CSS to minimise space
3. Downloads OpenWrt source code to the “target-src” folder
4. Copies the right config into the OpenWrt source
5. Switches to that folder and runs some patching routines
6. Starts the regular OpenWrt make commands
7. At the end copied the right images and packages back out

So the approach depends on how this fork is set up. If it looks exactly like a regular OpenWrt repository but they’ve patched in NSS, you can just switch out step 3 in the code.

https://github.com/ericpaulbishop/gargo ... ld.sh#L551

Keep in mind that if they have custom package feeds that need to be brought in that might need to be managed.

Also be wary that the config file will likely be different to addin the NSS components. These changes need to be merged to the Gargoyle config.

And finally, viewtopic.php?t=17924
Be aware of what features likely won’t work.

Re: Custom Build Based on OpenWRT Fork

Posted: Fri Sep 05, 2025 10:13 pm
by asammar
Thank you very much for the prompt and detailed response, Lantis!

The fork I am looking at is this one:
https://github.com/asvio/R7800-nss

To my inexperienced eye, it looks the same as a regular OpenWrt repo. There are indeed some custom package feeds according to the instructions there.

I am OK with the non-working features. They are not needed for the setup I am putting together.

Thanks again.