zapret/compile/build_howto_openwrt.txt

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2016-02-15 16:34:45 +03:00
How to compile native programs for use in openwrt
-------------------------------------------------
1) <fetch correct version of openwrt>
cd ~
<chaos calmer>
git clone git://git.openwrt.org/15.05/openwrt.git
<barrier breaker>
git clone git://git.openwrt.org/14.07/openwrt.git
<trunk>
git clone git://git.openwrt.org/openwrt.git
cd openwrt
2) ./scripts/feeds update -a
./scripts/feeds install -a
2019-04-06 16:08:14 +03:00
3) #add zapret packages to build root
#copy package descriptions
2016-02-15 16:34:45 +03:00
copy compile/openwrt/* to ~/openwrt
2019-04-06 16:08:14 +03:00
#copy source code of tpws
2016-02-15 16:34:45 +03:00
copy tpws to ~/openwrt/package/zapret/tpws
2019-04-06 16:08:14 +03:00
#copy source code of nfq
2016-02-15 16:34:45 +03:00
copy nfq to ~/openwrt/package/zapret/nfq
2019-04-06 16:08:14 +03:00
#copy source code of ip2net
copy ip2net to ~/openwrt/package/zapret/ip2net
2016-02-15 16:34:45 +03:00
4) make menuconfig
2019-04-06 16:08:14 +03:00
#select your target architecture
#select packages Network/Zapret/* as "M"
2016-02-15 16:34:45 +03:00
5) make toolchain/compile
6) make package/tpws/compile
make package/nfqws/compile
2019-04-06 16:08:14 +03:00
make package/ip2net/compile
2019-04-17 16:19:00 +03:00
make package/mdig/compile
2016-02-15 16:34:45 +03:00
7) find bin -name tpws*.ipk
2019-04-06 16:08:14 +03:00
#take your tpws*.ipk , nfqws*.ipk , ip2net*.ipk from there