Directory Structure (Chromium OS)

Directory Description
src/The main source directory. All files that are built and end up in the final Chromium OS image are located here.
    build/This directory is created by the build_image script and contains the build results.
        images/Contains images built by the build_image script. Images are arranged in subfolders by corresponding board and build number.  For a given board, the latest build image can always be found by looking at the src/build/images/${BOARD}/latest symlink.
    overlays/Contains board and variant overlays. Used when a board is configured using setup_board --board ${BOARD}.  See the overlays directory README
    platform/Contains all source code for packages that were not developed originally by a third party (those go in third_party). If you're using the minilayout, this directory will appear nearly empty until you start working on something.
        libchromeos/Contains files related to libchromeos.
    scripts/Contains the many necessary scripts that help you build Chromium OS.
        chromite/Contains the "next generation" build scripts and related libraries. Note that there is duplication in some cases where the same (or similar) files are present in the current (non-chromite) scripts and the next generation (chromite) build scripts. Also note that some of the bits in the chromite directory are already being used.
    third_party/Contains open source packages that have been modified for the Chromium OS project.  This includes any local forks of open source projects, such as flimflam.  If you're using the minilayout, this directory will appear nearly empty until you start working on something.
        chromiumos-overlay/This directory is overlaid on top of the portage directory (see below) and contains ebuild files, patches, and configuration information. Since the portage directory is kept as a pure snapshot of the upstream portage, all Chromium OS changes to those files are placed here. It's admittedly a bit strange to put this directory in third_party, but you'll get used to it.
            chromeos-base/Contains the ebuilds for many chromeos-related files.  Most of these files have corresponding source code in src/platform. If you have the minilayout, you need to cros_workon them first.
            profiles/Contains portage profiles.
                targets/Contains directories for each general class of build target. At the moment, there is only one overlay target (chromeos).
                    chromeos/Contains Chromium OS-specific target information. Includes things like: overrides of package masks, unmasks, and keywords; resolutions of virtuals; etc.
        portage-stable/Contains ebuild files, patches, and configuration information from a snapshot of the portage build system (the current snapshot is a little out of date, though). These ebuild files tell where to find the upstream sources for various packages and how to patch/build them in the context of the portage build system.
chromite/ Contains build tools.
chromium/ Contains source repos that come from the Chromium browser.
chroot/This directory is created by  chromite/bin/cros_sdk (in PATH) and contains the whole SDK chroot environment (compiler, tools, etc) for building Chromium OS. You're expected to "enter" this chroot (make it the root of your filesystem) by using cros_sdk as well.
DO NOT use rm -rf to delete this directory. Use cros_sdk --delete instead.
    home/$USER/trunk/ Is a bind mount of the entire source tree so that things may be accessed inside of the chroot.
.cache/ Cached files that can be shared across chroots.  Or safely deleted to recover some space.
    distfiles/ Downloaded source code packages (tarballs/etc...).
    sdks/ Downloaded sdk tarballs -- used to bootstrap the chroot/ tree.
.repo/Contains information managed by the repo source control tool. Includes the file manifest.xml, which specifies where various projects are placed in your source tree, and the file local_manifest.xml, which is populated automatically if you use cros_workon with the minilayout.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值