android 幾個快速編譯images指令

ndroid比較重要的三個img文件:

  • make systemimage - system.img
  • make userdataimage -userdata.img
  • make ramdisk - ramdisk.img
  • make snod - 快速打包system.img (with thiscommand, it will build a new system.img very quickly. well, youcannot use “make snod” for all the situations. it would not checkthe dependences. if you change some code in the framework whichwill 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-nodepssnod
systemimage-nodeps snod: $(filter-out systemimage-nodepssnod,$(MAKECMDGOALS)) \
| $(INTERNAL_MKUSERFS)
@echo "make $@: ignoring dependencies"
$(call build-systemimage-target,$(INSTALLED_SYSTEMIMAGE))
$(hide) $(callassert-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

發佈了4 篇原創文章 · 獲贊 4 · 訪問量 2萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章