使用mm命令遇到的问题

修改了framework中的文件,然后

 source build/envsetup.sh
 mm xxx/xxxx

出现错误:

find: `frameworks/base/docs/html-ndk': No such file or directory
PRODUCT_COPY_FILES device/rockchip/common/init.rk30board.usb.rc:root/init.rk30board.usb.rc ignored.
PRODUCT_COPY_FILES device/rockchip/common/fstab.rk30board.bootmode.unknown:root/fstab.rk30board.bootmode.unknown ignored.
PRODUCT_COPY_FILES device/rockchip/common/fstab.rk30board.bootmode.emmc:root/fstab.rk30board.bootmode.emmc ignored.
PRODUCT_COPY_FILES vendor/rockchip/common/nand/modules/arm/rk30xxnand_ko.ko.3.10.0:root/rk30xxnand_ko.ko ignored.
PRODUCT_COPY_FILES vendor/rockchip/common/nand/modules/arm/drmboot.ko:root/drmboot.ko ignored.
No private recovery resources for TARGET_DEVICE rk3399
make: *** No rule to make target `device/rockchip/rk3399/bootshutdown/bootshutdown.mk'.  Stop.
make: Leaving directory `/home/lvshuo/rk3399/rk3399'

#### make failed to build some targets (2 seconds) ####

发现是之前缺少命令。重新执行:

 source build/envsetup.sh  
 lunch xxx  
 cd xxx
 mm   
 make snod

会生成新的system.img。

比如修改frameworks/base/services下的文件:

 source build/envsetup.sh  
 lunch xxx  
 cd frameworks/base/services  
 mm  

回到根目录,然后:

make snod

你可能感兴趣的:(Android-代码)