cpu arch에 맞추어 toolchain 을 받습니다.

http://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/OpenWrt-SDK-atheros-2.6-for-Linux-i686.tar.bz2


http://downloads.openwrt.org/kamikaze/7.09/atheros-2.6/OpenWrt-SDK-atheros-2.6-for-Linux-x86_64.tar.bz2


압축을 풀고 path 를 추가해줍니다.

export PATH=~/OpenWrt-SDK-atheros-2.6-for-Linux-x86_64/staging_dir_mips/bin/:$PATH



#test.c

#include <stdio.h>
int main() {
printf("hello world");
}

mips-linux-uclibc-gcc test.c -s -o test


2012/07/18 01:56 2012/07/18 01:56
Posted by 메케메케

트랙백 주소
http://uport.wo.tc/trackback/207