We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d57ce9b commit e3de4efCopy full SHA for e3de4ef
u-boot/tools/build
@@ -6,7 +6,7 @@
6
TARGET_ARCH=$1
7
8
if [ ! -n "$TARGET_ARCH" ]; then
9
- echo "Usage: $0 <arch> [board]"
+ echo "Usage: $0 <arch> [board|all] [commit]"
10
exit 1
11
fi
12
@@ -52,13 +52,17 @@ GIT_REPO="git://git.denx.de/u-boot.git"
52
53
echo "Cloning sources..."
54
git clone $GIT_REPO $TMP
55
+if [ $# -eq 3 ]; then
56
+ git -C $TMP checkout $3
57
+fi
58
59
GIT_DATE=$(git -C $TMP log -1 --format=%cd)
60
GIT_HASH=$(git -C $TMP log -1 --format=%H)
61
-WORK_QUEUE=$(find $TARGET_ARCH/ -mindepth 1 -type d)
-if [ $# -eq 2 ]; then
62
+if [ $# -ge 2 -a "$2" != all ]; then
63
WORK_QUEUE="$TARGET_ARCH/$2"
64
+else
65
+ WORK_QUEUE=$(find $TARGET_ARCH/ -mindepth 1 -type d)
66
67
68
for dir in $WORK_QUEUE; do
0 commit comments