From 0f989b10e9ef548cc18b7e9e72935aab84cff765 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Wed, 5 May 2021 00:20:03 +0000 Subject: [PATCH] xtensa-build-zephyr.sh: show zephyr short git log / version after clone By default, the Zephyr build does not log its version. The fix has already been submitted at https://github.com/zephyrproject-rtos/zephyr/pull/34842 however: - 34842 may take some time. Zephyr reviewers are even busier than the SOF reviewer. - 34842 could even be rejected - 34842 will at best log the SHA1 and no context. This is more verbose and future-proof because it supports more complex situations like testing a pull/12345/merge As seen in (unrelated) PR #4123, we need Zephyr git versions NOW. Signed-off-by: Marc Herbert --- scripts/xtensa-build-zephyr.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/xtensa-build-zephyr.sh b/scripts/xtensa-build-zephyr.sh index b3cefd9af..d7b39441f 100755 --- a/scripts/xtensa-build-zephyr.sh +++ b/scripts/xtensa-build-zephyr.sh @@ -58,6 +58,8 @@ clone() mkdir -p "$WEST_TOP" git clone --depth=5 https://github.com/zephyrproject-rtos/zephyr \ "$WEST_TOP"/zephyr + git -C "$WEST_TOP"/zephyr --no-pager log --oneline --graph \ + --decorate --max-count=20 west init -l "${WEST_TOP}"/zephyr ( cd "${WEST_TOP}" mkdir -p modules/audio