centos下运行B2G
yum install gcc gcc-c++ make autoconf213
yum install glibc.x86_64 glibc.i686 glibc-devel.x86_64 glibc-devel.i686 zlib.x86_64 zlib-devel.x86_64 zlib-devel.i686 ncurses ncurses-devel ncurses-libs.i686 ncurses-devel.i686 libX11 libX11-devel libX11.i686 libX11-devel.i686
yum install gcc gcc-c++ libstdc++.so.6 libstdc++.i686 readline-devel.i686 libXext.i686 libao.i686 alsa-lib.i686 openssl-devel.i686 expat-devel.i686 SDL-devel.i686 mesa-libGL.i686 mesa-libGLU.i686
yum install patch glibc-static perl-devel flex bison gperf glibc libstdc++ libX11 libXext libao alsa-lib glibc-devel zlib-devel libX11-devel expat-devel openssl-devel SDL-devel valgrind
ln -s /usr/lib/libGL.so.1 /usr/lib/libGL.so
==============================================================
http://wikiserver.spreadtrum.com/Projects/SoftwareSystem/wiki/%E5%A6%82%E4%BD%95%E4%B8%8B%E8%BD%BDgitb2g
yum install git
安装repo
cd ~
mkdir bin
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
把repo的路径加入.bashrc
PATH=$PATH:~/bin
修改which repo输出的repo中REPO_URL变量
根据which repo找repo路径
编辑repo文件修改REPO_URL
REPO_URL='ssh://[email protected]/tools/repo.git'
先将adb加入.bashrc 如 PATH=$PATH:~/yourpath/B2G/out/host/linux-x86/bin
source /home/zdf/.bashrc
set
echo $PATH
在把其加入到sudo vi /etc/bashrc
在最后一行加入 PATH=$PATH:~/yourpath/B2G/out/host/linux-x86/bin
sudo source /etc/bashrc
在/home/zdf和在/root(在root用户下的~下)下都做下面的操作
mkdir .android
echo 0x1782 > ~/.android/adb_usb.ini
cat ~/.android/adb_usb.ini
配置密钥
To generate your SSH key:
ssh-keygen -t rsa
This will generate two files under ~/.ssh: 'id_rsa' and 'id_rsa.pub'. Keep 'id_rsa' private. But you may distribute 'id_rsa.pub'. In fact, the git repository needs your 'id_rsa.pub' to add you into access control.
In order to have your SSH key remembered in your terminal session so that you don't have to input your key every time when using git, do the following procedures:
Add the following line to your ~/.bashrc file:
eval `ssh-agent`
Note the quotation mark is back quote.
After you log in from a remote terminal, add your private key into management:
ssh-add ~/.ssh/id_rsa
After adding the key, you will not be asked for passphrase anymore in your current terminal session. You have to do it for each login.
yum list autoconf*
yum install autoconf213.noarch
注意 git的目录一定要要为~/ 下再编译,否则会有路径问题
git-core libreadline6-dev libxml2-utils python-markdown tofrodos xsltproc
/opt/firefox-nightly/firefox -profile /home/zdf/B2G/gaia/profile/ -no-remote /home/zdf/B2G/gaia/customize_apps/memo/index.html -width 480 -height 800