distcc
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| distcc [2009/10/06 00:32] – created suapapa | distcc [2013/08/03 05:04] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== ccache + distcc + crosscompile ====== | ||
| + | ===== distccd 설정 ==== | ||
| + | 외부 머신에서의 분산빌드 요청을 수락하기 위해 / | ||
| + | <code bash> | ||
| + | STARTDISTCC=" | ||
| + | ALLOWEDNETS=" | ||
| + | LISTENER=" | ||
| + | NICE=" | ||
| + | </ | ||
| + | 크로스 컴파일시 크로스 컴파일러의 경로를 추가해 주어야 함 / | ||
| + | <code bash> | ||
| + | ... | ||
| + | PATH=...:/ | ||
| + | ... | ||
| + | </ | ||
| + | 분산빌드를 시작하는 peer는 distccd 데몬을 시작할 필요 없음 | ||
| + | |||
| + | ===== 분산 빌드를 시작 하는 주 머신 == | ||
| + | / | ||
| + | <code bash> | ||
| + | localhost 192.168.10.2 | ||
| + | </ | ||
| + | 또는 DISTCC_HOSTS로 익스포트 | ||
| + | <code bash> | ||
| + | DISTCC_HOSTS=" | ||
| + | </ | ||
| + | ===== distcc서버들이 살아있나 검사 ===== | ||
| + | <code python> | ||
| + | # | ||
| + | |||
| + | from socket import * | ||
| + | def isDistccSrvOK(addr, | ||
| + | try: | ||
| + | sok = socket(AF_INET, | ||
| + | sok.connect((addr, | ||
| + | except: | ||
| + | return False | ||
| + | sok.close() | ||
| + | return True | ||
| + | |||
| + | if __name__ == ' | ||
| + | import sys | ||
| + | print isDistccSrvOK(sys.argv[1]) | ||
| + | |||
| + | </ | ||
| + | |||
| + | ===== 빌드 ===== | ||
| + | 다음과 같이 alias 설정 | ||
| + | <code bash> | ||
| + | alias arm_make=' | ||
| + | alias arm_dist6_make=' | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | *[[http:// | ||
| + | *[[http:// | ||
| + | |||
| + | *[[http:// | ||
| + | |||
| ====== references ====== | ====== references ====== | ||
| *[[http:// | *[[http:// | ||
| *[[http:// | *[[http:// | ||
| *[[http:// | *[[http:// | ||
| - | |||
distcc.1254789128.txt.gz · Last modified: 2013/08/03 05:04 (external edit)