added doc directory

This commit is contained in:
badaix 2016-04-07 21:08:48 +02:00
parent 957ccb151d
commit 8bd75c5b32
2 changed files with 40 additions and 0 deletions

40
doc/build.md Normal file
View file

@ -0,0 +1,40 @@
https://wiki.openwrt.org/doc/howto/buildroot.exigence
1. Do everything as non-root user
2. Issue all commands in the <buildroot dir> directory, e.g. ~/openwrt
<snapcast dir>
```
git clone git://git.openwrt.org/15.05/openwrt.git
```
```
cd openwrt
./scripts/feeds update -a
./scripts/feeds install -a
```
```
make menuconfig
make
```
Within the OpenWrt directory I'm linking to it, like this:
```
cd <buildroot dir>/package/sxx/snapcast
ln -s <snapcast dir>/openWrt/Makefile.openwrt Makefile
ln -s <snapcast dir> src
ls -l
Makefile -> <snapcast dir>/openWrt/Makefile.openwrt
src -> <snapcast dir>
```
...and build like this:
```
cd <buildroot dir>
make package/sxx/snapcast/clean V=s
make package/sxx/snapcast/compile -j1 V=s
```