xf.li | 1baec69 | 2023-04-25 02:38:36 -0700 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | #export LYNQ_VERSION="T106_lynq_version_ap_build_sh" |
l.yang | c080f3e | 2025-02-28 10:30:07 +0800 | [diff] [blame] | 3 | LYNQ_AP_VERSION="T106-MXX-PLXXXX-P56U10.AP.18.02" |
xf.li | 0149875 | 2025-03-18 00:39:22 -0700 | [diff] [blame] | 4 | LYNQ_YUKUAI_VERSION="T106-M42-YUKUAI-P56U10.AP.18.02" |
hong.liu | bd336f0 | 2025-04-12 08:40:02 +0000 | [diff] [blame] | 5 | LYNQ_CAP_INSIDE_VERSION="CAP.18.02_SP05" |
l.yang | c080f3e | 2025-02-28 10:30:07 +0800 | [diff] [blame] | 6 | LYNQ_CAP_VERSION="CAP.18.02" |
xf.li | 1baec69 | 2023-04-25 02:38:36 -0700 | [diff] [blame] | 7 | COMMIT_ID="$(git rev-parse HEAD)" |
| 8 | |
xf.li | 0149875 | 2025-03-18 00:39:22 -0700 | [diff] [blame] | 9 | LYNQ_SW_INSIDE_VERSION="LYNQ_CONFIG_VERSION = \"${LYNQ_YUKUAI_VERSION}_${LYNQ_CAP_INSIDE_VERSION}\"" |
xf.li | 1baec69 | 2023-04-25 02:38:36 -0700 | [diff] [blame] | 10 | LYNQ_SW_VERSION="LYNQ_CONFIG_SW_VERSION = \"${LYNQ_AP_VERSION}_${LYNQ_CAP_VERSION}\"" |
| 11 | LYNQ_AP_SW_VERSION="export LYNQ_VERSION=\"${LYNQ_AP_VERSION}\"" |
| 12 | LYNQ_COMMITID="LYNQ_CONFIG_COMMITID = \"${COMMIT_ID}\"" |
| 13 | LYNQ_BOOT_COMMIT_ID="LYNQ_COMMIT_ID = \"${COMMIT_ID}\"" |
jb.qi | 44ca730 | 2023-11-30 18:04:53 -0800 | [diff] [blame] | 14 | LYNQ_VERSION_UCI=" option LYNQ_SW_VERSION '${LYNQ_AP_VERSION}_${LYNQ_CAP_VERSION}'" |
xf.li | 0149875 | 2025-03-18 00:39:22 -0700 | [diff] [blame] | 15 | LYNQ_INSIDE_VERSION_UCI=" option LYNQ_SW_INSIDE_VERSION '${LYNQ_YUKUAI_VERSION}_${LYNQ_CAP_INSIDE_VERSION}'" |
jb.qi | 44ca730 | 2023-11-30 18:04:53 -0800 | [diff] [blame] | 16 | |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 17 | eval sed -i 's/^.*LYNQ_CONFIG_VERSION.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/distro/vehicle_dc_ref.conf |
| 18 | eval sed -i 's/^.*LYNQ_CONFIG_SW_VERSION.*$/"${LYNQ_SW_VERSION}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/distro/vehicle_dc_ref.conf |
xf.li | 1baec69 | 2023-04-25 02:38:36 -0700 | [diff] [blame] | 19 | eval sed -i 's/^.*LYNQ_CONFIG_VERSION.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/lynq_base.conf |
| 20 | eval sed -i 's/^.*LYNQ_CONFIG_SW_VERSION.*$/"${LYNQ_SW_VERSION}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/lynq_base.conf |
| 21 | eval sed -i 's/^.*LYNQ_CONFIG_COMMITID.*$/"${LYNQ_COMMITID}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/lynq_base.conf |
| 22 | eval sed -i 's/^.*LYNQ_VERSION.*$/"${LYNQ_AP_SW_VERSION}"/' $(pwd)/ap/build/build.sh |
| 23 | eval sed -i 's/^.*LYNQ_CONFIG_VERSION[[:space:]]=.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/boot/common/src/uboot/arch/arm/lib/Makefile |
| 24 | eval sed -i 's/^.*LYNQ_CONFIG_COMMITID[[:space:]]=.*$/"${LYNQ_COMMITID}"/' $(pwd)/boot/common/src/uboot/arch/arm/lib/Makefile |
jb.qi | 44ca730 | 2023-11-30 18:04:53 -0800 | [diff] [blame] | 25 | eval sed -i 's/^.*LYNQ_SW_VERSION.*$/"${LYNQ_VERSION_UCI}"/' $(pwd)/cap/zx297520v3/src/lynq/lib/liblynq-uci/lynq_uci_ro.config |
| 26 | eval sed -i 's/^.*LYNQ_SW_INSIDE_VERSION.*$/"${LYNQ_INSIDE_VERSION_UCI}"/' $(pwd)/cap/zx297520v3/src/lynq/lib/liblynq-uci/lynq_uci_ro.config |
xf.li | 1baec69 | 2023-04-25 02:38:36 -0700 | [diff] [blame] | 27 | |