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:
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