luckfox-pico-sdk/sysdrv/drv_ko/wifi/ssv6115/script/ver_info.sh
luckfox-eng29 8f34c2760d project:build.sh: Added fastboot support; custom modifications to U-Boot and kernel implemented using patches.
project:cfg:BoardConfig_IPC: Added fastboot BoardConfig file and firmware post-scripts, distinguishing between
the BoardConfigs for Luckfox Pico Pro and Luckfox Pico Max. project:app: Added fastboot_client and rk_smart_door
for quick boot applications; updated rkipc app to adapt to the latest media library. media:samples: Added more
usage examples. media:rockit: Fixed bugs; removed support for retrieving data frames from VPSS. media:isp:
Updated rkaiq library and related tools to support connection to RKISP_Tuner. sysdrv:Makefile: Added support for
compiling drv_ko on Luckfox Pico Ultra W using Ubuntu; added support for custom root filesystem.
sysdrv:tools:board: Updated Buildroot optional mirror sources, updated some software versions, and stored device
tree files and configuration files that undergo multiple modifications for U-Boot and kernel separately.
sysdrv:source:mcu: Used RISC-V MCU SDK with RT-Thread system, mainly for initializing camera AE during quick
boot. sysdrv:source:uboot: Added support for fastboot; added high baud rate DDR bin for serial firmware upgrades.
sysdrv:source:kernel: Upgraded to version 5.10.160; increased NPU frequency for RV1106G3; added support for
fastboot.

Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
2024-10-14 09:47:04 +08:00

59 lines
1.5 KiB
Bash
Executable File

#!/bin/bash
ROOT_PATH=`pwd`
#SVN_VERSION=`svn --version | grep "svn, version" | awk '{print $3}'`
VERSION_C="ssv_version.c"
VERSION_C_PATH=$ROOT_PATH/ssvdevice/$VERSION_C
DEFAULT_FW_REVISION=$(basename ${ROOT_PATH})
GIT_SVN=""
if [ -d ".git" ]
then
GIT_SVN="git "
fi
FW_REVISION=`LANGUAGE=en_US.UTF-8 ${GIT_SVN}svn info | grep "Last Changed Rev" | awk '{print $4}'`
FW_BUILD_DATE=`date +%Y-%m-%d`
FW_BUILD_HOUR=`date +%H:%M`
#if [ "$SVN_VERSION" != "1.7.9" ]; then
# printf "Only update version automatically in SVN 1.7.9\n"
# exit
#fi
if [ -f $VERSION_C_PATH ]
then
echo "$VERSION_C_PATH found"
if [ -z "$FW_REVISION" ]; then
exit 0
fi
else
echo "$VERSION_C_PATH not found"
touch $VERSION_C_PATH
if [ -z "$FW_REVISION" ]; then
FW_REVISION=$DEFAULT_FW_REVISION
fi
fi
#printf "SVN version:$SVN_VERSION\n"
#if [ "$FW_REVISION" == "" ]; then
# printf "WIFI_FW revision:\33[35mnot found\33[0m\n"
# FW_REVISION=$DEFAULT_REVISION
#else
# #printf "WIFI_FW revision:$FW_REVISION\n"
# printf "FW BUILD DATE: $FW_BUILD_DATE $FW_BUILD_HOUR\n"
# sed -i 's/#define SERIAL_NUM ".*"/#define SERIAL_NUM "'$FW_REVISION'"/' $VERSION_C_PATH
# sed -i 's/#define BUILD_DATE ".*"/#define BUILD_DATE "'$FW_BUILD_DATE' '$FW_BUILD_HOUR'"/' $VERSION_C_PATH
#fi
echo "#define SERIAL_NUM \"$FW_REVISION\"" > $VERSION_C_PATH
echo "#define BUILD_DATE \"$FW_BUILD_DATE\"" >> $VERSION_C_PATH
echo "const char *sw_driver_version = {SERIAL_NUM};" >> $VERSION_C_PATH
echo "const char *driver_build_date = { BUILD_DATE };" >> $VERSION_C_PATH