mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-22 06:01:41 +02:00
set_version: Support resolving nightly SDKs
The nightly SDK builds can be used as source for binary packages for the SDK chroot which helps to reduce local build times. Add support for resolving the latest nightly SDK in the set_version script the same way as resolving board nightly builds.
This commit is contained in:
parent
34f7e426f4
commit
2a5d54b54c
10
set_version
10
set_version
@ -30,7 +30,12 @@ Usage: $0 FLAGS...
|
|||||||
which also selects --dev-sdk unless you specify
|
which also selects --dev-sdk unless you specify
|
||||||
--no-dev-sdk
|
--no-dev-sdk
|
||||||
--no-dev-board: Remove existing FLATCAR_DEV_BUILDS
|
--no-dev-board: Remove existing FLATCAR_DEV_BUILDS
|
||||||
--sdk-version VERSION: Set FLATCAR_SDK_VERSION=VERSION
|
--sdk-version (VERSION|sdk-BRANCH-nightly): Set FLATCAR_SDK_VERSION=VERSION where VERSION can
|
||||||
|
be resolved by looking up the latest SDK build
|
||||||
|
referenced by
|
||||||
|
${DEV_BOARD_URL}/sdk/amd64/sdk-BRANCH-nightly.txt
|
||||||
|
where BRANCH is currently only main, and requires
|
||||||
|
the --dev-sdk option if --no-dev-board is used
|
||||||
--dev-sdk: Set FLATCAR_DEV_BUILDS_SDK=${DEV_SDK_URL}
|
--dev-sdk: Set FLATCAR_DEV_BUILDS_SDK=${DEV_SDK_URL}
|
||||||
--no-dev-sdk: Use a release SDK even if --dev-board is specified
|
--no-dev-sdk: Use a release SDK even if --dev-board is specified
|
||||||
--file FILE: Modify another file than ${FILE}, useful if run
|
--file FILE: Modify another file than ${FILE}, useful if run
|
||||||
@ -61,6 +66,9 @@ while [[ $# -gt 0 ]]; do
|
|||||||
;;
|
;;
|
||||||
--sdk-version)
|
--sdk-version)
|
||||||
FLATCAR_SDK_VERSION="$1"
|
FLATCAR_SDK_VERSION="$1"
|
||||||
|
if [[ "${FLATCAR_SDK_VERSION}" == sdk-*-nightly ]]; then
|
||||||
|
FLATCAR_SDK_VERSION=$(curl -s -S -f -L "${DEV_BOARD_URL}/sdk/amd64/${FLATCAR_SDK_VERSION}.txt")
|
||||||
|
fi
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
--dev-sdk)
|
--dev-sdk)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user