]> prime8.dev >> repos - ttyd.git/commitdiff
[ci skip] openwrt: add build instruction with SDK
authorShuanglei Tao <tsl0922@gmail.com>
Mon, 14 Nov 2016 15:47:54 +0000 (23:47 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Mon, 14 Nov 2016 15:54:57 +0000 (23:54 +0800)
README.md
openwrt/README.md [new file with mode: 0644]

index 8a608b18f2f17bb29f3d7ba08e3467be9a925faa..01878eacd07f7697b06d92fb208b846397045265 100644 (file)
--- a/README.md
+++ b/README.md
@@ -43,7 +43,7 @@ make && make install
 opkg install ttyd
 ```
 
-> **NOTE:** This may only works for [LEDE][6] snapshots currently, if the install command fails, compile it yourself.
+> **NOTE:** This may only works for [LEDE][6] snapshots currently, if the install command fails, [compile it yourself](openwrt).
 
 # Usage
 
diff --git a/openwrt/README.md b/openwrt/README.md
new file mode 100644 (file)
index 0000000..7e1cf4a
--- /dev/null
@@ -0,0 +1,16 @@
+# Building with OpenWrt/LEDE SDK
+
+Ubuntu 64bit and LEDE `ar71xx` as example:
+
+```bash
+sudo apt-get install build-essential subversion libncurses5-dev zlib1g-dev gawk gcc-multilib flex git-core gettext libssl-dev
+curl -sLo- https://downloads.lede-project.org/snapshots/targets/ar71xx/generic/lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.15.Linux-x86_64.tar.xz | tar Jx
+cd lede-sdk-ar71xx-generic_gcc-5.4.0_musl-1.1.15.Linux-x86_64
+./scripts/feeds update -a
+./scripts/feeds install -a
+sed -i 's/$(eval $(call BuildPackage,libwebsockets-cyassl))/#\0/' package/feeds/packages/libwebsockets/Makefile
+make defconfig
+make package/feeds/packages/ttyd/compile V=99
+```
+
+The compiled `.ipk` package will be in the `bin/packages` folder.
\ No newline at end of file