-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
162a86c
commit d0bc2eb
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
# The latest tag starts with 'yocto' is easier to get from the 'yocto-docs' than from 'poky' | ||
git clone --depth 1 --filter=blob:none --sparse https://git.yoctoproject.org/yocto-docs | ||
cd yocto-docs | ||
git fetch --tags | ||
TMP_TAG=$(git tag | tail -n 1) | ||
cd .. | ||
rm -rf yocto-docs | ||
|
||
git clone --depth 1 --filter=blob:none --sparse https://github.com/yoctoproject/poky.git | ||
cd poky | ||
git fetch --tags | ||
LASTEST_RELEASE=$(git show $TMP_TAG | grep commit | sed "s/^commit //") | ||
LINK="https://downloads.yoctoproject.org/releases/yocto/$TMP_TAG/poky-$LASTEST_RELEASE.tar.bz2" | ||
cd .. | ||
rm -rf poky | ||
|
||
mkdir -p resources/poky | ||
curl -L -o resources/poky.tar.bz2 $LINK | ||
tar -xvjf resources/poky.tar.bz2 -C resources |