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

[Minios-devel] [UNIKRAFT/MUSL PATCH V2 06/28] Add glue code rules for mem.c in Makefile.uk



This commit updates Makefile.uk to support glue code related to
mem.c between musl and Unikraft.

Signed-off-by: Gaulthier Gain <gaulthier.gain@xxxxxxxxx>
---
 Makefile.uk | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Makefile.uk b/Makefile.uk
index 81746dc..a0a843c 100644
--- a/Makefile.uk
+++ b/Makefile.uk
@@ -36,6 +36,10 @@
 # Library registration
 
################################################################################
 $(eval $(call addlib_s,libmusl,$(CONFIG_LIBMUSL)))
+# Additionally, build glue code. This is put into a separate library so that we
+# can apply a thick helping of warning suppressions to musl, which throws
+# lots of compilation warnings, but keep our glue code up to our standards.
+$(eval $(call addlib_s,libmuslglue,$(CONFIG_LIBMUSL)))
 
 
################################################################################
 # Sources
@@ -121,7 +125,7 @@ CXXFLAGS += $(LIBMUSL_HEADER_FLAGS-y)
 
################################################################################
 # OS dependencies code - Glue between Unicore and musl
 
################################################################################
-LIBMUSL_SRCS-y += $(LIBMUSL_BASE)/mem.c
+LIBMUSLGLUE_SRCS-y += $(LIBMUSL_BASE)/mem.c
 
 
################################################################################
 # musl code -- one external Makefile per sub-lib
-- 
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®.