chore: refine handout script, update .gitignore accordingly

This commit is contained in:
Gatsby
2025-05-14 11:25:28 +08:00
parent b9d7950b3a
commit 831395d236
2 changed files with 10 additions and 3 deletions
+4 -1
View File
@@ -54,4 +54,7 @@ dkms.conf
# MacOS .DS_Store file
**/.DS_Store
**/._.DS_Store
**/._.DS_Store
# Ignore handout files
handout/
+6 -2
View File
@@ -4,9 +4,13 @@
GE_TXATT=0
GE_RXATT=25
DST_DIR=`pwd`
DST_DIR="$(pwd)/handout"
PROJECT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
echo ${DST_DIR}
mkdir -p ${DST_DIR}
echo "Creating <df_datalink_ge>..."
cp -rL $PROJECT_DIR/df_datalink_ge/src $DST_DIR/df_datalink_ge
sed -i'' -e "s/antConfig->rfTxMgc = 0;/antConfig->rfTxMgc = $GE_TXATT;/g" $DST_DIR/df_datalink_ge/networking/phy_layer/phy_antenna.c
@@ -38,4 +42,4 @@ for key in ${!calMap[*]};do
/\};/!b table
s/=.*\};/=\n\/\/Antenna-$key\n${calMap[$key]}/
}" $DST_DIR/$projName/networking/phy_layer/phy_antenna.c
done
done