-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add swtpm Signed-off-by: Noel Georgi <[email protected]>
- Loading branch information
Showing
9 changed files
with
260 additions
and
9 deletions.
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
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,49 @@ | ||
name: glib2 | ||
dependencies: | ||
- stage: base | ||
- stage: pkg-config | ||
runtime: true | ||
- stage: meson | ||
runtime: true | ||
- stage: coreutils | ||
- stage: libffi | ||
- stage: openssl | ||
- stage: pcre | ||
- stage: python3 | ||
- stage: zlib | ||
steps: | ||
- sources: | ||
- url: https://download.gnome.org/sources/glib/{{ regexReplaceAll ".\\d+$" .glib2_version "${1}" }}/glib-{{ .glib2_version }}.tar.xz | ||
destination: glib2.tar.gz | ||
sha256: "{{ .glib2_sha256 }}" | ||
sha512: "{{ .glib2_sha512 }}" | ||
env: | ||
LD_LIBRARY_PATH: "/toolchain/lib" | ||
prepare: | ||
- | | ||
tar -xf glib2.tar.gz --strip-components=1 | ||
mkdir -p /usr/bin | ||
ln -sf /toolchain/bin/env /usr/bin/env | ||
ln -sf /toolchain/bin/python3 /toolchain/bin/python | ||
pip3 install jinja2 ninja | ||
meson setup build \ | ||
--prefix=${TOOLCHAIN} \ | ||
--buildtype=release \ | ||
-Dman=false \ | ||
-Dtests=false \ | ||
-Dglib_debug=disabled \ | ||
-Dglib_assert=false \ | ||
-Dglib_checks=false \ | ||
build: | ||
- | | ||
ninja -j $(nproc) -C build | ||
install: | ||
- | | ||
DESTDIR=/rootfs ninja -C build install | ||
rm -rf /rootfs/toolchain/share | ||
finalize: | ||
- from: /rootfs | ||
to: / |
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,47 @@ | ||
name: json-glib | ||
dependencies: | ||
- stage: base | ||
- stage: pkg-config | ||
runtime: true | ||
- stage: meson | ||
runtime: true | ||
- stage: coreutils | ||
- stage: glib2 | ||
- stage: libffi | ||
- stage: openssl | ||
- stage: pcre | ||
- stage: python3 | ||
- stage: zlib | ||
steps: | ||
- sources: | ||
- url: https://download.gnome.org/sources/json-glib/{{ regexReplaceAll ".\\d+$" .json_glib_version "${1}" }}/json-glib-{{ .json_glib_version }}.tar.xz | ||
destination: json-glib.tar.gz | ||
sha256: "{{ .json_glib_sha256 }}" | ||
sha512: "{{ .json_glib_sha512 }}" | ||
env: | ||
LD_LIBRARY_PATH: "/toolchain/lib" | ||
prepare: | ||
- | | ||
tar -xf json-glib.tar.gz --strip-components=1 | ||
mkdir -p /usr/bin | ||
ln -sf /toolchain/bin/env /usr/bin/env | ||
ln -sf /toolchain/bin/python3 /toolchain/bin/python | ||
export PKG_CONFIG_PATH=${TOOLCHAIN}/lib/pkgconfig | ||
pip3 install jinja2 ninja | ||
meson setup build \ | ||
--prefix=${TOOLCHAIN} \ | ||
--buildtype=release \ | ||
-Dtests=false | ||
build: | ||
- | | ||
ninja -C build -j $(nproc) | ||
install: | ||
- | | ||
DESTDIR=/rootfs ninja -C build install | ||
finalize: | ||
- from: /rootfs | ||
to: / |
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,35 @@ | ||
name: libtpms | ||
dependencies: | ||
- stage: base | ||
- stage: autoconf | ||
runtime: true | ||
- stage: automake | ||
runtime: true | ||
- stage: pkg-config | ||
runtime: true | ||
- stage: libtool | ||
- stage: openssl | ||
steps: | ||
- sources: | ||
- url: https://github.com/stefanberger/libtpms/archive/refs/tags/{{ .libtpms_version }}.tar.gz | ||
destination: libtpms.tar.gz | ||
sha256: "{{ .libtpms_sha256 }}" | ||
sha512: "{{ .libtpms_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xf libtpms.tar.gz --strip-components=1 | ||
./autogen.sh \ | ||
--with-tpm2 \ | ||
--with-openssl \ | ||
--prefix=${TOOLCHAIN} | ||
build: | ||
- | | ||
make -j $(nproc) | ||
install: | ||
- | | ||
make DESTDIR=/rootfs install | ||
rm -rf /rootfs/toolchain/share | ||
finalize: | ||
- from: /rootfs | ||
to: / |
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,13 @@ | ||
# https://git.alpinelinux.org/aports/plain/main/socat/use-linux-headers.patch | ||
--- socat-1.7.2.4.orig/sysincludes.h | ||
+++ socat-1.7.2.4/sysincludes.h | ||
@@ -134,7 +134,7 @@ | ||
#include <netpacket/packet.h> | ||
#endif | ||
#if HAVE_NETINET_IF_ETHER_H | ||
-#include <netinet/if_ether.h> | ||
+#include <linux/if_ether.h> | ||
#endif | ||
#if HAVE_LINUX_IF_TUN_H | ||
#include <linux/if_tun.h> | ||
|
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,31 @@ | ||
name: socat | ||
dependencies: | ||
- stage: base | ||
- stage: openssl | ||
- stage: patch | ||
runtime: true | ||
steps: | ||
- sources: | ||
- url: http://www.dest-unreach.org/socat/download/socat-{{ .socat_version }}.tar.gz | ||
destination: socat.tar.gz | ||
sha256: "{{ .socat_sha256 }}" | ||
sha512: "{{ .socat_sha512 }}" | ||
env: | ||
BUILD_DATE: {{ .BUILD_ARG_SOURCE_DATE_EPOCH }} | ||
prepare: | ||
- | | ||
tar -xzf socat.tar.gz --strip-components=1 | ||
patch -p1 < /pkg/patches/use-linux-headers.patch | ||
./configure \ | ||
--prefix=${TOOLCHAIN} | ||
build: | ||
- | | ||
make -j $(nproc) | ||
install: | ||
- | | ||
make install DESTDIR=/rootfs | ||
finalize: | ||
- from: /rootfs | ||
to: / |
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,45 @@ | ||
name: swtpm | ||
dependencies: | ||
- stage: base | ||
- stage: autoconf | ||
runtime: true | ||
- stage: automake | ||
runtime: true | ||
- stage: pkg-config | ||
runtime: true | ||
- stage: coreutils | ||
- stage: expect | ||
- stage: gawk | ||
- stage: glib2 | ||
- stage: json-glib | ||
- stage: libffi | ||
- stage: libseccomp | ||
- stage: libtasn1 | ||
- stage: libtool | ||
- stage: libtpms | ||
- stage: openssl | ||
- stage: pcre | ||
- stage: python3 | ||
- stage: socat | ||
- stage: zlib | ||
steps: | ||
- sources: | ||
- url: https://github.com/stefanberger/swtpm/archive/refs/tags/{{ .swtpm_version }}.tar.gz | ||
destination: swtpm.tar.gz | ||
sha256: "{{ .swtpm_sha256 }}" | ||
sha512: "{{ .swtpm_sha512 }}" | ||
prepare: | ||
- | | ||
tar -xf swtpm.tar.gz --strip-components=1 | ||
./autogen.sh \ | ||
--prefix=${TOOLCHAIN} | ||
build: | ||
- | | ||
make -j $(nproc) | ||
install: | ||
- | | ||
make DESTDIR=/rootfs install | ||
finalize: | ||
- from: /rootfs | ||
to: / |
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