Android Build Analysis

cat ~/work/build/core/Makefile

systemimage: $(INSTALLED_SYSTEMIMAGE)

INSTALLED_SYSTEMIMAGE := $(PRODUCT_OUT)/system.img
$(INSTALLED_SYSTEMIMAGE): $(BUILT_SYSTEMIMAGE) $(RECOVERY_FROM_BOOT_PATCH) | $(ACP)
        @echo "Install system fs image: $@"
        $(copy-file-to-target)
        $(hide) $(call assert-max-image-size,$@ $(RECOVERY_FROM_BOOT_PATCH),$(BOARD_SYSTEMIMAGE_PARTITION_SIZE),yaffs)

BUILT_SYSTEMIMAGE := $(systemimage_intermediates)/system.img
$(BUILT_SYSTEMIMAGE): $(FULL_SYSTEMIMAGE_DEPS) $(INSTALLED_FILES_FILE)
        $(call build-systemimage-target,$@)

# $(1): output file
define build-systemimage-target
  @echo "Target system fs image: $(1)"
  @mkdir -p $(dir $(1)) $(systemimage_intermediates) && rm -rf $(systemimage_intermediates)/system_image_info.txt
  $(call generate-userimage-prop-dictionary, $(systemimage_intermediates)/system_image_info.txt)
  $(hide) PATH=$(foreach p,$(INTERNAL_USERIMAGES_BINARY_PATHS),$(p):)$$PATH \
      ./build/tools/releasetools/build_image.py \
      $(TARGET_OUT) $(systemimage_intermediates)/system_image_info.txt $(1)
endef

BOOT.IMG file

http://blog.csdn.net/ttxgz/article/details/7742696
http://redmine.replicant.us/projects/replicant/wiki/GalaxyNexusI9250SerialConsole

signing

http://forum.xda-developers.com/galaxy-nexus/general/security-test-keys-vs-release-keys-t1937469

bootarg

http://superuser.com/questions/274446/how-does-one-tell-u-boot-to-tell-the-linux-kernel-which-runlevel-to-boot-to

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License