Update build instructions for LEDE

This commit is contained in:
Johannes Pohl 2017-10-27 18:03:22 +02:00 committed by GitHub
parent 35b3c88a54
commit fcf5997e34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -169,47 +169,50 @@ The binaries for `armeabi` and `mips` and `x86` will be copied into the Android'
## OpenWrt/LEDE (Cross compile) ## OpenWrt/LEDE (Cross compile)
Cross compilation for OpenWrt is done with the [OpenWrt build system](https://wiki.openwrt.org/about/toolchain) on a Linux host machine. Cross compilation for OpenWrt is done with the [OpenWrt build system](https://wiki.openwrt.org/about/toolchain) on a Linux host machine:
https://wiki.openwrt.org/doc/howto/build https://wiki.openwrt.org/doc/howto/build
### OpenWrt build system setup For LEDE:
https://lede-project.org/docs/guide-developer/quickstart-build-images
### OpenWrt/LEDE build system setup
https://wiki.openwrt.org/doc/howto/buildroot.exigence https://wiki.openwrt.org/doc/howto/buildroot.exigence
Clone OpenWrt to some place in your home directory (`<buildroot dir>`) Clone OpenWrt to some place in your home directory (`<buildroot dir>`)
$ git clone git://git.openwrt.org/15.05/openwrt.git $ git clone git://git.openwrt.org/15.05/openwrt.git
...LEDE
$ git clone https://git.lede-project.org/source.git
Download and install available feeds Download and install available feeds
$ cd <buildroot dir> $ cd <buildroot dir>
$ ./scripts/feeds update -a $ ./scripts/feeds update -a
$ ./scripts/feeds install -a $ ./scripts/feeds install -a
Build Within the `<buildroot dir>` directory create symbolic links to the Snapcast source directory `<snapcast source>` and to the OpenWrt Makefile:
$ make menuconfig
$ make
Within the OpenWrt directory create symbolic links to the Snapcast source directory and to the OpenWrt Makefile:
$ mkdir -p <buildroot dir>/package/sxx/snapcast $ mkdir -p <buildroot dir>/package/sxx/snapcast
$ cd <buildroot dir>/package/sxx/snapcast $ cd <buildroot dir>/package/sxx/snapcast
$ git clone https://github.com/badaix/snapcast.git $ ln -s <snapcast source> src
$ mv snapcast src $ ln -s <snapcast source>/openWrt/Makefile.openwrt Makefile
$ ln -s src/openWrt/Makefile.openwrt Makefile
$ cd src/externals Build
$ git submodule update --init --recursive in menuconfig in `sxx/snapcast` select `Compile snapserver` and/or `Compile snapclient`
$ cd <buildroot dir> $ cd <buildroot dir>
$ make defconfig
$ make menuconfig $ make menuconfig
$ make
in menuconfig select the snapcast package to be installed Rebuild Snapcast:
Build Snapcast:
$ make package/sxx/snapcast/clean $ make package/sxx/snapcast/clean
$ make package/sxx/snapcast/compile $ make package/sxx/snapcast/compile
The packaged `ipk` files are in `<buildroot dir>/bin/ar71xx/packages/base/snap[client|server]_x.x.x_ar71xx.ipk` The packaged `ipk` files are for OpenWrt in `<buildroot dir>/bin/ar71xx/packages/base/snap[client|server]_x.x.x_ar71xx.ipk` and for LEDE `<buildroot dir>/bin/packages/mips_24kc/base/snap[client|server]_x.x.x_mips_24kc.ipk`
## Buildroot (Cross compile) ## Buildroot (Cross compile)
This example will show you how to add snapcast to [Buildroot](https://buildroot.org/). This example will show you how to add snapcast to [Buildroot](https://buildroot.org/).