mirror of
https://github.com/apache/nuttx.git
synced 2026-06-01 16:59:28 +08:00
tools/refresh.sh: Support passing the multiple configuration
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com> Change-Id: Id3d4464e2d30871763b40067b3162b793e99c98f
This commit is contained in:
committed by
David Sidrane
parent
86e47534e6
commit
580364362c
+1
-1
@@ -856,7 +856,7 @@ refresh.sh
|
|||||||
$ tools/refresh.sh --help
|
$ tools/refresh.sh --help
|
||||||
tools/refresh.sh is a tool for refreshing board configurations
|
tools/refresh.sh is a tool for refreshing board configurations
|
||||||
|
|
||||||
USAGE: ./refresh.sh [options] <board>/<config>
|
USAGE: ./refresh.sh [options] <board>/<config>+
|
||||||
|
|
||||||
Where [options] include:
|
Where [options] include:
|
||||||
--debug
|
--debug
|
||||||
|
|||||||
+5
-6
@@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
WD=`test -d ${0%/*} && cd ${0%/*}; pwd`
|
WD=`test -d ${0%/*} && cd ${0%/*}; pwd`
|
||||||
|
|
||||||
USAGE="USAGE: $0 [options] <board>:<config>"
|
USAGE="USAGE: $0 [options] <board>:<config>+"
|
||||||
ADVICE="Try '$0 --help' for more information"
|
ADVICE="Try '$0 --help' for more information"
|
||||||
|
|
||||||
unset CONFIGS
|
unset CONFIGS
|
||||||
@@ -47,7 +47,6 @@ while [ ! -z "$1" ]; do
|
|||||||
case $1 in
|
case $1 in
|
||||||
--debug )
|
--debug )
|
||||||
debug=y
|
debug=y
|
||||||
set -x
|
|
||||||
;;
|
;;
|
||||||
--silent )
|
--silent )
|
||||||
defaults=y
|
defaults=y
|
||||||
@@ -90,7 +89,7 @@ while [ ! -z "$1" ]; do
|
|||||||
exit 0
|
exit 0
|
||||||
;;
|
;;
|
||||||
* )
|
* )
|
||||||
CONFIGS=$1
|
CONFIGS=$*
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@@ -238,13 +237,13 @@ for CONFIG in ${CONFIGS}; do
|
|||||||
if [ "X${debug}" = "Xy" ]; then
|
if [ "X${debug}" = "Xy" ]; then
|
||||||
make olddefconfig V=1
|
make olddefconfig V=1
|
||||||
else
|
else
|
||||||
make olddefconfig 1>/dev/null 2>&1
|
make olddefconfig 1>/dev/null
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ "X${debug}" = "Xy" ]; then
|
if [ "X${debug}" = "Xy" ]; then
|
||||||
make oldconfig V=1
|
make oldconfig V=1
|
||||||
else
|
else
|
||||||
make oldconfig
|
make oldconfig 1>/dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
@@ -254,7 +253,7 @@ for CONFIG in ${CONFIGS}; do
|
|||||||
if [ "X${debug}" = "Xy" ]; then
|
if [ "X${debug}" = "Xy" ]; then
|
||||||
make savedefconfig V=1
|
make savedefconfig V=1
|
||||||
else
|
else
|
||||||
make savedefconfig 1>/dev/null 2>&1
|
make savedefconfig 1>/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Save the refreshed configuration
|
# Save the refreshed configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user