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

[Minios-devel] [UNIKRAFT/LIBUV PATCH 2/2] Add Makefile.uk


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Vlad-Andrei BĂDOIU <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Date: Tue, 31 Mar 2020 20:05:18 +0300
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=stud.acs.upb.ro; dmarc=pass action=none header.from=stud.acs.upb.ro; dkim=pass header.d=stud.acs.upb.ro; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=vo/E+CU7nOHOe2FqRynMsD7f5LHTl68OgbWGGyx2PQA=; b=SqAoVPir4fm8G8fWtGNP1mX7SrIxhMY3uTmedqfFx10cF3qeeabYb0y61mS7fbT4tvhKahOVL0dcac1HrM03WICgPh7zD+F+kYgnCuF/acs7nQF8ea3U8bFtQTtrImavD4LqzMflUqbsBZaaESS1xxcNUzMrf/TIKLVdxFMjBWJ5Hmj9zGPeD1JULNvETYabk8XByoh/zw7if4DSh/B3SuTFhN1kh1io49cemq05iYCXGS1kxYe11LeMknlvPGvVG46hBpSHhnVDI8CiL4X/hX2LOIT4Grm94xaOc8rMwBUbINt0affdF80c0H1/6nC6lIMDARWiZTx9AKZGnsRwQA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m7KZAmVbgXl35LaP8AKHApSIy5TDqrpJBwy6ZZrMMwUoz8uGAwQG9r8l8oTGOsgnPVp2rN2guH+dFxnk5zVzJdzyBulP4M8ApjKcN4jsuBEuVRJVCrSDL93xTrpt0PlwBUiLAXa360umaKQ+tLNjmUSvRk7sG0WMj87pdBaUpYak6bFrfIOoxA3BSR4IxSEXgIj4n945wZCnzRzgED6Pxq5dges4BdbUnYzHtGL6gr/odF4pnwcc2h5Zd2SR7HdVJBaKnbz2WwPhsbQ7oFUZPCzp/XWwPzExmsprHioubxpBscMj6n1MsBhfvWzLKdpsVpVMLYOmY5Qlre3F+Lj1Wg==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=vlad_andrei.badoiu@xxxxxxxxxxxxxxx;
  • Cc: felipe.huici@xxxxxxxxx, Vlad-Andrei BĂDOIU <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 31 Mar 2020 17:05:47 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

Add libuv port Makefile.uk

Signed-off-by: Vlad-Andrei BĂDOIU <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
---
 Makefile.uk | 119 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 119 insertions(+)
 create mode 100644 Makefile.uk

diff --git a/Makefile.uk b/Makefile.uk
new file mode 100644
index 0000000..ac1034f
--- /dev/null
+++ b/Makefile.uk
@@ -0,0 +1,119 @@
+#  libuv11 config file
+#
+#  Authors: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxxxxxxxxxxx>
+#
+#  Copyright (c) 2020, University Politehnica of Bucharest. All rights 
reserved.
+#
+#  Redistribution and use in source and binary forms, with or without
+#  modification, are permitted provided that the following conditions
+#  are met:
+#
+#  1. Redistributions of source code must retain the above copyright
+#     notice, this list of conditions and the following disclaimer.
+#  2. Redistributions in binary form must reproduce the above copyright
+#     notice, this list of conditions and the following disclaimer in the
+#     documentation and/or other materials provided with the distribution.
+#  3. Neither the name of the copyright holder nor the names of its
+#     contributors may be used to endorse or promote products derived from
+#     this software without specific prior written permission.
+#
+#  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+#  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+#  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+#  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
+#  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+#  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+#  SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+#  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+#  CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+#  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+#  POSSIBILITY OF SUCH DAMAGE.
+#
+#  THIS HEADER MAY NOT BE EXTRACTED OR MODIFIED IN ANY WAY.
+
+################################################################################
+# Library registration
+################################################################################
+$(eval $(call addlib_s,libuv,$(CONFIG_LIBUV)))
+
+################################################################################
+# Sources
+################################################################################
+LIBUV_VERSION=1.35.0
+LIBUV_URL=https://github.com/libuv/libuv/archive/v$(LIBUV_VERSION).tar.gz
+LIBUV_PATCHDIR=$(LIBUV_BASE)/patches
+$(eval $(call fetch,libuv,$(LIBUV_URL)))
+
+################################################################################
+# Helpers
+################################################################################
+LIBUV_SUBDIR=libuv-$(LIBUV_VERSION)
+LIBUV_SRC=$(LIBUV_ORIGIN)/$(LIBUV_SUBDIR)
+
+################################################################################
+# Library includes
+################################################################################
+CINCLUDES-$(CONFIG_LIBUV) += -I$(LIBUV_SRC)/include
+CINCLUDES-$(CONFIG_LIBUV) += -I$(LIBUV_SRC)/src
+CXXINCLUDES-$(CONFIG_LIBUV) += -I$(LIBUV_SRC)/include
+CXXINCLUDES-$(CONFIG_LIBUV) += -I$(LIBUV_SRC)/src
+
+################################################################################
+# Global flags
+################################################################################
+# Suppress some warnings to make the build process look neater
+SUPPRESS_FLAGS += -Wno-unused-parameter -Wno-unused-variable -Wno-nonnull      
\
+-Wno-unused-but-set-variable -Wno-unused-label -Wno-char-subscripts            
\
+-Wno-unused-function -Wno-missing-field-initializers -Wno-uninitialized        
        \
+-Wno-array-bounds -Wno-maybe-uninitialized -Wno-pointer-sign -Wno-unused-value 
\
+-Wno-unused-macros -Wno-parentheses -Wno-implicit-function-declaration         
\
+-Wno-missing-braces -Wno-endif-labels -Wno-unused-but-set-variable             
\
+-Wno-implicit-function-declaration -Wno-type-limits -Wno-sign-compare
+
+LIBUV_CFLAGS-y    +=  $(SUPPRESS_FLAGS) -D_POSIX_READER_WRITER_LOCKS 
-D_POSIX_THREADS -U__linux__ -D__GNU__
+LIBUV_CXXFLAGS-y    +=  $(SUPPRESS_FLAGS) -D_POSIX_READER_WRITER_LOCKS 
-D_POSIX_THREADS -U__linux__ -D__GNU__
+
+################################################################################
+# Library sources
+################################################################################
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/sysinfo-memory.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/no-fsevents.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/getnameinfo.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/procfs-exepath.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/random-getentropy.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/sysinfo-loadavg.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/random-devurandom.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/dl.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/random-getrandom.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/core.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/posix-hrtime.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/no-proctitle.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/pipe.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/async.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/pthread-fixes.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/getaddrinfo.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/udp.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/stream.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/fsevents.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/tcp.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/loop-watcher.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/posix-poll.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/random-sysctl-linux.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/loop.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/fs.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/poll.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/process.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/tty.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/linux-syscalls.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/signal.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/unix/thread.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/uv-data-getter-setters.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/inet.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/threadpool.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/random.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/uv-common.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/idna.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/fs-poll.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/strscpy.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/timer.c
+LIBUV_SRCS-y += $(LIBUV_SRC)/src/version.c
-- 
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®.