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" |
sj.zhang | 622fade | 2023-08-03 01:26:09 -0700 | [diff] [blame] | 3 | LYNQ_AP_VERSION="T106CN-ZS03.V2.01.01.02P49.AP.06.01" |
| 4 | LYNQ_CAP_INSIDE_VERSION="CAP.06.01" |
sj.zhang | f9d15c7 | 2023-07-26 22:30:04 -0700 | [diff] [blame] | 5 | LYNQ_CAP_VERSION="CAP.06" |
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}\"" |
xf.li | 6097298 | 2023-06-22 23:27:19 -0700 | [diff] [blame] | 13 | eval sed -i 's/^.*LYNQ_CONFIG_VERSION.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/distro/vehicle_dc.conf |
| 14 | eval sed -i 's/^.*LYNQ_CONFIG_SW_VERSION.*$/"${LYNQ_SW_VERSION}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/distro/vehicle_dc.conf |
xf.li | 1baec69 | 2023-04-25 02:38:36 -0700 | [diff] [blame] | 15 | eval sed -i 's/^.*LYNQ_CONFIG_VERSION.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/lynq_base.conf |
| 16 | eval sed -i 's/^.*LYNQ_CONFIG_SW_VERSION.*$/"${LYNQ_SW_VERSION}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/lynq_base.conf |
| 17 | eval sed -i 's/^.*LYNQ_CONFIG_COMMITID.*$/"${LYNQ_COMMITID}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/lynq_base.conf |
| 18 | eval sed -i 's/^.*LYNQ_VERSION.*$/"${LYNQ_AP_SW_VERSION}"/' $(pwd)/ap/build/build.sh |
| 19 | eval sed -i 's/^.*LYNQ_CONFIG_VERSION[[:space:]]=.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/boot/common/src/uboot/arch/arm/lib/Makefile |
| 20 | eval sed -i 's/^.*LYNQ_CONFIG_COMMITID[[:space:]]=.*$/"${LYNQ_COMMITID}"/' $(pwd)/boot/common/src/uboot/arch/arm/lib/Makefile |
| 21 | |