]> xenbits.xensource.com Git - unikraft/libs/musl.git/commitdiff
Add glue code rules for mem.c in Makefile.uk
authorGaulthier Gain <gaulthier.gain@uliege.be>
Wed, 29 Jan 2020 21:18:29 +0000 (22:18 +0100)
committerSimon Kuenzer <simon.kuenzer@neclab.eu>
Thu, 30 Jan 2020 20:55:56 +0000 (21:55 +0100)
This commit updates Makefile.uk to support glue code related to
mem.c between musl and Unikraft.

Signed-off-by: Gaulthier Gain <gaulthier.gain@uliege.be>
Reviewed-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
Makefile.uk

index 81746dc310f367b30823f32c514185bbb9d01842..a0a843c1f73a67a1e0393b40414c52dffc54abfc 100644 (file)
 # 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