您的位置:首页 > 其它

最近整理的一些msm8909平台英文文档3 - how_to_create_a_new_project

2017-04-14 10:39 501 查看
We already have some projects(for example, sim8909_evb103), you can create a new project base on it. For example, if you want to create a new project called "new_prj" base on "sim8909_evb103", you can follow the steps below:

Step 1:

(1) Execute command "cd device/qcom/".

In this directory, you can see many folders named after the project. So we need one named "new_prj", then modify it.

(2) Execute command "cp -r sim8909_evb103 new_prj"

(3) Execute command "cd new_prj".

In this directory, you need to modify all the files named "sim8909_evb103" to "new_prj" and also do this in file content(case always matters).

Step 2:

(1) Execute command "cd bootable/bootloader/lk/".

(2) Execute command "cp -r target/sim8909_evb103 target/new_prj"

(3) Execute command "cp -r project/sim8909_evb103.mk project/new_prj.mk"

(4) In the directory "target/new_prj" and file "project/new_prj.mk", do below:

You need to modify all the files named "sim8909_evb103" to "new_prj" and also do this in file content(case always matters).

Step 3:

(1) Execute command "cd system/core/rootdir/".

(2) Execute command "cp -r sim8909_evb103 new_prj"

Step 4:

(1) Execute command "cd kernel/".

(2) Mod file "arch/arm/boot/dts/qcom/Makefile" add the below context:
ifneq (, $(filter new_prj, $(TARGET_PRODUCT)))
dtb-y += new_prj.dtb
endif

(3) Mod file "arch/arm/mach-msm/Kconfig" add the below context:
config ARCH_MSM8909_NEW_PRJ
bool "NEW_PRJ Product"
depends on ARCH_MSM8909
help
Support for MSM8909 NEW_PRJ.


(4) Execute command "cp -r arch/arm/configs/sim8909_evb103_defconfig arch/arm/configs/new_prj_defconfig" 

Execute command "cp -r arch/arm/configs/sim8909_evb103-perf_defconfig arch/arm/configs/new_prj-perf_defconfig" 

Then, you need to modify the content "sim8909_evb103" to "new_prj"(case always matters).

(5)Copy all the file "arch/arm/boot/dts/qcom/sim8909_evb103*" to "arch/arm/boot/dts/qcom/new_prj*". Then, you need to modify the content "sim8909_evb103" to "new_prj"(case always matters).
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  驱动