The way Android 5.0 clone project

Source: Internet
Author: User

Clone project refers to creating a new project for existing project
The variables used in the following directives are as follows:
$BASE _project refers to the foundation project of the new project
$NEW _project refers to the new PROJECT that will be created
$PLATFORM refers to platform information, such as MT6795, etc.
$COMPANY refers to the name of the company, such as Lenovo, Tinno, Huawei and so on.

CD Bootable/bootloader/preloader/custom: (Clone Preloader)
Enter the following command
Cp-r ${base_project} ${new_project}
MV ${new_project}/${base_project}.mk ${NEW_PROJECT}/${NEW_PROJECT}.MK
Sed-i s/${base_project}/${new_project}/g ${new_project}/${new_project}.mk
CD Bootable/bootloader/lk: (Clone LK)
Enter the following command
CP Project/${base_project}.mk PROJECT/${NEW_PROJECT}.MK
Cp-r Target/${base_project} Target/${new_project}
Sed-i s/${base_project}/${new_project}/g project/${new_project}.mk
Sed-i s/${base_project}/${new_project}/g target/${new_project}/include/target/cust_usb.h
CD kernel-3.10/:(clone kernel)
Enter the following command
Cp-r Drivers/misc/mediatek/mach/mt6795/${base_project} Drivers/misc/mediatek/mach/mt6795/${new_project}
CP Arch/arm64/configs/${base_project}_defconfig Arch/arm64/configs/${new_project}_defconfig
CP Arch/arm64/configs/${base_project}_debug_defconfig Arch/arm64/configs/${new_project}_debug_defconfig
CD kernel-3.10/arch/arm64/
Sed-i s/${base_project}/${new_project}/g Configs/${new_project}_defconfig
Sed-i s/${base_project}/${new_project}/g Configs/${new_project}_debug_defconfig
CP boot/dts/${base_project}.dts boot/dts/${new_project}.dts
Clone Android
Cp-r Device/${company}/${base_project} Device/${company}/${new_project}
MV Device/${company}/${new_project}/full_${base_project}.mk device/${company}/${new_project}/full_${new_project} . mk
Cp-r Vendor/mediatek/proprietary/custom/${base_project} Vendor/mediatek/proprietary/custom/${new_project}
CP Vendor/mediatek/proprietary/trustzone/project/${base_project} MK Vendor/mediatek/proprietary/trustzone/project /${new_project} MK
CP Md32/md32/project/${base_project}. Mk Md32/md32/project/${new_project}. mk
Sed-i s/${base_project}/${new_project}/g device/${company}/${new_project}/androidproducts.mk
Sed-i s/${base_project}/${new_project}/g device/${company}/${new_project}/boardconfig.mk
Sed-i s/${base_project}/${new_project}/g device/${company}/${new_project}/device.mk
Sed-i s/${base_project}/${new_project}/g device/${company}/${new_project}/full_${new_project}.mk
Sed-i s/${base_project}/${new_project}/g device/${company}/${new_project}/vendorsetup.sh
Sed-i s/${base_project}/${new_project}/g vendor/mediatek/proprietary/custom/${new_project}/android.mk
If share libraries with ${base_project}
Sed-i s#vendor/${company}/libs/${new_project} #vendor/${company}/libs/${base_project} #g device/${company}/${new_ Project}/device.mk
If not share libraries with ${base_project}
Cp–r Vendor/${company}/libs/${base_project} Vendor/${company}/libs/${new_project}

The way Android 5.0 clone project

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.