Files
kunlun/build/readme_custom_build.txt

49 lines
1.6 KiB
Plaintext
Raw Normal View History

2024-09-28 14:24:04 +08:00
=======================================================================
Build shell script usage:
image type:CCO
shell command:
./build_flash_cco.sh : build all customs flash bin
./build_flash_cco.sh [custom name] : build one custom flash bin
image type:STA
shell command:
./build_flash_sta.sh : build all customs flash bin
./build_flash_sta.sh [custom name] : build one custom flash bin
image type:FTM
shell command:
./build_flash_ftm.sh : build wqrd ftm flash bin
----------------------------------------------------------------------
Then, all custom bin will generated at the PATH:
Mainline/tools/gen_img/ .
And the bin file name format:
SG-(custom name)(image type)-(version id)-(git commitid)-(time).bin .
----------------------------------------------------------------------
If you want to add a new custom, follow the step below:
1. add a new custom cfg file at the path:
Mainline/build/cfg ,
follow the name format:
(custom)_cco.cfg (custom)_sta.cfg (custom)_iic.cfg,
such as htzd_cco.cfg htzd_sta.cfg htzd_iic.cfg.
Please make sure the cfg file corrent, and avoid name repetition with others.
2. add a new custom pib.bin and oem.bin at the path:
Mainline/tools/pib/ ,
follow the name format:
(CUSTOM)(image type)01_PIB.bin (CUSTOM)(image type)01_OEM.bin
such as HTZDCCO01_PIB.bin HTZDIIC01_PIB.bin HTZDSTA01_PIB.bin.
Avoid name repetition, too.
3. modify the shell script ./build_flash_xxx.sh
add the custom name into "CUSTOM_STRING" and allocate a XXX_ENV_ID for it
4. FTM mode only used for WQRD.