blob: e9484171176f6a83d2684d2c69747ccc31ba545a [file] [log] [blame]
#!/bin/bash
SW_INSIDE_VERSION="T800_GSW_v02.MP1_MR3.02b20.09.00"
SW_VERSION="T800_GSW_v02.MP1_MR3.02b20.09.00"
LYNQ_SW_INSIDE_VERSION="LYNQ_CONFIG_VERSION = \"${SW_INSIDE_VERSION}\""
LYNQ_SW_VERSION="LYNQ_CONFIG_SW_VERSION = \"${SW_VERSION}\""
COMMIT_ID="$(git rev-parse --short HEAD)"
LYNQ_COMMITID="LYNQ_CONFIG_COMMITID = \"${COMMIT_ID}\""
LYNQ_VERSION_UCI=" option LYNQ_SW_VERSION '${SW_VERSION}'"
LYNQ_INSIDE_VERSION_UCI=" option LYNQ_SW_INSIDE_VERSION '${SW_INSIDE_VERSION}'"
eval sed -i 's/^.*LYNQ_CONFIG_VERSION.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/meta/meta-mediatek-mt2735/conf/machine/auto2735evb-ivt-base.conf
eval sed -i 's/^.*LYNQ_CONFIG_SW_VERSION.*$/"${LYNQ_SW_VERSION}"/' $(pwd)/meta/meta-mediatek-mt2735/conf/machine/auto2735evb-ivt-base.conf
eval sed -i 's/^.*LYNQ_CONFIG_COMMITID.*$/"${LYNQ_COMMITID}"/' $(pwd)/meta/meta-mediatek-mt2735/conf/machine/auto2735evb-ivt-base.conf
eval sed -i 's/^.*LYNQ_CONFIG_VERSION.*$/"${LYNQ_SW_INSIDE_VERSION}"/' $(pwd)/meta-sdk/meta/meta-lynqSDK-T800/conf/machine/auto2735evb-ivt-base.conf
eval sed -i 's/^.*LYNQ_CONFIG_SW_VERSION.*$/"${LYNQ_SW_VERSION}"/' $(pwd)/meta-sdk/meta/meta-lynqSDK-T800/conf/machine/auto2735evb-ivt-base.conf
eval sed -i 's/^.*LYNQ_CONFIG_COMMITID.*$/"${LYNQ_COMMITID}"/' $(pwd)/meta-sdk/meta/meta-lynqSDK-T800/conf/machine/auto2735evb-ivt-base.conf
eval sed -i 's/^.*LYNQ_SW_VERSION.*$/"${LYNQ_VERSION_UCI}"/' $(pwd)/LYNQ_PUBLIC/common_src/lib/liblynq-uci/lynq_uci_ro.config
eval sed -i 's/^.*LYNQ_SW_INSIDE_VERSION.*$/"${LYNQ_INSIDE_VERSION_UCI}"/' $(pwd)/LYNQ_PUBLIC/common_src/lib/liblynq-uci/lynq_uci_ro.config