Browse Source

boundary_savedefconfig.sh: add optional board parameter

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
master
Troy Kisky 1 year ago
parent
commit
22c2d4a474
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      boundary_savedefconfig.sh

+ 7
- 2
boundary_savedefconfig.sh View File

@@ -1,9 +1,13 @@
#!/bin/bash
# syntax ./boundary_savedefconfig "commit message"
# syntax ./boundary_savedefconfig "commit message" [boards]
#Separate files by board and commit changes after "savedefconfig"

commit_msg=$1;
boards=`ls -d board/boundary/* | sed 's.board/boundary/..'`;
if [ -z $2 ] ; then
boards=`ls -d board/boundary/* | sed 's.board/boundary/..'`;
else
boards=$2;
fi

numboards=0;
numsuccess=0;
@@ -34,6 +38,7 @@ for board in ${boards} ; do
git update-index include/configs/${hfile}.h
git update-index board/boundary/${board}/*.c
git update-index board/boundary/${board}/*
git update-index arch/arm/mach-imx/mx6/Kconfig
echo "${board}: ${update_cnt} defconfigs updated";
numsuccess=`expr $numsuccess + 1`;
git c -m"${board}: ${commit_msg}";


Loading…
Cancel
Save