zapret/docs/compile/build_howto_openwrt.txt

22 lines
860 B
Plaintext
Raw Normal View History

2024-10-28 06:32:24 +00:00
How to compile native programs for use in openwrt
-------------------------------------------------
2024-11-08 07:25:13 +00:00
1) Download latest SDK for your platform from https://downloads.openwrt.org
2024-10-28 06:32:24 +00:00
2024-11-08 07:25:13 +00:00
curl -o - https://downloads.openwrt.org/releases/23.05.5/targets/x86/64/openwrt-sdk-23.05.5-x86-64_gcc-12.3.0_musl.Linux-x86_64.tar.xz | tar -Jxvf -
cd openwrt-sdk-23.05.5-x86-64_gcc-12.3.0_musl.Linux-x86_64
2024-10-28 06:32:24 +00:00
2) ./scripts/feeds update -a
./scripts/feeds install -a
2024-11-08 07:25:13 +00:00
3) cp -R /opt/zapret/docs/compile/openwrt/. .
cp -R /opt/zapret/tpws package/zapret/tpws
cp -R /opt/zapret/nfq package/zapret/nfqws
cp -R /opt/zapret/mdig package/zapret/mdig
cp -R /opt/zapret/ip2net package/zapret/ip2net
2024-10-28 06:32:24 +00:00
2024-11-08 07:25:13 +00:00
4) make package/{tpws,nfqws,mdig,ip2net}/compile
2024-10-28 06:32:24 +00:00
2024-11-08 07:25:13 +00:00
5) find bin -name tpws*.ipk
2024-10-28 06:32:24 +00:00
#take your tpws*.ipk , nfqws*.ipk , ip2net*.ipk, mdig*.ipk from there