repo syncするだけの環境構築

debian lennyで作る。
froyo用。


Debianを最小構成でインストールしたあと、pythonとgitを入れる。

froyomother:~# apt-get install python git-core
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  ca-certificates file less libcurl3-gnutls libdb4.5 libdigest-sha1-perl
  libedit2 liberror-perl libexpat1 libidn11 libkeyutils1 libkrb53
  libldap-2.4-2 libmagic1 libsqlite3-0 libx11-6 libx11-data libxau6
  libxcb-xlib0 libxcb1 libxdmcp6 libxext6 libxmuu1 mime-support
  openssh-blacklist openssh-blacklist-extra openssh-client openssl patch perl
  perl-modules python-minimal python2.5 python2.5-minimal rsync x11-common
  xauth
Suggested packages:
  git-doc git-arch git-cvs git-svn git-email git-daemon-run git-gui gitk
  gitweb krb5-doc krb5-user ssh-askpass libpam-ssh keychain diff-doc perl-doc
  libterm-readline-gnu-perl libterm-readline-perl-perl python-doc python-tk
  python-profiler python2.5-doc binfmt-support openssh-server
Recommended packages:
  ssh-client
The following NEW packages will be installed:
  ca-certificates file git-core less libcurl3-gnutls libdb4.5
  libdigest-sha1-perl libedit2 liberror-perl libexpat1 libidn11 libkeyutils1
  libkrb53 libldap-2.4-2 libmagic1 libsqlite3-0 libx11-6 libx11-data libxau6
  libxcb-xlib0 libxcb1 libxdmcp6 libxext6 libxmuu1 mime-support
  openssh-blacklist openssh-blacklist-extra openssh-client openssl patch perl
  perl-modules python python-minimal python2.5 python2.5-minimal rsync
  x11-common xauth
0 upgraded, 39 newly installed, 0 to remove and 5 not upgraded.
Need to get 25.8MB of archives.
After this operation, 78.8MB of additional disk space will be used.


repoをもらってくる。

froyomother:~# mkdir ~/bin
froyomother:~# cd ~/bin
froyomother:~/bin# wget http://android.git.kernel.org/repo
froyomother:~/bin# chmod a+x repo
froyomother:~/bin# cd ~


作業ディレクトリをつくり、リポジトリの初期化と取得を実行。

froyomother:~# mkdir ~/mydroid
froyomother:~# cd mydroid/
froyomother:~/mydroid# ~/bin/repo init -u git://android.git.kernel.org/platform/manifest.git -b froyo

* [new branch] froyo -> origin/froyo

ちゃんとブランチあるね。今はmasterと等価かもしれないけど。

froyomother:~/mydroid# ~/bin/repo sync