Compile the android image file separately

Source: Internet
Author: User

From http://blog.csdn.net/cupidove/article/details/8158914? Reload

Three important imgfiles for Android:

  • Make systemimage-system. img
  • Make userdataimage-userdata. img
  • Make ramdisk-ramdisk. img
  • Make Snod-quickly package 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 wocould not check the dependences. if
    You change some code in the framework which will effect other applications)

Because
System. IMG is made from out/target/product/xxxx/system.
If you change the content of this folder, you want to recreate system. IMG. Do not care about the file dependency in system folde. You can use the Snod target:

  • Make Snod

You can see the target Snod in build/CORE/makefile:
(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)



Three important imgfiles for Android:

Make systemimage-system. img
Make userdataimage-userdata. img
Make ramdisk-ramdisk. img

PS: Quickly package system. IMG ----- make
Snod

PS2: rewrite system -------- Mount-T yaffs2-O remount, RW/dev/block/mtdblock0/System

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.