blob: e9484171176f6a83d2684d2c69747ccc31ba545a [file] [log] [blame]
xf.li4a5f6012023-01-10 23:32:52 -08001#!/bin/bash
2
xy.heb52eecb2024-11-08 09:57:09 +08003SW_INSIDE_VERSION="T800_GSW_v02.MP1_MR3.02b20.09.00"
4SW_VERSION="T800_GSW_v02.MP1_MR3.02b20.09.00"
lh9ef23cb2024-04-15 03:57:07 -07005
6LYNQ_SW_INSIDE_VERSION="LYNQ_CONFIG_VERSION = \"${SW_INSIDE_VERSION}\""
7LYNQ_SW_VERSION="LYNQ_CONFIG_SW_VERSION = \"${SW_VERSION}\""
8
lxff6717512023-08-02 23:37:04 -07009COMMIT_ID="$(git rev-parse --short HEAD)"
10LYNQ_COMMITID="LYNQ_CONFIG_COMMITID = \"${COMMIT_ID}\""
xf.li4a5f6012023-01-10 23:32:52 -080011
lh9ef23cb2024-04-15 03:57:07 -070012LYNQ_VERSION_UCI=" option LYNQ_SW_VERSION '${SW_VERSION}'"
13LYNQ_INSIDE_VERSION_UCI=" option LYNQ_SW_INSIDE_VERSION '${SW_INSIDE_VERSION}'"
14
xf.lib8d2aa72023-02-07 17:48:11 -080015eval sed -i 's/^.*LYNQ_CONFIG_VERSION.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/meta/meta-mediatek-mt2735/conf/machine/auto2735evb-ivt-base.conf
16eval sed -i 's/^.*LYNQ_CONFIG_SW_VERSION.*$/"${LYNQ_SW_VERSION}"/' $(pwd)/meta/meta-mediatek-mt2735/conf/machine/auto2735evb-ivt-base.conf
lxff6717512023-08-02 23:37:04 -070017eval sed -i 's/^.*LYNQ_CONFIG_COMMITID.*$/"${LYNQ_COMMITID}"/' $(pwd)/meta/meta-mediatek-mt2735/conf/machine/auto2735evb-ivt-base.conf
18
xf.lib8d2aa72023-02-07 17:48:11 -080019eval sed -i 's/^.*LYNQ_CONFIG_VERSION.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/meta-sdk/meta/meta-lynqSDK-T800/conf/machine/auto2735evb-ivt-base.conf
20eval sed -i 's/^.*LYNQ_CONFIG_SW_VERSION.*$/"${LYNQ_SW_VERSION}"/' $(pwd)/meta-sdk/meta/meta-lynqSDK-T800/conf/machine/auto2735evb-ivt-base.conf
lxff6717512023-08-02 23:37:04 -070021eval sed -i 's/^.*LYNQ_CONFIG_COMMITID.*$/"${LYNQ_COMMITID}"/' $(pwd)/meta-sdk/meta/meta-lynqSDK-T800/conf/machine/auto2735evb-ivt-base.conf
xf.li4a5f6012023-01-10 23:32:52 -080022
lh9ef23cb2024-04-15 03:57:07 -070023eval sed -i 's/^.*LYNQ_SW_VERSION.*$/"${LYNQ_VERSION_UCI}"/' $(pwd)/LYNQ_PUBLIC/common_src/lib/liblynq-uci/lynq_uci_ro.config
24eval sed -i 's/^.*LYNQ_SW_INSIDE_VERSION.*$/"${LYNQ_INSIDE_VERSION_UCI}"/' $(pwd)/LYNQ_PUBLIC/common_src/lib/liblynq-uci/lynq_uci_ro.config
25