]> xenbits.xensource.com Git - unikraft/libs/wamr.git/log
unikraft/libs/wamr.git
18 months agoIntroduce `Library.uk` stable staging RELEASE-0.15.0 RELEASE-0.16.0
Alexander Jung [Tue, 11 Jul 2023 21:25:56 +0000 (21:25 +0000)]
Introduce `Library.uk`

This new file represents the first step towards proper versioning support of
external microlibrary in Unikraft.  The file itself acts as mechanism for
holding metadata-only values about the microlibrary.  This metadata is designed
to be compatible with GNU Make whilst simultaneously being human-readable and
readable by programs that are not GNU Make (e.g. tools such as KraftKit).

An important feature of this file is the inclusion of microlibrary versions.
In a later step, once relevant integrations have been made to Unikrat's core
build system and to relevant tools such as KraftKit, the user will be able to
see and select from different versions of the microlibrary.

In this initial commit, the relevant metadata is absorbed from both Makefile.uk,
Config.uk, but also includes new information such as SPDX License identifier.

Signed-off-by: Alexander Jung <alex@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
GitHub-Closes: #5

18 months agoAdd patch to use global heap buffer
Razvan Deaconescu [Fri, 20 Oct 2023 15:23:20 +0000 (18:23 +0300)]
Add patch to use global heap buffer

Define the global variable `USE_GLOBAL_HEAP_BUF` as `1`. This is
required to properly allocate memory for Unikraft.

Signed-off-by: Razvan Deaconescu <razvand@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Stefan Jumarea <stefanjumarea02@gmail.com>
GitHub-Closes: #9

18 months agopatches: Remove patch 0005: main adaptation
Razvan Deaconescu [Fri, 13 Oct 2023 19:08:59 +0000 (22:08 +0300)]
patches: Remove patch 0005: main adaptation

Remove patch that required the `.wasm` file to be passed as an initrd
option. Rely on a filesystem being available, which is the default
behavior: expecting the path to the `.wasm` file as a command line
argument.

Signed-off-by: Razvan Deaconescu <razvand@unikraft.io>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Stefan Jumarea <stefanjumarea02@gmail.com>
GitHub-Closes: #9

20 months agolib/libwamr: Move to musl and address compiler errors RELEASE-0.14.0
Robert Klink [Sat, 15 Jul 2023 13:23:56 +0000 (15:23 +0200)]
lib/libwamr: Move to musl and address compiler errors

Move from the `LIBNEWLIBC` and `LIBPTHREAD_EMBEDDED` to `LIBMUSL`.
Changed needed to build lib-wamr were:
* Using the `uk/essentials.h` header for a definition of `offsetof`
* Adding a new `0006` patch file to change `PTHREAD_MUTEX_RECURSIVE_NP` into
`PTHREAD_MUTEX_RECURSIVE` as the former on isn't defined
* Change the `0005` patch file to use modern working unikraft initrd loading
code so it can load the `.wasm` files

Signed-off-by: Robert Klink <roberthklink@gmail.com>
Signed-off-by: Ricardo Mohamedhoesein <rmohamedhoesein3@gmail.com>
Co-authored-by: Ricardo Mohamedhoesein <rmohamedhoesein3@gmail.com>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #8

3 years agoCorrect license headers introduced by NEC Laboratories Europe GmbH RELEASE-0.10.0 RELEASE-0.11.0 RELEASE-0.12.0 RELEASE-0.13.0 RELEASE-0.13.1 RELEASE-0.6 RELEASE-0.7.0 RELEASE-0.8.0 RELEASE-0.9.0
Simon Kuenzer [Tue, 13 Jul 2021 19:19:00 +0000 (21:19 +0200)]
Correct license headers introduced by NEC Laboratories Europe GmbH

This commit removes the additional clause
"THIS HEADER MAY NOT BE EXTRACTED OR MODIFIED IN ANY WAY"
from BSD license headers that got introduced by mistake
with the following commits:
 6b0a83e - Add Makefile.uk and glue. (Felipe Huici)

On the one hand, this additional clause is redundant because
the BSD license already states that it must remain and the
copyright notice must be kept.
On the other hand, the clause freezes the file header
and prohibits future contributors from extending the
copyright notice for their contributions. This additional
clause is not part of the official BSD 3-clause.

The original author(s) or an authorized representative from
the author's affiliation consents to the change with a
`Reviewed-by` tag to this commit.

Signed-off-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Approved-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #1

5 years agoAdd patches RELEASE-0.4 RELEASE-0.5
Felipe Huici [Fri, 11 Oct 2019 09:06:57 +0000 (11:06 +0200)]
Add patches

Add various patches to (a) make wamr build against pthread-embedded,
(b) use wasm's log and (c) patch into wamr's linux's main loop.

Signed-off-by: Felipe Huici <felipe.huici@neclab.eu>
Reviewed-by: Jia He <justin.he@arm.com>
5 years agoAdd include directory
Felipe Huici [Fri, 11 Oct 2019 09:06:56 +0000 (11:06 +0200)]
Add include directory

Add bh_platform.h which was auto-generated from a local build.

Signed-off-by: Felipe Huici <felipe.huici@neclab.eu>
Reviewed-by: Jia He <justin.he@arm.com>
5 years agoAdd Makefile.uk and glue.
Felipe Huici [Fri, 11 Oct 2019 09:06:55 +0000 (11:06 +0200)]
Add Makefile.uk and glue.

We hook into wamr's main loop by patching wamr's linux's main.c.

Signed-off-by: Felipe Huici <felipe.huici@neclab.eu>
Reviewed-by: Jia He <justin.he@arm.com>
5 years agoIntroduce library skeleton
Felipe Huici [Fri, 11 Oct 2019 09:06:54 +0000 (11:06 +0200)]
Introduce library skeleton

We use the BSD-3-Clause license for this library glue code.

Signed-off-by: Felipe Huici <felipe.huici@neclab.eu>
Reviewed-by: Jia He <justin.he@arm.com>
5 years agoInitial commit (empty)
Felipe Huici [Sun, 28 Jul 2019 09:34:12 +0000 (11:34 +0200)]
Initial commit (empty)