编译Chromium OS

插入ubuntu-9.10-alternate-i386光盘后,F4选择CLI安装base system

 

用先前备好的USB盘里的sources.list替代/etc/apt/sources.list源

sudo mount -t vfat /dev/sdb /mnt/

sudo cp /mnt/sources.list /etc/apt/sources.list

 

 

sudo apt-get update

 

安装GUI界面

sudo apt-get install xorg gdm gnome-core msttcorefonts ttf-wqy-zenhei

 

进入GUI,

startx

 

安装32-bit Ubuntu 8.04 Software Requirements:

sudo apt-get install subversion pkg-config python perl g++ g++-multilib bison flex gperf libnss3-dev libgtk2.0-dev libnspr4-0d libasound2-dev libnspr4-dev msttcorefonts libgconf2-dev libcairo2-dev libdbus-1-dev

sudo apt-get install wdiff lighttpd php5-cgi sun-java6-fonts(optional)

 

Download the chromium depot tools

cd ~

svn co http://src.chromium.org/svn/trunk/tools/depot_tools(Retrieve depot_tools)

export PATH=`pwd`/depot_tools:”$PATH”(Add depot_tools to your PATH)

sudo apt-get install git-core (If prompted to continue, choose y)

 

Get the chromium OS repository as follows:

mkdir chromiumos

cd chromiumos

gclient config http://src.chromium.org/git/chromiumos.git

gclient sync(The sync will take a long time)

 

 

Make Local Repository as follows:

cd ~/chromiumos/chromiumos.git/src/scripts

./make_local_repo.sh (may need to enter sudo password)

运行此命令错误时需要将 chromiumos/ repo 目录删除,再次执行make_local_repro.sh

 

Create build environment

./make_chroot.sh

 

If you wish to build the chromium (browser) from source do the following

mkdir ~/chromium

cd chromium

gclient config http://src.chromium.org/svn/trunk/src http://build.chromium.org/buildbot/continuous/LATEST/REVISION

 

export GYP_DEFINES=”chromeos=1″(con sider adding to .profile or .bashrc)

gclient sync –deps=”chromeos,unix”(will run for a long time)

 

If you didn’t download the chromium browser source, you must incorporate a pre-built browser binary:

http://build.chromium.org/buildbot/continuous/linux/LATEST/chrome-linux.zip

mkdir –p ~/chromiumos/chromiumos.git/src/build/x86/local_assets

cp ~/ chrome-linux.zip ~/chromiumos/chromiumos.git/src/build/x86/local_assets

 

build the OS

cd ~/chromiumos/chromiumos.git/src/scripts

./enter_chroot.sh

 

Create a debug user

cd ../platform/pam_google

cd - (或者cd ~/chromiumos/chromiumos.git/src/scripts)

./enable_localaccount.sh ifreecell

./set_shared_user_password.sh (set any password)

 

编译软件包和内核,创建磁盘镜像:

./build_platform_packages.sh

./build_kernel.sh

./build_image.sh

./image_to_vmware.sh (之前须执行sudo apt-get install qemu)

./image_to_usb.sh --from=~/chromium/chromium.git/src/build/images/SUBDIR --to=~/dev/sdb

 

http://hi.baidu.com/ifreecell/blog/item/deb93300b850bd057bec2ca8.html

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值