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 attrs文件(自定义)属性详解
  2. Android 使用AsyncHttpClient文件上传与下载
  3. AndroidManifest文件中android属性
  4. Android 的相关文件类型
  5. Android中attrs.xml文件的使用详解
  6. 如何给你的Android 安装文件(APK)瘦身
  7. 教你用电脑从 Google Play 下载 Android 程序 apk 文件
  8. Android获取keystore文件的信息
  9. Android学习笔记_布局文件属性的说明

随机推荐

  1. Android(安卓)Aidl实现进程间通信
  2. 关于Android应用程序内存泄漏 你需要知道
  3. ListViewAnimations 源码浅析
  4. 从输入流中获取数据并以字节数组返回,这种
  5. Ubuntu12.10编译Android(安卓)4.0.3的常
  6. Android使用Drawable实现圆角矩形
  7. Android(安卓)抽屉模型实现(Drawer),Android
  8. Android开发错误:Error:” ” is not tran
  9. BottomNavigationView底部导航栏+fragemn
  10. Android中使用代码截图的各种方法总结