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

[UNIKRAFT PATCH v5 1/5] lib/ukallocpool: Library skeleton



Registers the library skeleton for ukallocpool.

Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
---
 lib/Makefile.uk             | 1 +
 lib/ukallocpool/Config.uk   | 6 ++++++
 lib/ukallocpool/Makefile.uk | 4 ++++
 3 files changed, 11 insertions(+)
 create mode 100644 lib/ukallocpool/Config.uk
 create mode 100644 lib/ukallocpool/Makefile.uk

diff --git a/lib/Makefile.uk b/lib/Makefile.uk
index ff69dfab..7fffdac7 100644
--- a/lib/Makefile.uk
+++ b/lib/Makefile.uk
@@ -15,6 +15,7 @@ $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/nolibc))
 $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/ukalloc))
 $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/ukallocbbuddy))
 $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/ukallocregion))
+$(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/ukallocpool))
 $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/uksched))
 $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/ukschedcoop))
 $(eval $(call _import_lib,$(CONFIG_UK_BASE)/lib/fdt))
diff --git a/lib/ukallocpool/Config.uk b/lib/ukallocpool/Config.uk
new file mode 100644
index 00000000..5c300117
--- /dev/null
+++ b/lib/ukallocpool/Config.uk
@@ -0,0 +1,6 @@
+config LIBUKALLOCPOOL
+       bool "ukallocpool: Memory pool allocator"
+       default n
+       select LIBNOLIBC if !HAVE_LIBC
+       select LIBUKDEBUG
+       select LIBUKALLOC
diff --git a/lib/ukallocpool/Makefile.uk b/lib/ukallocpool/Makefile.uk
new file mode 100644
index 00000000..c71c9764
--- /dev/null
+++ b/lib/ukallocpool/Makefile.uk
@@ -0,0 +1,4 @@
+$(eval $(call addlib_s,libukallocpool,$(CONFIG_LIBUKALLOCPOOL)))
+
+CINCLUDES-$(CONFIG_LIBUKALLOCPOOL)     += -I$(LIBUKALLOCPOOL_BASE)/include
+CXXINCLUDES-$(CONFIG_LIBUKALLOCPOOL)   += -I$(LIBUKALLOCPOOL_BASE)/include
-- 
2.20.1



 


Rackspace

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