File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 66TARGET_ARCH=$1
77
88if [ ! -n " $TARGET_ARCH " ]; then
9- echo " Usage: $0 <arch> [board]"
9+ echo " Usage: $0 <arch> [board|all] [commit ]"
1010 exit 1
1111fi
1212
@@ -52,15 +52,20 @@ GIT_REPO="git://git.denx.de/u-boot.git"
5252
5353echo " Cloning sources..."
5454git clone $GIT_REPO $TMP
55+ if [ $# -eq 3 ]; then
56+ git -C $TMP checkout $3
57+ fi
5558
5659echo " Calculating dates..."
5760GIT_DATE=$( git -C $TMP log -1 --format=%cd)
5861GIT_HASH=$( git -C $TMP log -1 --format=%H)
5962
6063echo " Locating work..."
6164WORK_QUEUE=$( find $TARGET_ARCH / -mindepth 1 -type d)
62- if [ $# -eq 2 ]; then
65+ if [ $# -ge 2 -a " $2 " != all ]; then
6366 WORK_QUEUE=" $TARGET_ARCH /$2 "
67+ else
68+ WORK_QUEUE=$( find $TARGET_ARCH / -mindepth 1 -type d)
6469fi
6570
6671for dir in $WORK_QUEUE ; do
You can’t perform that action at this time.
0 commit comments