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 | a7edca8 | 2024-08-15 14:23:43 +0800 | [diff] [blame] | 3 | LYNQ_AP_VERSION="T106-V2.01.01.02P56U06.AP.15.12" |
l.yang | 1b24bd6 | 2024-08-15 14:22:26 +0800 | [diff] [blame] | 4 | LYNQ_CAP_INSIDE_VERSION="CAP.15.12" |
| 5 | LYNQ_CAP_VERSION="CAP.15.12" |
xf.li | 1baec69 | 2023-04-25 02:38:36 -0700 | [diff] [blame] | 6 | COMMIT_ID="$(git rev-parse HEAD)" |
| 7 | |
| 8 | LYNQ_SW_INSIDE_VERSION="LYNQ_CONFIG_VERSION = \"${LYNQ_AP_VERSION}_${LYNQ_CAP_INSIDE_VERSION}\"" |
| 9 | LYNQ_SW_VERSION="LYNQ_CONFIG_SW_VERSION = \"${LYNQ_AP_VERSION}_${LYNQ_CAP_VERSION}\"" |
| 10 | LYNQ_AP_SW_VERSION="export LYNQ_VERSION=\"${LYNQ_AP_VERSION}\"" |
| 11 | LYNQ_COMMITID="LYNQ_CONFIG_COMMITID = \"${COMMIT_ID}\"" |
| 12 | LYNQ_BOOT_COMMIT_ID="LYNQ_COMMIT_ID = \"${COMMIT_ID}\"" |
jb.qi | 44ca730 | 2023-11-30 18:04:53 -0800 | [diff] [blame] | 13 | LYNQ_VERSION_UCI=" option LYNQ_SW_VERSION '${LYNQ_AP_VERSION}_${LYNQ_CAP_VERSION}'" |
| 14 | LYNQ_INSIDE_VERSION_UCI=" option LYNQ_SW_INSIDE_VERSION '${LYNQ_AP_VERSION}_${LYNQ_CAP_INSIDE_VERSION}'" |
| 15 | |
xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame] | 16 | eval sed -i 's/^.*LYNQ_CONFIG_VERSION.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/distro/vehicle_dc_ref.conf |
| 17 | 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] | 18 | eval sed -i 's/^.*LYNQ_CONFIG_VERSION.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/lynq_base.conf |
| 19 | eval sed -i 's/^.*LYNQ_CONFIG_SW_VERSION.*$/"${LYNQ_SW_VERSION}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/lynq_base.conf |
| 20 | eval sed -i 's/^.*LYNQ_CONFIG_COMMITID.*$/"${LYNQ_COMMITID}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/lynq_base.conf |
| 21 | eval sed -i 's/^.*LYNQ_VERSION.*$/"${LYNQ_AP_SW_VERSION}"/' $(pwd)/ap/build/build.sh |
| 22 | eval sed -i 's/^.*LYNQ_CONFIG_VERSION[[:space:]]=.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/boot/common/src/uboot/arch/arm/lib/Makefile |
| 23 | 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] | 24 | eval sed -i 's/^.*LYNQ_SW_VERSION.*$/"${LYNQ_VERSION_UCI}"/' $(pwd)/cap/zx297520v3/src/lynq/lib/liblynq-uci/lynq_uci_ro.config |
| 25 | 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] | 26 | |