Mtk Android compilation command

Source: Internet
Author: User

Usage: (makeMtk | mk) [options] project actions [modules]

Options:
-T,-tee: Print log information on the standard-out.
-O,-opt = bypass_argument_to_make
: Pass extra arguments to make.

-H,-help: Print this message and exit.

Projects:
One of available projects.

Actions:
Listp, listproject
: List all available projects.

Check-env: Check if build environment is ready.
Check-dep: Check feature dependency.
N, new: Clean and perform a full build.
C, clean: Clean the immediate files (such as, objects, libraries etc .).
R, remake: Rebuild (target will be updated if any dependency updats ).
Mrproper: Remove all generated files + config + various backup files in Kbuild process.
Bm_new: "new" + GNU make's "-k" (keep going when encounter error) feature.
Bm_remake: "remake" + GNU make's "-k" (keep going when encounter error) feature.
Mm: Build module through Android native command "mm"

Emigen: Generate EMI setting source code.
Nandgen: Generate supported NAND flash device list.
Codegen: Generate trace DB (for META/Cather etc. tools used ).
Drvgen: Generate driver customization source.
Custgen: Generate customization source.
Javaoptgen: Generate the global java options.
Ptgen: Generate partition setting header & scatter file.
Bindergen: Generate binder related information

Sign-image: Sign all the image generated.
Encrypt-image: Encrypt all the image generated.
Update-api: Android default build action
(Be executed if system setting or anything removed from API ).
Check-modem: Check modem image consistency.
Upadte-modem: Update modem image located in system. img.
Modem-info: Show modem version
Gen-relkey: Generate releasekey for application signing.
Check-appres: Check unused application resource.

Sdk: Build sdk package.
Win_sdk: Build sdk package with a few Windows tools.
Banyan_addon: Build MTK sdk addon.
Cts: Build cts package.
Bootimage: Build boot image (boot. img ).
Cacheimage: Build cache image (cache. img ).
Systemimage: Build system image (system. img ).
Snod: Build system image without dependency.
(That is, ONLY pack the system image, NOT checking its dependencies .)
Recoveryimage: Build recovery image (recovery. img ).
Secroimage: Build secro image (secro. img ).
Factoryimage: Build factory image (factory. img ).
Userdataimage: Build userdata image (userdata. img ).
Userdataimage-nodeps
: Build userdata image without dependency.
(That is, ONLY pack the userdata image, NOT checking its dependencies .)
Target-files-package
: Build the target files package.
(A zip of the directories that map to the target filesystem.
This zip can be used to create an OTA package or filesystem image
As a post-build step .)
Updatepackage: Build the update package.
Dist: Build distribution package.

Modules:
Pl, preloader: Specify to build preloader.
Ub, uboot: Specify to build uboot.
K, kernel: Specify to build kernel.
Dr, android: Specify to build android.
NULL: Specify to build all components/modules in default.
K <module path>
: Specify to build kernel component/module with the source path.
Dr <module name>
: Specify to build android component/module with module name.

Example:
./Mk-t e1k emigen
: Generate EMI setting source code.
./Mk-o = TARGET_BUILD_VARIANT = user e1k n
: Start a user mode full build.
./Mk listp: List all available projects.
./Mk e1k bootimage
: Build bootimage for e1k project.
./Mk e1k bm_new k
: Build kernel for e1k project.
./MakeMtk e1k c, bm_remake ub k
: Clean & Build uboot and kernel for e1k project.
./MakeMtk e1k n k kernel/xxx
: Build (full build) kernel component/module
Under the path "kernel/xxx" for e1k project.
./MakeMtk e1k r dr Gallery
: Rebuild android module named Gallery for e1k project.
./MakeMtk e1k mm packages/apps/Settings
: Change Directory to packages/apps/Settings and execute "mm"

 

Related Article

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.