]> xenbits.xensource.com Git - unikraft/libs/lua.git/log
unikraft/libs/lua.git
18 months agoIntroduce `Library.uk` 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: #6

20 months agoMakefile.uk: Use mk_sub_libbuild_dir to create directory hierarchies RELEASE-0.14.0
Razvan Deaconescu [Fri, 11 Aug 2023 06:38:21 +0000 (09:38 +0300)]
Makefile.uk: Use mk_sub_libbuild_dir to create directory hierarchies

Unikraft core build system currently enforces the use of
`mk_sub_libbuild_dir` function instead of `mk_sub_build_dir` for
creating directory hierarchies, i.e. creating more than the first-level
subdirectory.

Update `Makefile.uk` accordingly: replace the call to `mk_sub_build_dir`
with a call to `mk_sub_libbuild_dir`.

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

21 months agoConfig.uk: Change newlib dependency to musl
Darius-Andrei Jipa [Sat, 22 Jul 2023 10:40:37 +0000 (13:40 +0300)]
Config.uk: Change newlib dependency to musl

Signed-off-by: Darius-Andrei Jipa <jipad16@yahoo.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: #7

21 months agopatches: Remove outdated patch
Stefan Jumarea [Mon, 17 Jul 2023 07:28:48 +0000 (10:28 +0300)]
patches: Remove outdated patch

The patch was:
* Replacing the lua `main` symbol with `lua_main`.
* Removing checking that the given argument was a script, instead
  checking if there is an initrd filesystem present and trying to
  execute it.

The `main` symbol is already replaced in the preprocessing stage by
adding `-Dmain=lua_main` in the `Makefile.uk` flags, so renaming it is
not needed.

Trying to execute the initrd without properly extracting it will
obviously fail, since `lua` will not be able to read the script properly.
This will result in an `malformed number near '0707010..'` error.

The check for initrd is not needed at all, since the fs driver is
transparent for the application, and the script can be accessed as an
usual file, regardless of the fs driver (initrd, 9pfs, etc.).

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

2 years agolua/Makefile.uk: Bump version to 5.4.4 RELEASE-0.11.0 RELEASE-0.12.0 RELEASE-0.13.0 RELEASE-0.13.1
Jalil David Salamé Messina [Sun, 23 Oct 2022 10:46:34 +0000 (12:46 +0200)]
lua/Makefile.uk: Bump version to 5.4.4

Tested under x86_64, runs in `linuxu` and `kvm` using the Lua app in the
`app-lua` repository.

Signed-off-by: Jalil David Salamé Messina <jalil.salame@tum.de>
Reviewed-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Approved-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #4

3 years agolua/Makefile.uk: Bump to Lua version 5.4.3 RELEASE-0.10.0 RELEASE-0.7.0 RELEASE-0.8.0 RELEASE-0.9.0
Fredrik Bakken [Wed, 1 Sep 2021 08:53:57 +0000 (10:53 +0200)]
lua/Makefile.uk: Bump to Lua version 5.4.3

Signed-off-by: Fredrik Bakken <Fredrik.Bakken@gmail.com>
Reviewed-by: Mocanu Gabriel <gabi.mocanu98@gmail.com>
Approved-by: Razvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #2

4 years agoliblua: Include signal dependency RELEASE-0.5 RELEASE-0.6
Sharan Santhanam [Fri, 5 Feb 2021 15:35:38 +0000 (16:35 +0100)]
liblua: Include signal dependency

Signed-off-by: Sharan Santhanam <sharan.santhanam@neclab.eu>
Reviewed-by: Alexander Jung <a.jung@lancs.ac.uk>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Pull-Request: #1

5 years agoFix broken behaviour when given append parameter. RELEASE-0.4
Felipe Huici [Wed, 12 Feb 2020 18:51:00 +0000 (19:51 +0100)]
Fix broken behaviour when given append parameter.

This patch makes it so that Lua now goes straight into interactive
mode when not given initrd as a parameter; previosuly it was assuming
that the --append parameter was a file name to be read and executed,
which was broken.

Signed-off-by: Felipe Huici <felipe.huici@neclab.eu>
Reviewed-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
5 years agoPrevent make from deleting archive headers.
Felipe Huici [Wed, 16 Oct 2019 09:44:55 +0000 (11:44 +0200)]
Prevent make from deleting archive headers.

Add a PRECIOUS target to make sure that make does not treat archive
headers as intermediate and ends up deleting them.

Signed-off-by: Felipe Huici
Reviewed-by: Roxana Nicolescu <nicolescu.roxana1996@gmail.com>
5 years agoAdd optional main()
Felipe Huici [Wed, 16 Oct 2019 09:44:54 +0000 (11:44 +0200)]
Add optional main()

We add a menu option to provide a main() function, and set it to on by
default so that in the standard case a user can choose a platform,
compile and run.

Signed-off-by: Felipe Huici <felipe.huici@neclab.eu>
Reviewed-by: Roxana Nicolescu <nicolescu.roxana1996@gmail.com>
5 years agoFix typo in Makefile.uk
Felipe Huici [Wed, 16 Oct 2019 09:44:53 +0000 (11:44 +0200)]
Fix typo in Makefile.uk

Change CPPINCLUDES to CXXINCLUDES

Signed-off-by: Felipe Huici <felipe.huici@neclab.eu>
Reviewed-by: Roxana Nicolescu <nicolescu.roxana1996@gmail.com>
5 years agoAdd dependencies to Config.uk
Felipe Huici [Wed, 16 Oct 2019 09:44:52 +0000 (11:44 +0200)]
Add dependencies to Config.uk

Select newlib, uktime and ukunistd as hard dependencies.

Signed-off-by: Felipe Huici <felipe.huici@neclab.eu>
Reviewed-by: Roxana Nicolescu <nicolescu.roxana1996@gmail.com>
5 years agoRemove exportsyms.uk .
Felipe Huici [Wed, 16 Oct 2019 09:44:51 +0000 (11:44 +0200)]
Remove exportsyms.uk .

We may re-introduce it at some later point in time if needed.

Signed-off-by: Felipe Huici <felipe.huici@neclab.eu>
Reviewed-by: Roxana Nicolescu <nicolescu.roxana1996@gmail.com>
5 years agoExport symbols
Felipe Huici [Wed, 11 Sep 2019 12:01:07 +0000 (14:01 +0200)]
Export symbols

Export lua symbols

Signed-off-by: Felipe Huici <felipe.huici@neclab.eu>
Reviewed-by: Jia He <justin.he@arm.com>
5 years agoAdd patches directory
Felipe Huici [Wed, 11 Sep 2019 12:01:06 +0000 (14:01 +0200)]
Add patches directory

Patch to rename main function and to add initrd support to main loop.

Signed-off-by: Felipe Huici <felipe.huici@neclab.eu>
Reviewed-by: Jia He <justin.he@arm.com>
5 years agoAdd Makefile.uk
Felipe Huici [Wed, 11 Sep 2019 12:01:05 +0000 (14:01 +0200)]
Add Makefile.uk

Add lua port Makefile.uk

Signed-off-by: Felipe Huici <felipe.huici@neclab.eu>
Reviewed-by: Jia He <justin.he@arm.com>
5 years agoIntroduce library skeleton
Felipe Huici [Wed, 11 Sep 2019 12:01:04 +0000 (14:01 +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 [Tue, 27 Aug 2019 15:23:42 +0000 (17:23 +0200)]
Initial commit (empty)