Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZSDK version bump & fix problem with attempting to download gz when release is xz #53

Merged
merged 2 commits into from
Jul 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scripts/zmk_local_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ sudo apt-get install --yes --no-install-recommends git cmake ninja-build gperf \
# Find latest release version
# ZSDK_URL="https://github.com/zephyrproject-rtos/sdk-ng/releases/latest"
# ZSDK_VERSION="$(curl -fsSLI -o /dev/null -w %{url_effective} ${ZSDK_URL} | sed 's/^.*v//')"
ZSDK_VERSION="0.15.2"
ZSDK_VERSION="0.16.3"

# Download and verify latest Zephyr SDK bundle
cd ~/.local
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${ZSDK_VERSION}/zephyr-sdk-${ZSDK_VERSION}_linux-x86_64.tar.gz
wget https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${ZSDK_VERSION}/zephyr-sdk-${ZSDK_VERSION}_linux-x86_64.tar.xz
wget -O - https://github.com/zephyrproject-rtos/sdk-ng/releases/download/v${ZSDK_VERSION}/sha256.sum | shasum --check --ignore-missing
## TODO: abort if exit code is error

# Extract the Zephyr SDK bundle archive
tar xvf zephyr-sdk-${ZSDK_VERSION}_linux-x86_64.tar.gz
rm zephyr-sdk-${ZSDK_VERSION}_linux-x86_64.tar.gz
tar xvf zephyr-sdk-${ZSDK_VERSION}_linux-x86_64.tar.xz
rm zephyr-sdk-${ZSDK_VERSION}_linux-x86_64.tar.xz

# Run the Zephyr SDK bundle setup script
cd zephyr-sdk-${ZSDK_VERSION}
Expand Down
Loading