contrib: added libunit-wasm and wasi-sysroot.
This commit is contained in:
23
pkg/contrib/src/libunit-wasm/Makefile
Normal file
23
pkg/contrib/src/libunit-wasm/Makefile
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# libunit-wasm
|
||||||
|
|
||||||
|
include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/version
|
||||||
|
LIBUNIT_WASM_URL := https://github.com/nginx/unit-wasm.git
|
||||||
|
|
||||||
|
PKGS += libunit-wasm
|
||||||
|
|
||||||
|
DEPS_libunit-wasm = wasi-sysroot $(DEPS_wasi-sysroot)
|
||||||
|
|
||||||
|
$(TARBALLS)/libunit-wasm-$(LIBUNIT_WASM_GITHASH).tar.xz:
|
||||||
|
$(call download_git,$(LIBUNIT_WASM_URL),,$(LIBUNIT_WASM_GITHASH))
|
||||||
|
|
||||||
|
.sum-libunit-wasm: libunit-wasm-$(LIBUNIT_WASM_GITHASH).tar.xz
|
||||||
|
$(call check_githash,$(LIBUNIT_WASM_GITHASH))
|
||||||
|
touch $@
|
||||||
|
|
||||||
|
libunit-wasm: libunit-wasm-$(LIBUNIT_WASM_GITHASH).tar.xz
|
||||||
|
$(UNPACK)
|
||||||
|
$(MOVE)
|
||||||
|
|
||||||
|
.libunit-wasm: libunit-wasm
|
||||||
|
cd $< && CFLAGS= make WASI_SYSROOT=$(TOPSRC)wasi-sysroot V=1 libunit-wasm
|
||||||
|
touch $@
|
||||||
2
pkg/contrib/src/libunit-wasm/version
Normal file
2
pkg/contrib/src/libunit-wasm/version
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
LIBUNIT_WASM_VERSION := 0.1.0
|
||||||
|
LIBUNIT_WASM_GITHASH := d6ed6a219b31a58526721f96195c80061d41ce54
|
||||||
17
pkg/contrib/src/wasi-sysroot/Makefile
Normal file
17
pkg/contrib/src/wasi-sysroot/Makefile
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
# wasi-sysroot
|
||||||
|
|
||||||
|
include $(dir $(abspath $(lastword $(MAKEFILE_LIST))))/version
|
||||||
|
WASI_SYSROOT_URL := https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-$(WASI_SYSROOT_VERSION_MAJOR)/wasi-sysroot-$(WASI_SYSROOT_VERSION_MAJOR).$(WASI_SYSROOT_VERSION_MINOR).tar.gz
|
||||||
|
|
||||||
|
PKGS += wasi-sysroot
|
||||||
|
|
||||||
|
$(TARBALLS)/wasi-sysroot-$(WASI_SYSROOT_VERSION_MAJOR).$(WASI_SYSROOT_VERSION_MINOR).tar.gz:
|
||||||
|
$(call download_pkg,$(WASI_SYSROOT_URL),wasi-sysroot)
|
||||||
|
|
||||||
|
.sum-wasi-sysroot: wasi-sysroot-$(WASI_SYSROOT_VERSION_MAJOR).$(WASI_SYSROOT_VERSION_MINOR).tar.gz
|
||||||
|
|
||||||
|
wasi-sysroot: wasi-sysroot-$(WASI_SYSROOT_VERSION_MAJOR).$(WASI_SYSROOT_VERSION_MINOR).tar.gz .sum-wasi-sysroot
|
||||||
|
$(UNPACK)
|
||||||
|
|
||||||
|
.wasi-sysroot: wasi-sysroot
|
||||||
|
touch $@
|
||||||
1
pkg/contrib/src/wasi-sysroot/SHA512SUMS
Normal file
1
pkg/contrib/src/wasi-sysroot/SHA512SUMS
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ad4ad629d02f01f3d2eb977dd0bc43091b0f11ed1b5dd9fdb3580e4cf49c132f6cb4982ae80eabf638f0d08d0c4c7df40cceb2be8f9d2c29abc35b8564ffda42 wasi-sysroot-20.0.tar.gz
|
||||||
2
pkg/contrib/src/wasi-sysroot/version
Normal file
2
pkg/contrib/src/wasi-sysroot/version
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
WASI_SYSROOT_VERSION_MAJOR := 20
|
||||||
|
WASI_SYSROOT_VERSION_MINOR := 0
|
||||||
Reference in New Issue
Block a user