Files
firmware/scripts/sync_goke.sh
Dmitry Ilyin 4759bce18f Add CMA allocator mode for Goke IPCs (#286)
* [gk7605v100] Implement CMA

* Tested gk7205v300 CMA mode

* Add gk7205v200 config (untested)

* Update comments

* Add rest of configuration

* Reapply gk7205v200.generic-fpv config

* auto set allocator

* Add sync all script

* Add HiSilicon2Goke pre commit kernel configuration hook

* Silent script
2022-07-31 21:18:41 +03:00

26 lines
704 B
Bash
Executable File

#!/usr/bin/env bash
INDIR=br-ext-chip-hisilicon/board/hi3516ev200/kernel
OUTDIR=br-ext-chip-goke/board/gk7205v200/kernel
function map_soc() {
case $1 in
hi3516ev200) NEW_SOC=gk7205v200 ;;
hi3516dv200) NEW_SOC=gk7605v100 ;;
hi3516ev300) NEW_SOC=gk7205v300 ;;
hi3518ev300) NEW_SOC=gk7202v300 ;;
esac
}
pushd $(git rev-parse --show-toplevel) > /dev/null
for FILENAME in ${INDIR}/*.config; do
OLD_CONFIG=$(basename $FILENAME)
OLD_SOC=$(echo $OLD_CONFIG | cut -f 1 -d .)
map_soc $OLD_SOC
NEW_CONFIG=$(echo $OLD_CONFIG | sed "s/$OLD_SOC/$NEW_SOC/")
./scripts/clone_config_hisi2goke.sh $INDIR/$OLD_CONFIG $OUTDIR/$NEW_CONFIG
git add $OUTDIR/$NEW_CONFIG
done
popd > /dev/null