oxen-io / lokinet

Lokinet is an anonymous, decentralized and IP based overlay network for the internet.
https://lokinet.org/
GNU General Public License v3.0
1.72k stars 220 forks source link

Support OpenWRT cross compiling of static dependencies #2103

Closed necro-nemesis closed 1 year ago

necro-nemesis commented 1 year ago

StaticBuild.cmake falls short with handling OpenWRT tuples when building openssl for various arches when using musl. When parsing "triplets" it is unable to effectively handle "${ARCH}-openwrt-linux-musl" when building on the SDK for RPi4. ARCH in this instance = aarch64 based on SDK target selection of RPi4. Could be other arch's... probably should be others arch's ;).

I was able to compile with the addition of:

elseif(ARCH_TRIPLET STEQUAL aarch64-openwrt-linux-musl)

cross_compile_arm64

set(openssl_arch_linux-aarch64)

to StaticBuild.cmake in the openssl section and successfully build to test this theory.

necro-nemesis commented 1 year ago

Potential future considerations in no particular priority. || i386 || x86_64 || arm || armeb || aarch64 || powerpc || mips || mipsel || mips64 ||

If I were to give one it would likely be mips. One factor to be considered in prioritization is lokinet package size and availability of hardware that has sufficient storage to accommodate it. It isn't what I'd consider a "light-weight".