Commit Graph

10 Commits

Author SHA1 Message Date
Hamish Coleman
731be7e257 Use caching to try to speed up openwrt builds. Build openwrt statically 2023-01-30 20:31:13 +00:00
Hamish Coleman
a1facf0f3f
Update Openwrt process (#900)
* First attempt at a openwrt CI

* Fix action - helps if I dont forget the syntax half way through writing it

* Try building /this/ branch for the openwrt CI

* Try a build with openssl configured

* Dont enable the n2n package until we have built the environment - makes errors easier to see and clearly related to n2n

* Attempt to speed up the openwrt build

* Upload any created ipkg packages

* Dont test with openssl for the moment

* Attempt to speed up openwrt build using a cache of the build dir

* The make defconfig run turns all the built binaries stale, so stop caching them.  Also use a real ref for the cache key

* Minor text name changes

* Address yamllint concerns

* Attempt to simplify and document missing parts of the openwrt makefile

* Attempt to fix mystery openwrt make error

* Rename build job name

* Avoid nested checkouts, use two separate dirs for the two checkouts in this build

* Move the n2n checkout to earler, allowing us to skip one defconfig run

* We are going to need working tags from the n2n repo, so ensure we unbreak the github checkout braindamage

* Calculate and save the n2n version string

* Prepare the way to pass the correct external vars into the openwrt build

* Hook calculated build variables into the openwrt package definition

* Update artifacts source to match moved checkout dir

* Pass env vars in to the make

* Allow version script to be influenced by external vars

* It will help if I use the same variable names everywhere

* Add more version variable calculation overrides

* Configure openwrt to use the external git checkout instead of their create-tar-then-extract dance

* Using the correct syntax for ifdef will help significantly

* Use as many jobs as we have cpus

* As the USE_SOURCE_DIR option allows us to use a full git checkout, we do not need to hack the version.sh to allow overrides

* Ensure scripts/version.sh works from anywhere

* Remove unneeded variables

* Update openwrt build documentation to match the new build process

* Catch failure to cd as per shellcheck suggestion

* Limit lengthy openwrt builds to manual triggers or on a release

* Also run on specially named branches

* Break list into separate lines for easier future editing
2021-11-18 21:28:50 +00:00
small_5
d2b35f8423
Update Makefile (#751) 2021-08-19 19:56:55 +05:45
small_5
5c1c65cd5a
updated openwrt makefile (#728) 2021-07-15 11:49:33 +05:45
small_5
3a7ce700f2
updated Makefile (#715) 2021-06-18 16:31:48 +05:45
small_5
d8c383eb95
updated openwrt makefile (#712) 2021-06-14 20:00:49 +05:45
VergLsm
35dc670a5f
Update OpenWRT Makefile (#678) 2021-03-30 17:02:46 +05:45
nanpuyue
25ac58900a fix(openwrt): move config to /etc/n2n
The `/etc/config` directory should only store the "UCI" configuration files.

Reference: https://openwrt.org/docs/guide-user/base-system/uci
2020-09-05 12:00:13 +08:00
emanuele-f
31e201b49d Update OpenWRT commit hash 2019-07-06 21:00:05 +02:00
emanuele-f
fa695e9f2b OpenWRT build files and instructions 2019-07-06 20:58:57 +02:00