Windows Mobile compilation (Image Generation) Acceleration

Source: Internet
Author: User

Compiling images on Windows Mobile is always time-consuming. Of course, we cannot build all once every time we modify something.
The following is a compilation command that has been accumulated in your work. You can use it in different situations to accelerate the image generation process. do not rule out the possibility of errors. please correct me.

Modifications can be divided into the following types:
(1) modify things in the public (the things here are generally not modified)
(2) Modify cesysgen. bat or the environment variables that affect cesysgen. bat, such as those prefixed with sysgen or BSP.
(3) modify the items under platform/% myplatform %

(3) can be divided:
(4) modify only the reg and bib files.
(5) Only Source Code under % myplatform % is modified.

I. blddemo command
For blddemo, msdn provides a detailed description, but it is not clear.
If you remember correctly, this is a batch processing (BAT) file and some column commands are executed. You can use different parameters according to different situations,
The following is a summary of what parameters are used in the end. This is what is the most important part of msdn.

Blddemo has three common parameters: Clean-Q-qbsp.

(1) Clean: If sysgen-related information is modified, that is, the condition (2) above will be added with clean.
(2)-Q: If something under public is not modified, you can add-Q, because things under public are generally not modified, and Microsoft does not recommend modifying things here, -Q is usually used.
(3)-qbsp: I understand it as quick BSP. That is to say, as long as only the items under % myplatform % are modified, this parameter will certainly be able to write the modifications into the image, whether it is source code, Reg, bib, or others.

-Qbsp seems to have included the-Q function. I have never seen both of them be used at the same time. That is to say, if I change only the content in % myplatform %, I will certainly not change the content in public, therefore, qbsp is generally used independently.

The most common combinations of blddemo commands are as follows:

Public has not changed
(A) blddemo clean-Q: sysgen change (build all uses this command)
(B) blddemo-Q: The sysgen is not changed.
(C) blddemo-qbsp: only changed things under % myplatform %


The time consumed from top to bottom is reduced in sequence.

If the public variable is changed, blddemo or blddemo clean is used. These two items are rarely used. Theoretically, they have not been verified.

Ii. makeimg command
Although blddemo-qbsp consumes the least time, it takes a long time. What I usually use most isMakeimgCommand. This command is used to generate an image and execute a series of operations. It is the last step, so the time is almost the shortest. But there is a premise,All its operations are for the content in the release directory.
Makeimg performs Reg, bib, and other merge operations, but all of them are under the release directory, such as platform. reg common. reg project. reg is combined into a reginit. INI. It is easy to understand this point.

For the scenario (4) mentioned above, that isOnly change the reg or bib file. The quickest way is:
Directly modify platform. Reg and platform. bib under the release directory, copy the required files to the release directory, and then makeimg.

If the modification takes effect, modify it under % myplatform % to prevent other operations from overwriting the modified items under release.

3. Finally, paste a BAT file used by others in the company. It takes the least time and I cannot understand it. I will not explain it here.
It seems that the source code file under % myplatform % is modified, especially when platform/common/src/soc/is modified.
Do not give me any further information.
(The parameters must be set based on your own platform)
Call CLS
Set wmxxx = I:/wm604
Set myplatform = dracobsp
Set version = retail

Setlocal

Pushd

I:

Cd % wmxxx %/buildscripts/WPC _ % myplatform % _ % version %/
Call baseosenv. bat

Cd % wmxxx %/platform/common/src/soc/
Call build
Cd % wmxxx %/platform/% myplatform %
Call build

REM % _ flatreleasedir %/% _ tgtplat %. cfg. xml
REM % _ flatreleasedir %/% _ tgtplat %. SKU. xml

Call packagegenerator packages. PKD. xml. merged
Call dskimage % myplatform %. cfg. xml % myplatform %. SKU. xml

Cd % wmxxx %/platform/% myplatform %/Files
Call postdiskimage

Popd

Endlocal
Pause

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.