全志添加一个工程的过程

当前的A13平台有nuclear_evb 版本现在出一个新版本nuclear_test
通过编译android系统的过程
1.source 
./build/envsetup.sh
查看打印内容
including device/samsung/maguro/vendorsetup.sh
including device/samsung/tuna/vendorsetup.sh
including device/softwinner/common/vendorsetup.sh
including device/softwinner/nuclear-evb_mmc/vendorsetup.sh
including device/softwinner/nuclear-evb/vendorsetup.sh
including device/softwinner/nuclear-mini/vendorsetup.sh
including device/softwinner/nuclear-test/vendorsetup.sh
including device/softwinner/nuclear-xuyong/vendorsetup.sh
including device/softwinner/nuclear-xw711_mmc/vendorsetup.sh
including device/softwinner/nuclear-xw711/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including sdk/bash_completion/adb.bash
可知 新版本的vendorsetup.sh文件将会被读取因此
此文件必须要与版本相对应所以修改该文件
已知该文件下就一行内容add_lunch_combo nuclear_evb-eng
更改为add_lunch_combo nuclear_test-eng
复制nuclear-evb目录及其子目录修改目录名为nuclear-test
依次修改AndroidProducts.mk,recovery/Android.mk,BoardConfig.mk,nuclear_test.mk
文件中的nuclear_evb 改为nuclear_test 或者nuclear-evb 改为nuclear-test
同时在nuclear_test.mk 文件中将PRODUCT_MODEL 
:=SoftwinerEvb改为PRODUCT_MODEL  :=SoftwinerTest
上述步骤完成后lunch 会成功,如果不成功的话就要仔细修该直至成功为止
下一步我们要复制某个特定版本的配置文件以便于后面的pack打包命令

同时最后最重要的是注意一个文件package.sh文件 该文件是在打包时用到的。
lichee/tools/pack/chips/sun5i/configs/android目录下选择一个当前的目录先某个特定版本例如a13-evb
cp -rf a13-evb a13-test注意权限值
然后extract-bsp ;make -j4;pack命令
成功后会在lichee/tools/pack目录下生成固件sun5i_android_a13-xuyong.img


你可能感兴趣的:(全志添加一个工程的过程)