android比较重要的三个img文件:

  • make systemimage - system.img
  • make userdataimage - userdata.img
  • make ramdisk - ramdisk.img
  • make snod - 快速打包system.img (with this command, it will build a new system.img very quickly. well, you cannot use “make snod” for all the situations. it would not check the dependences. if you change some code in the framework which will effect other applications)

因為
system.img 是 從 out/target/product/xxxx/system 做出來的。
如果改了 這個 folder 的內容,想要重新產生 system.img。不要管 system folde 裡面的 file 的 dependency,可以用 snod 這個 target:

  • make snod

定義在 build/core/Makefile 可以看到 snod 這個 target:
(有說明是: make system.img ignoring depencies)

.PHONY: systemimage-nodeps snod
systemimage-nodeps snod: $(filter-out systemimage-nodeps snod,$(MAKECMDGOALS)) \
| $(INTERNAL_MKUSERFS)
@echo "make $@: ignoring dependencies"
$(call build-systemimage-target,$(INSTALLED_SYSTEMIMAGE))
$(hide) $(call assert-max-image-size,$(INSTALLED_SYSTEMIMAGE),$(BOARD_SYSTEMIMAGE_PARTITION_SIZE),yaffs)

Ref:
http://hi.baidu.com/kyan/blog/item/df7ea8d346f5c839960a163c.html
http://r40eubuntu.blogspot.com/2010/10/systemimg.html

更多相关文章

  1. Android AES 文件加密解密
  2. Android 将asserts文件夹内文件写入SD卡中
  3. 【Android深入解析】Manifest配置文件解析(上)(英文版)
  4. Android文件合并时,打包出错
  5. android之文件的写入与读取
  6. android 文件名长度限制
  7. 【Android】创建、读取XML文件

随机推荐

  1. android模拟器操作
  2. 第一章 JAVA入门(什么是android)
  3. 浅谈使用tcpdump、wireshark对Android应
  4. [置顶] android按键功能的拓展
  5. Android的国际化
  6. 2019-12-16 Android中的动画
  7. Ubantu下搭建Android CTS 兼容性测试环境
  8. Android消息机制浅析——面试总结
  9. Android内核的简单分析
  10. @+id/和android:id的区别