update tpm build

This commit is contained in:
jiangcuo 2024-11-01 12:51:42 +08:00
parent 39078b1f15
commit 4e17e1ca24
5 changed files with 68 additions and 4 deletions

4
.gitmodules vendored
View File

@ -140,10 +140,10 @@
url = https://git.proxmox.com/git/spiceterm
[submodule "packages/swtpm/swtpm"]
path = packages/swtpm/swtpm
url = https://git.proxmox.com/git/swtpm
url = https://github.com/stefanberger/swtpm.git
[submodule "packages/libtpms/libtpms"]
path = packages/libtpms/libtpms
url = https://git.proxmox.com/git/libtpms
url = https://github.com/stefanberger/libtpms
[submodule "packages/libjs-qrcodejs/libjs-qrcodejs"]
path = packages/libjs-qrcodejs/libjs-qrcodejs
url = https://git.proxmox.com/git/libjs-qrcodejs

View File

@ -0,0 +1,32 @@
#!/bin/bash
PKGNAME="libtpms"
errlog(){
echo $1
exit 1
}
exec_build(){
apt update
yes |mk-build-deps --install --remove
echo "clean "
make clean || echo ok
echo "build deb in `pwd` "
dpkg-buildpackage -b -us -uc
}
copy_dir(){
rsync -ra $SH_DIR/$PKGNAME /build
cd /build/$PKGNAME
}
echo "This is $PKGNAME build scripts"
SH_PATH=$(realpath "$0")
SH_DIR=$(dirname $SH_PATH)
copy_dir
exec_build
cp /build/*.changes /build/*.buildinfo /build/*.deb $SH_DIR/$PKGNAME

@ -1 +1 @@
Subproject commit 8d2f9bdc35590afdc10ec8f5cc77351f1e1d7d42
Subproject commit b8c9153a3f74d0c80a34b21b527625524063216c

View File

@ -0,0 +1,32 @@
#!/bin/bash
PKGNAME="swtpm"
errlog(){
echo $1
exit 1
}
exec_build(){
apt update
yes |mk-build-deps --install --remove
echo "clean "
make clean || echo ok
echo "build deb in `pwd` "
dpkg-buildpackage -b -us -uc
}
copy_dir(){
rsync -ra $SH_DIR/$PKGNAME /build
cd /build/$PKGNAME
}
echo "This is $PKGNAME build scripts"
SH_PATH=$(realpath "$0")
SH_DIR=$(dirname $SH_PATH)
copy_dir
exec_build
cp /build/*.changes /build/*.buildinfo /build/*.deb $SH_DIR/$PKGNAME

@ -1 +1 @@
Subproject commit 0234d46959f06dfd3e403cb602c750d7f56669a9
Subproject commit f756ee8a281ddff7e09b49e1ef00d5cbb42abb63