7,166
edits
(ページの作成:「= 本家 OpenWrt の Yun Profile を調査する =」) |
|||
Line 1: | Line 1: | ||
= 本家 OpenWrt の Yun Profile を調査する = | = 本家 OpenWrt の Yun Profile を調査する = | ||
== OpenWrt build メモ == | |||
RedSnake64 さん版を野良ビルド中...できるだけ本家の HEAD に近いように工夫する実験中... | |||
<syntaxhighlight lang="bash" enclose="div"> | |||
git clone --depth=1 --branch 15.05 --single-branch https://github.com/RedSnake64/openwrt-yun.git | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash" enclose="div"> | |||
git clone --depth=1 --branch master --single-branch https://github.com/openwrt/openwrt.git | |||
</syntaxhighlight> | |||
:次はこっちで実験 | |||
<syntaxhighlight lang="bash" enclose="div"> | |||
apt-get update | |||
apt-get install -y git subversion build-essential asciidoc \ | |||
fastjar flex gawk libgtk2.0-dev intltool zlib1g-dev \ | |||
genisoimage libncurses5-dev libssl-dev ruby sdcc unzip \ | |||
bison libboost-dev libxml-parser-perl libusb-dev bin86 \ | |||
bcc sharutils openjdk-7-jdk mercurial cvs bzr \ | |||
nodejs-legacy curl | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash" enclose="div"> | |||
apt-get install g++-multilib | |||
</syntaxhighlight> | |||
[https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions Installing Node.js via package manager | Node.js] | |||
:Ubuntu 純正パッケージの nodejs, npm 使うとビルドこける。 | |||
[https://downloads.openwrt.org/sources/ https://downloads.openwrt.org/sources/] | |||
:パッケージのソースの取得に失敗する場合はここからとって ./dl/ 配下に置いておく。 | |||
[http://libfreecwmp.org/ http://libfreecwmp.org/] | |||
:ここにつながらないのでコケる。 | |||
<syntaxhighlight lang="bash" enclose="div"> | |||
./scripts/feeds uninstall libfreecwmp freecwmp libmicroxml | |||
</syntaxhighlight> | |||
:ダメっぽいので捨てた... | |||
<syntaxhighlight lang="bash" enclose="div"> | |||
./scripts/feeds uninstall aria2 | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash" enclose="div"> | |||
./build.sh YUN_PACKAGES_ONLY | |||
</syntaxhighlight> | |||
:Yun 関係のみの場合。 | |||
feeds.conf.default: | |||
<syntaxhighlight lang="text" enclose="div"> | |||
src-git packages https://github.com/openwrt/packages.git | |||
src-git luci https://github.com/openwrt/luci.git | |||
src-git routing https://github.com/openwrt-routing/packages.git | |||
src-git telephony https://github.com/openwrt/telephony.git | |||
src-git management https://github.com/openwrt-management/packages.git | |||
src-git arduino https://github.com/RedSnake64/openwrt-arduino-packages.git;for-15.05 | |||
</syntaxhighlight> | |||
:これでビルド実験中... |