[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH 1/4] lib/posix-libdl: Introduce POSIX libdl library skeleton


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Wed, 14 Aug 2019 17:56:29 +0300
  • Cc: felipe.huici@xxxxxxxxx, simon.kuenzer@xxxxxxxxx, Andrei Gogonea <andrei.gogonea09@xxxxxxxxx>, sharan.santhanam@xxxxxxxxx, Teodora Serbanescu <teo.serbanescu16@xxxxxxxxx>
  • Delivery-date: Wed, 14 Aug 2019 14:56:53 +0000
  • Ironport-phdr: 9a23:xiY7ZBMVl3/kvsouJUcl6mtUPXoX/o7sNwtQ0KIMzox0K/35pMbcNUDSrc9gkEXOFd2Cra4d0ayP6fGrADNIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfK1+IA+roQnPssQajpZuJ6QswRbVv3VEfPhby3l1LlyJhRb84cmw/J9n8ytOvv8q6tBNX6bncakmVLJUFDspPXw7683trhnDUBCA5mAAXWUMkxpHGBbK4RfnVZrsqCT6t+592C6HPc3qSL0/RDqv47t3RBLulSwKLCAy/n3JhcNsjaJbuBOhqAJ5w47Ie4GeKf5ycrrAcd8GWWZNW8BcXDFDDIyhdYsCF+oPM/hFoYfzpFUAqhmxBQe3Ce/z1jNFnGP60Lcm3+g9FwzNwQwuH8gJsHTRtNj4KqASUfupzKnJyzXIcvVY2Srl6IjVbxsspu2DXbVrccrNyEkvERnJjlGNqYz9IjOYzfgCs3OB4+p4SOKgkHQrqxt2ojW2wMonl4rHhpoNx1zZ+ih13Zw5KN64RUJhf9KoDplduzuUOoduX88vTHxktDw5x7AGo5K3YiYHxZo9yxLCZPGLbY6F6Q/5WumLOzd3nndldaq6hxa17Eev1PXxVtKx0FZWtipFlcTMtmwV2xzT9MeHTvx981+/2TaKzQ/T6+VELVoomqrAMZIh2qMwmYEJvUTZGS/6gET2jKmIeUU44uWk9uvqbqj8qpKfN4J4kB/yProsl8ClD+k0Kg0OUHKa+eS42r3j50r5QLBSg/IqlanZq4zaJcUdpqKjBw9Vz54j6wukAji6y9QUh2EHLE9edx6dlYjpPEnCIOrkAvenn1SsjDBryujcMb3nH5rNNGbMkLb7cbZy7E5cxw0zzdZB6J1OFr0MJOn+WkD0tNPCDx85Nxa4zPrgCNV4zokeQ36AAreFMKPOtl+F/v4vLPeLZIMPozbyNeIl6OX0gn8/h1AdZrWm3YYKZH25BflmLECZbmDtgtcFC2sFog0+TOnygl2YTTFTf2qyX7475jwjDYKmDIHDRoGqgLyaxSu0A4NZZn5YBVCICnroc4SEW+wQaCKJOMNgnSILVb67R48mzxGuuxfwy6B7IerM5i0YqZXj2cB75+LNkREy9CR0ANqH32GNUmF0n38HRz4t0aB5v0Ny1lOD3rJjjPBCC9NT+utDUh0mOp7E0+x6F9fyVxrafteJUlmmWM+pATcrQtIq2dAOZVp9G9W4gRDFxSWqBqQYl7qVC5Mo9qLTxWP+K9xjxHbbzKMhlUUpQtNTNW26ga5y7xPTB4/Mk0Wekaamb6cc3DPT+2eFzGuBoltYXRV2UarbQX8fYlHZos/j6kzcUr/9QYggZw5Az8+FMe5GZ8PkiX1CRez/I5LObmT3nH2/VjiSwbbZR43xZ2QblAHAEFVMxwsU5mqHM046Gz+8i2nFSiRzHxT1ZBW/oqFFtHqnQxpsnEmxZEp72u/wo0ZNiA==
  • Ironport-sdr: o/EAMkqc8XG7WoXbbAkjB9JuZrqf0BDEGx2gDt1QWTVKRK3gTEXMEcr0RzC+BiN+SzFvAa/xf5 3dNjaG11ocjw==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

A great number of libraries use explicit loading of dynamic libraries and for
this reason we provide the libdl Unikraft implementation. Given that libdl is
POSIX, we propose a new name convention for internal libraries which implement
POSIX functions: every internal library will have the 'posix-' prefix in order
to differentiate it from libraries that implement Unikraft specific
functionalities.

Signed-off-by: Andrei Gogonea <andrei.gogonea09@xxxxxxxxx>
Signed-off-by: Teodora Serbanescu <teo.serbanescu16@xxxxxxxxx>
Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
---
 lib/Config.uk                 | 1 +
 lib/Makefile.uk               | 1 +
 lib/posix-libdl/Config.uk     | 3 +++
 lib/posix-libdl/Makefile.uk   | 4 ++++
 lib/posix-libdl/exportsyms.uk | 1 +
 5 files changed, 10 insertions(+)
 create mode 100644 lib/posix-libdl/Config.uk
 create mode 100644 lib/posix-libdl/Makefile.uk
 create mode 100644 lib/posix-libdl/exportsyms.uk

diff --git a/lib/Config.uk b/lib/Config.uk
index f61d3b1e..e97a9af3 100644
--- a/lib/Config.uk
+++ b/lib/Config.uk
@@ -49,3 +49,4 @@ source "lib/ukswrand/Config.uk"
 source "lib/ukbus/Config.uk"
 source "lib/uksglist/Config.uk"
 source "lib/uknetdev/Config.uk"
+source "lib/posix-libdl/Config.uk"
diff --git a/lib/Makefile.uk b/lib/Makefile.uk
index b7ad6287..b41345de 100644
--- a/lib/Makefile.uk
+++ b/lib/Makefile.uk
@@ -26,3 +26,4 @@ $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/ukmpi))
 $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/ukbus))
 $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/uksglist))
 $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/uknetdev))
+$(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/posix-libdl))
diff --git a/lib/posix-libdl/Config.uk b/lib/posix-libdl/Config.uk
new file mode 100644
index 00000000..f2d2fb24
--- /dev/null
+++ b/lib/posix-libdl/Config.uk
@@ -0,0 +1,3 @@
+config POSIX_LIBDL
+       bool "libdl: POSIX libdl library"
+       default n
diff --git a/lib/posix-libdl/Makefile.uk b/lib/posix-libdl/Makefile.uk
new file mode 100644
index 00000000..4e5109a5
--- /dev/null
+++ b/lib/posix-libdl/Makefile.uk
@@ -0,0 +1,4 @@
+$(eval $(call addlib_s,posix_libdl,$(CONFIG_POSIX_LIBDL)))
+
+CINCLUDES-$(CONFIG_POSIX_LIBDL)    += -I$(POSIX_LIBDL_BASE)/include
+CXXINCLUDES-$(CONFIG_POSIX_LIBDL)  += -I$(POSIX_LIBDL_BASE)/include
diff --git a/lib/posix-libdl/exportsyms.uk b/lib/posix-libdl/exportsyms.uk
new file mode 100644
index 00000000..621e94f0
--- /dev/null
+++ b/lib/posix-libdl/exportsyms.uk
@@ -0,0 +1 @@
+none
-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.