• 单独编译Android源代码中的模块


      $ .  ./build/envsetup.sh

          

          - croot: Changes directory to the top of the tree.

          - m: Makes from the top of the tree.
          - mm: Builds all of the modules in the current directory.
          - mmm: Builds all of the modules in the supplied directories.
          - cgrep: Greps on all local C/C++ files.
          - jgrep: Greps on all local Java files.
          - resgrep: Greps on all local res/*.xml files.
          - godir: Go to the directory containing a file.
         
      这里我们只关注mmm命令,也就是可以用它来编译指定目录的所有模块,通常这个目录只包含一个模块。
          
      
          $ mmm  packages/apps/Email/
          编译完成之后,就可以在out/target/product/generic/system/app目录下看到Email.apk文件了。Android系统自带的App都放在这个目录下。
    Android系统的一些可执行文件,例如C编译的可执行文件,放在out/target/product/generic/system/bin目录下,
    动态链接库文件放在 out/target/product/generic/system/lib目录下,
    硬件抽象层(HAL)接口文件放在 out/target/product/generic/system/lib/hw目录下。
     
          编译好模块后,还要重新打包一下system.img文件
          $ make snod
          
     
  • 相关阅读:
    STL简介
    Java语言实现简单FTP软件------>上传下载队列窗口的实现(七)
    c++模板
    10891
    错误处理:java.lang.NoSuchMethodException: org.apache.catalina.deploy.WebXml addFilter
    Linux crontab 语法和具体的例子
    LoadImage()使用
    matplotlib简单的新手教程和动画
    三白话经典算法系列 Shell排序实现
    AccountManager教程
  • 原文地址:https://www.cnblogs.com/7725657/p/5546249.html
Copyright © 2020-2023  润新知