Arduino Yun / OpenWRT
https://wiki.openwrt.org/toh/arduino/yun
Building a custom image for Arduino YUN
http://fibasile.github.io/arduino-yun-custom-buildroot.html
http://forum.openwrt.org/viewtopic.php?id=67113
feeds.conf.default を書き換える
src-git packages https://git.openwrt.org/12.09/packages.git src-git luci https://github.com/openwrt/luci.git;luci-0.11 src-git routing git://github.com/openwrt-routing/packages.git;for-12.09.x
上のやりかたではmake menuconfigできなかった
下のレポジトリを試す
https://github.com/arduino/openwrt-yun
BUILD_BASE_ONLY=Yes DL_FOLDER=~/Downloads ./build.sh
エラーで止まった
cfns.gperf:101:1: error: 'gnu_inline' attribute present on 'libc_name_p'
このパッチを試す
https://drive.google.com/file/d/0BwWNLQDwiOxtYnJSRm1Dam9XTU0/view
build_dir/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33.2/gcc-linaro-4.6-2012.02/gcc/cp/cfns.h
--- gcc/cp/cfns.h.orig 2015-02-13 08:27:46.000000000 +0200 +++ gcc/cp/cfns.h 2015-02-13 10:23:53.000000000 +0200 @@ -53,6 +53,9 @@ static unsigned int hash (const char *, unsigned int); #ifdef __GNUC__ __inline +#ifdef __GNUC_STDC_INLINE__ +__attribute__ ((__gnu_inline__)) +#endif #endif const char * libc_name_p (const char *, unsigned int); /* maximum key range = 391, duplicates = 0 */ @@ -96,7 +99,7 @@ 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400, 400 }; - register int hval = len; + register int hval = (int)len; switch (hval) {
一度clean
$ make distclean
再度ビルド
MAKE_JOBS=5 nice -n 10 make -j $MAKE_JOBS V=s
色々やってると、Debian Wheezy上でビルドしろとの情報を見つけた(Ubuntu16.04でやっていた)
https://github.com/arduino/openwrt-yun/issues/31