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
config ARCH_MSM8909_NEW_PRJ
bool "NEW_PRJ Product"
depends on ARCH_MSM8909
help
Support for MSM8909 NEW_PRJ.
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).