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

Re: [Minios-devel] [UNIKRAFT PATCH] build: Define preprocessing symbol for library name


  • To: minios-devel@xxxxxxxxxxxxx
  • From: Costin Lupu <costin.lupu@xxxxxxxxx>
  • Date: Fri, 2 Aug 2019 15:04:44 +0200
  • Cc: felipe.huici@xxxxxxxxx, simon.kuenzer@xxxxxxxxx, sharan.santhanam@xxxxxxxxx
  • Delivery-date: Fri, 02 Aug 2019 13:04:49 +0000
  • Ironport-phdr: 9a23:7+9lURKbgD0SMQtmitmcpTZWNBhigK39O0sv0rFitYgfLvnxwZ3uMQTl6Ol3ixeRBMOHsqgC2rud6PmocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmSSxbal2IRiyogncuNQaipZ+J6gszRfEvmFGcPlMy2NyIlKTkRf85sOu85Nm7i9dpfEv+dNeXKvjZ6g3QqBWAzogM2Au+c3krgLDQheV5nsdSWoZjBxFCBXY4R7gX5fxtiz6tvdh2CSfIMb7Q6w4VSik4qx2ThLjlSUJOCMj8GzPl8J+kqxbrhKiqRJxzYHbb4OaO+ZxcK7GYdMXR3BMUtpNWyFPAI6xaZYEAeobPeZfqonwv0UDrRylBQmwBePvzCJDiHnr3a0izuQqDAbL0xAnH9IVrHTUrdP1OL0WUeCo1KnI0C7OYO9N2Tvn8IjIbwsureuWXbJ3aMfcz1QkGQDdjliItIDoMC6Z2v4OvmWb9eZsS/yjhmw9pwx/ujSiwskhhpPGi44J0FzI6CF0zJovKdC8R0N2Z8OvHoFKuCGALYR2R9svQ2RvuCkn1LILoYW7fC0WyJQ/wB7fduCHf5CI4h39UOaRJi91hGxgeL2lhhay9VKsxfHnVsWuyFZKszFKnsPWtnAKzxDT686HReVh/kq5xDqC2B3f5vtHLE00j6bXNYAtz7wqmpcdqUjDGzX5mETyjK+YbEUk/e2o5vz7bbXhvZ+cK450igfkPqQqh8y/Gfk4PxMSUGiA4+i8zKDj8lbjTLVQif06irPZv4zCJcQHuq65BBdY0oMi6xa5Djem188YkWAaI11bZhKIkYzpNkrKIPD5Fve/n0+snC1kxv/YOL3tGJLNLmLMkL35Z7Zy91ZcyBYvzdBY/59UBK8OIPbyWk/pqtPUFB85MxG1w+n7CdVwzYUeVnyTDa+dKqzdqkWE6fwyI+OUfo8apC79K+Q55/7plXI5gl8dcrOz3ZQNbnC0BO9mLF+fYXrwgtcOC2EKsRA7TOHxjl2NTyJcZ3KoUK0n/D00Fp+mB5/ZRo+xmLyBwDu7HppOa2BdC1CMFHDod4OeV/cPdSKdPMlhkz0aWri7UIIh0w+huxP+y7V9NeXY4DMXtY+wnORysujSkxA17nl4AtqQ10mJTnpohSUYSjlw27pw8mJnzVLW+q9jn/1eXfhO/+4BBgw9LoLdyap+FsjvcgnaOM+UQhC8RYP1UnkKUtstzopWMA5GENK4g0Wb0g==
  • Ironport-sdr: q4eXJci+Yr4wujPlfrlpJVMfhgcZ52Vj6mXANR7GFibjQ5SY+LtZinTxjD4NxByxFR19YoLCPc CiKfK/0WceUA==
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>

Please see '[UNIKRAFT/LWIP PATCH 5/5] patches: Declare mem_* functions
only for lwip internal use' for where this is needed.

Cheers,
Costin

On 8/2/19 2:47 PM, Costin Lupu wrote:
> We define preprocessing symbols for library name in order to be able to 
> protect
> code based on the library name using #ifdef preprocessing directives (e.g.
> "#ifdef __liblwip__"). The current solution also replaces dashes with
> underscores given that we might have library names containing dashes (e.g.
> for "pthread-embedded" library).
> 
> Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
> ---
>  support/build/Makefile.rules | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/support/build/Makefile.rules b/support/build/Makefile.rules
> index d90807e0..9666ead0 100644
> --- a/support/build/Makefile.rules
> +++ b/support/build/Makefile.rules
> @@ -386,7 +386,7 @@ $(3): $(2) | prepare
>                      $($(call vprefix_lib,$(1),CINCLUDES)) $($(call 
> vprefix_lib,$(1),CINCLUDES-y)) \
>                      $(CFLAGS) $(CFLAGS-y) \
>                      $($(call vprefix_lib,$(1),CFLAGS)) $($(call 
> vprefix_lib,$(1),CFLAGS-y)) \
> -                    $(4) -D__LIBNAME__=$(1) -D__BASENAME__=$(notdir $(2)) \
> +                    $(4) -D__LIBNAME__=$(1) -D__BASENAME__=$(notdir $(2)) 
> -D__$(subst -,_,$(1))__ \
>                      -c $(2) -o $(3) $(depflags)
>  )
>  
> 

_______________________________________________
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®.