Improve build.sh to allow building specific commit
regardless of upstream activity which is a shortcoming of termux_git_clone_src.sh that currently always choose the latest commit from the repo. The issue is spotted in 1337fa0ffe9cd1e3813921dc5b53b0fd1d8f904b. Also updates the package for clvk and bump the revision for clpeak.
This commit is contained in:
parent
a7baaef46d
commit
d68189f282
|
@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="A tool which profiles OpenCL devices to find their peak
|
|||
TERMUX_PKG_LICENSE="Unlicense"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=1.1.0
|
||||
TERMUX_PKG_REVISION=2
|
||||
TERMUX_PKG_REVISION=3
|
||||
_COMMIT=0777205be1d5681d5a76d46ec94588544e8462a5
|
||||
TERMUX_PKG_SRCURL=https://github.com/krrishnarraj/clpeak.git
|
||||
TERMUX_PKG_GIT_BRANCH=master
|
||||
|
@ -14,7 +14,8 @@ TERMUX_PKG_DEPENDS="libc++, ocl-icd"
|
|||
# Use master branch until next release
|
||||
|
||||
termux_step_post_get_source() {
|
||||
git pull
|
||||
git fetch --unshallow
|
||||
git reset --hard ${_COMMIT}
|
||||
git submodule foreach --recursive git reset --hard
|
||||
git submodule deinit --force --all
|
||||
git submodule update --init --recursive
|
||||
}
|
||||
|
|
|
@ -2,8 +2,8 @@ TERMUX_PKG_HOMEPAGE=https://github.com/kpet/clvk
|
|||
TERMUX_PKG_DESCRIPTION="Experimental implementation of OpenCL on Vulkan"
|
||||
TERMUX_PKG_LICENSE="Apache-2.0"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=0.0.20211027
|
||||
_COMMIT=ed030247b3a32851f4d9787c162dbf8be5a665c2
|
||||
TERMUX_PKG_VERSION=0.0.20211121
|
||||
_COMMIT=d8d02aac8ac3e9256e75f3143214777cc3a162e9
|
||||
TERMUX_PKG_SRCURL=https://github.com/kpet/clvk.git
|
||||
TERMUX_PKG_GIT_BRANCH=master
|
||||
TERMUX_PKG_BUILD_DEPENDS="vulkan-loader-android"
|
||||
|
@ -42,9 +42,10 @@ TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DCLVK_BUILD_TESTS=OFF"
|
|||
TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" -DCLVK_CLSPV_ONLINE_COMPILER=1"
|
||||
|
||||
termux_step_post_get_source() {
|
||||
git pull
|
||||
git fetch --unshallow
|
||||
git reset --hard ${_COMMIT}
|
||||
git submodule foreach --recursive git reset --hard
|
||||
git submodule deinit --force --all
|
||||
git submodule update --init --recursive
|
||||
./external/clspv/utils/fetch_sources.py --deps llvm
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue