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

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).


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值