Skip to content

Commit 2d88ccb

Browse files
committed
Update linux_checkout to use LINUX_SRC
1 parent 61b3b5a commit 2d88ccb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ linux_checkout:
184184
ifndef VERSION
185185
$(error VERSION environment variable is not defined)
186186
endif
187-
$(SCRIPT_DIR)/checkout_linux.sh $(VERSION)
187+
$(SCRIPT_DIR)/checkout_linux.sh $(VERSION) $(LINUX_SRC)
188188

189189

190190
# These targets do the same thing as the `linux` targets, but because they're in

scripts/checkout_linux.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
set -o errexit
44

55
VERSION="$1"
6+
LINUX_SRC="${2:-linux}"
67

78
if [ -z "$VERSION" ]; then
89
echo "usage: $0 VERSION"
@@ -11,8 +12,8 @@ fi
1112

1213
function check_version_and_checkout {
1314
local REF="$1"
14-
if git -C linux show-ref "$REF" > /dev/null; then
15-
git -C linux checkout $REF
15+
if git -C "$LINUX_SRC" show-ref "$REF" > /dev/null; then
16+
git -C "$LINUX_SRC" checkout $REF
1617
return 0
1718
else
1819
return 1

0 commit comments

Comments
 (0)