WEB开发网
开发学院手机开发Android 开发 android文件系统制作教程 阅读

android文件系统制作教程

 2010-09-15 00:13:00 来源:WEB开发网   
核心提示:set_perm 0 0 04755 SYSTEM:bin/suset_perm 1002 1002 0440 SYSTEM:etc/dbus.confset_perm 1014 2000 0550 SYSTEM:etc/dhcpcd/dhcpcd-run-hooksset_perm 0 2000 0550 SYSTE

set_perm 0 0 04755 SYSTEM:bin/su

set_perm 1002 1002 0440 SYSTEM:etc/dbus.conf

set_perm 1014 2000 0550 SYSTEM:etc/dhcpcd/dhcpcd-run-hooks

set_perm 0 2000 0550 SYSTEM:etc/init.goldfish.sh

set_perm_recursive 0 0 0755 0555 SYSTEM:etc/ppp

show_progress 0.200000 0

delete_recursive DATA:dalvik-cache

copy_dir PACKAGE:data DATA:

set_perm_recursive 1000 1000 0771 0555 DATA:dalvik-cache

write_raw_image PACKAGE:boot.img BOOT:

show_progress 0.200000 10

android文件系统制作教程(4) —- makefile脚本,制作各种单独的分区文件ramdisk.img,system.img,boot.img

#***********************************

# build android rom script

#***********************************

SRC_HOME=/home/liangwei/android_src

update.zip : boot.img $(shell find system data META-INF)

rm -rf update_unsign.zip

zip -qr update_unsign.zip system data META-INF boot.img

$(JAVA_HOME)/bin/java -jar auto-sign/signapk.jar auto-sign/testkey.x509.pem auto-sign/testkey.pk8 update_unsign.zip update.zip

rm -f update_unsign.zip

boot.img:ramdisk.img kernel.img

$(SRC_HOME)/out/host/linux-x86/bin/mkbootimg --cmdline 'no_console_suspend=1 console=null' --kernel kernel.img --ramdisk ramdisk.img -o boot.img

kernel.img:$(SRC_HOME)/kernel/msm/arch/arm/boot/zImage

cp -f $(SRC_HOME)/kernel/msm/arch/arm/boot/zImage ./kernel.img

kernel-qemu:$(SRC_HOME)/kernel/common/arch/arm/boot/zImage

cp -f $(SRC_HOME)/kernel/common/arch/arm/boot/zImage ./kernel-qemu

ramdisk.img:$(shell find root)

$(SRC_HOME)/out/host/linux-x86/bin/mkbootfs ./root |gzip > ramdisk.img

system.img : $(shell find system)

$(SRC_HOME)/out/host/linux-x86/bin/mkyaffs2image ./system system.img

userdata.img:$(shell find data)

上一页  1 2 3 4  下一页

Tags:android 文件

编辑录入:coldstar [复制链接] [打 印]
赞助商链接