Difference between revisions of "SDM850 build instructions"
Jerry.liao (talk | contribs) |
Jerry.liao (talk | contribs) |
||
Line 4: | Line 4: | ||
[[File:SDM850 BUILD 01.png|RTENOTITLE]] | [[File:SDM850 BUILD 01.png|RTENOTITLE]] | ||
− | |||
2. Copy ACPI compiler | 2. Copy ACPI compiler | ||
copy "D:\EWDK\Program Files\Windows Kits\10\Tools\arm64\ACPIVerify\asl.exe" to "WP\src\acpi\rel\10.4\bin\" | copy "D:\EWDK\Program Files\Windows Kits\10\Tools\arm64\ACPIVerify\asl.exe" to "WP\src\acpi\rel\10.4\bin\" | ||
− | |||
3. Modify "WP\src\acpi\rel\10.4\acpi.wp63.proj” | 3. Modify "WP\src\acpi\rel\10.4\acpi.wp63.proj” | ||
add "<Target Name="<span style="color:#FF0000;">Clean</span>"> </Target>" after "<Target Name="Build"> </Target>" | add "<Target Name="<span style="color:#FF0000;">Clean</span>"> </Target>" after "<Target Name="Build"> </Target>" | ||
− | |||
4. Modify “WP\src\tools\rel\10.4\qcbuildwp63.cmd” | 4. Modify “WP\src\tools\rel\10.4\qcbuildwp63.cmd” | ||
Find all "ATTRIB +R" and replace to "<span style="color:#FF0000;">ATTRIB -R</span>" | Find all "ATTRIB +R" and replace to "<span style="color:#FF0000;">ATTRIB -R</span>" | ||
− | |||
5. Delete or Rename "WP\src\tools\rel\10.4\<span style="color:#FF0000;">CrmParallelization.py</span>" to skip this python script | 5. Delete or Rename "WP\src\tools\rel\10.4\<span style="color:#FF0000;">CrmParallelization.py</span>" to skip this python script | ||
− | |||
6. Run administrator command shell | 6. Run administrator command shell | ||
Line 38: | Line 33: | ||
A. Build for all : run the following command in WP\src folder after setting environment | A. Build for all : run the following command in WP\src folder after setting environment | ||
− | .\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64 | + | <span style="color:#0000FF;"> .\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64</span> |
B. Build component | B. Build component | ||
Line 47: | Line 42: | ||
<span style="color:#0000FF;"> .\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64 -componentsinput acpi</span> | <span style="color:#0000FF;"> .\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64 -componentsinput acpi</span> | ||
+ | |||
+ | |||
+ | == build non-HLOS image == | ||
+ | <span style="color:#0000FF;"> The environment setting commands should be trigger before compiling each non-HLOS image</span> | ||
+ | |||
+ | |||
+ | |||
== build WD image with adding drivers == | == build WD image with adding drivers == | ||
Line 53: | Line 55: | ||
<br/> [[File:SDM850 BUILD 03.png|RTENOTITLE]] | <br/> [[File:SDM850 BUILD 03.png|RTENOTITLE]] | ||
− | |||
2. Copy folder "WP\src\build\Qualcomm\DISM" to "WP\prebuild\DesktopOS\” | 2. Copy folder "WP\src\build\Qualcomm\DISM" to "WP\prebuild\DesktopOS\” | ||
Line 100: | Line 101: | ||
D: postbld.bat | D: postbld.bat | ||
+ | |||
+ | |||
+ | == Reference == |
Revision as of 07:25, 28 June 2019
Contents
build board support package source
1. Unzip the SDM850 BSP package to D:\BSP
2. Copy ACPI compiler
copy "D:\EWDK\Program Files\Windows Kits\10\Tools\arm64\ACPIVerify\asl.exe" to "WP\src\acpi\rel\10.4\bin\"
3. Modify "WP\src\acpi\rel\10.4\acpi.wp63.proj”
add "<Target Name="Clean"> </Target>" after "<Target Name="Build"> </Target>"
4. Modify “WP\src\tools\rel\10.4\qcbuildwp63.cmd”
Find all "ATTRIB +R" and replace to "ATTRIB -R"
5. Delete or Rename "WP\src\tools\rel\10.4\CrmParallelization.py" to skip this python script
6. Run administrator command shell
A. D:\EWDK>LaunchBuildEnv.cmd
B. D:\>setenv.bat
7. Compilation
A. Build for all : run the following command in WP\src folder after setting environment
.\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64
B. Build component
.\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64 -componentsinput %1
C. If ACPI compile fail at first time. Please rebuild it again with below command
.\tools\rel\10.4\qcpackbuild.cmd -p 850 -platform ARM64 -componentsinput acpi
build non-HLOS image
The environment setting commands should be trigger before compiling each non-HLOS image
build WD image with adding drivers
1. Copy D:\DesktopOS into D:\BSP\NP850\prebuilt\
2. Copy folder "WP\src\build\Qualcomm\DISM" to "WP\prebuild\DesktopOS\”
3. Copy folder "WP\src\build\Qualcomm\BCDBoot" to "WP\prebuild\DesktopOS\”
4. Remove some .proj files to avoid building. Or you can rename them to.proj_
createwdtargetsfile_19H1.proj
featuremerger.proj
inf2cat.proj
isogen_19H1.proj
isogen_thumbdrive_19H1.proj
postsign_phone.proj
regroup_drivers.proj
5. Modify “WP\prebuilt\850\isogen_thumbdrive.proj” fles
A. Modify all "$(DesktopOS)\Install.wim" to "$(DesktopOS)\sources\Install.wim"
B. Search <WD_Target Condition="'$(WD_Target)'==">MTP;QRD;CLS</WD_Target>
Edit as <WD_Target Condition="'$(WD_Target)'==">SFF</WD_Target>
6. Modify "WP\prebuild\850\isogen.proj" files
A. Search <WD_Target Condition="'$(WD_Target)'==">MTP;CLS</WD_Target>
Edit as <WD_Target Condition="'$(WD_Target)'==">SFF</WD_Target>
B. Search "<Error Text= "Incorrect WD_Taget alias. Please check WD_Target parameter. Exiting Build." Condition="'%(WDTargets.Identity)'!='MTP' AND '%(WDTargets.Identity)'!='CLS'" />" .
Edit as <Error Text= "Incorrect WD_Taget alias. Please check WD_Target parameter. Exiting Build." Condition="'%(WDTargets.Identity)'!='MTP' AND '%(WDTargets.Identity)'!='CLS'
AND '%(WDTargets.Identity)'!='SFF'" />
C. Copy your driver files(.ing .sys .cat .pdb...) to "WP\\prebuilt\850\driver\common\"
7. Modify "WP\prebuilt\850\DesktopScripts\drivers.txt to add your driver name.
8. Delete folder "WP\prebuild\850\ARM64\" and “WP\prebuild\850\ISOGEN\” if you have before image building every time
9. Starting building
A. D:\EWDK>LaunchBuildEnv.cmd
B. D:\>setenv.bat
C: cd WP\prebuild\
D: postbld.bat