blob: 206c499afa88ca2667dbeb4654f14d2b4bd4e211 [file] [log] [blame]
xf.li1baec692023-04-25 02:38:36 -07001#!/bin/bash
2#export LYNQ_VERSION="T106_lynq_version_ap_build_sh"
l.yangc080f3e2025-02-28 10:30:07 +08003LYNQ_AP_VERSION="T106-MXX-PLXXXX-P56U10.AP.18.02"
xf.li01498752025-03-18 00:39:22 -07004LYNQ_YUKUAI_VERSION="T106-M42-YUKUAI-P56U10.AP.18.02"
hong.liubd336f02025-04-12 08:40:02 +00005LYNQ_CAP_INSIDE_VERSION="CAP.18.02_SP05"
l.yangc080f3e2025-02-28 10:30:07 +08006LYNQ_CAP_VERSION="CAP.18.02"
xf.li1baec692023-04-25 02:38:36 -07007COMMIT_ID="$(git rev-parse HEAD)"
8
xf.li01498752025-03-18 00:39:22 -07009LYNQ_SW_INSIDE_VERSION="LYNQ_CONFIG_VERSION = \"${LYNQ_YUKUAI_VERSION}_${LYNQ_CAP_INSIDE_VERSION}\""
xf.li1baec692023-04-25 02:38:36 -070010LYNQ_SW_VERSION="LYNQ_CONFIG_SW_VERSION = \"${LYNQ_AP_VERSION}_${LYNQ_CAP_VERSION}\""
11LYNQ_AP_SW_VERSION="export LYNQ_VERSION=\"${LYNQ_AP_VERSION}\""
12LYNQ_COMMITID="LYNQ_CONFIG_COMMITID = \"${COMMIT_ID}\""
13LYNQ_BOOT_COMMIT_ID="LYNQ_COMMIT_ID = \"${COMMIT_ID}\""
jb.qi44ca7302023-11-30 18:04:53 -080014LYNQ_VERSION_UCI=" option LYNQ_SW_VERSION '${LYNQ_AP_VERSION}_${LYNQ_CAP_VERSION}'"
xf.li01498752025-03-18 00:39:22 -070015LYNQ_INSIDE_VERSION_UCI=" option LYNQ_SW_INSIDE_VERSION '${LYNQ_YUKUAI_VERSION}_${LYNQ_CAP_INSIDE_VERSION}'"
jb.qi44ca7302023-11-30 18:04:53 -080016
xf.li6c8fc1e2023-08-12 00:11:09 -070017eval sed -i 's/^.*LYNQ_CONFIG_VERSION.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/distro/vehicle_dc_ref.conf
18eval sed -i 's/^.*LYNQ_CONFIG_SW_VERSION.*$/"${LYNQ_SW_VERSION}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/distro/vehicle_dc_ref.conf
xf.li1baec692023-04-25 02:38:36 -070019eval sed -i 's/^.*LYNQ_CONFIG_VERSION.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/lynq_base.conf
20eval sed -i 's/^.*LYNQ_CONFIG_SW_VERSION.*$/"${LYNQ_SW_VERSION}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/lynq_base.conf
21eval sed -i 's/^.*LYNQ_CONFIG_COMMITID.*$/"${LYNQ_COMMITID}"/' $(pwd)/cap/zx297520v3/sources/meta-zxic-custom/conf/lynq_base.conf
22eval sed -i 's/^.*LYNQ_VERSION.*$/"${LYNQ_AP_SW_VERSION}"/' $(pwd)/ap/build/build.sh
23eval sed -i 's/^.*LYNQ_CONFIG_VERSION[[:space:]]=.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/boot/common/src/uboot/arch/arm/lib/Makefile
24eval sed -i 's/^.*LYNQ_CONFIG_COMMITID[[:space:]]=.*$/"${LYNQ_COMMITID}"/' $(pwd)/boot/common/src/uboot/arch/arm/lib/Makefile
jb.qi44ca7302023-11-30 18:04:53 -080025eval sed -i 's/^.*LYNQ_SW_VERSION.*$/"${LYNQ_VERSION_UCI}"/' $(pwd)/cap/zx297520v3/src/lynq/lib/liblynq-uci/lynq_uci_ro.config
26eval sed -i 's/^.*LYNQ_SW_INSIDE_VERSION.*$/"${LYNQ_INSIDE_VERSION_UCI}"/' $(pwd)/cap/zx297520v3/src/lynq/lib/liblynq-uci/lynq_uci_ro.config
xf.li1baec692023-04-25 02:38:36 -070027