Custom Build Based on OpenWRT Fork

Discuss the technical details of Gargoyle and ongoing development

Moderator: Moderators

Post Reply
asammar
Posts: 8
Joined: Thu Dec 17, 2020 11:19 pm

Custom Build Based on OpenWRT Fork

Post 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.

Lantis
Moderator
Posts: 7149
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia
Contact:

Re: Custom Build Based on OpenWRT Fork

Post 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.
https://lantisproject.com/downloads/gargoylebuilds for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.
https://lantisproject.com/blog

asammar
Posts: 8
Joined: Thu Dec 17, 2020 11:19 pm

Re: Custom Build Based on OpenWRT Fork

Post 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.

Post Reply