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

Re: [UNIKRAFT PATCH 2/7] build: Use secondary expansion for M4 pre-processing


  • To: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU <vlad_andrei.badoiu@xxxxxx>
  • Date: Mon, 19 Apr 2021 13:05:04 +0300 (EEST)
  • Cc: minios-devel <minios-devel@xxxxxxxxxxxxx>
  • Delivery-date: Mon, 19 Apr 2021 10:05:09 +0000
  • Dkim-filter: OpenDKIM Filter v2.10.3 mx.upb.ro 6813BB5600B3
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: UWFc5GOpIZZc0GT+8OhfnEyTMrOqmw==
  • Thread-topic: build: Use secondary expansion for M4 pre-processing

Reviewed-by: Vlad-Andrei Badoiu <vlad_andrei.badoiu@xxxxxx>

----- Original Message -----
From: "Simon Kuenzer" <simon.kuenzer@xxxxxxxxx>
To: "minios-devel" <minios-devel@xxxxxxxxxxxxx>
Cc: "Simon Kuenzer" <simon.kuenzer@xxxxxxxxx>
Sent: Friday, December 18, 2020 8:09:19 PM
Subject: [UNIKRAFT PATCH 2/7] build: Use secondary expansion for M4 
pre-processing

Similar to our build rules, we enable secondary expansion of
flags and includes to M4 pre-processing rules.

Signed-off-by: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
---
 support/build/Makefile.rules | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/support/build/Makefile.rules b/support/build/Makefile.rules
index 82d8fd7c..44701cd2 100644
--- a/support/build/Makefile.rules
+++ b/support/build/Makefile.rules
@@ -620,10 +620,10 @@ endef
 define preprule_m4 =
 $(3): $(2) | prepare
        $(call build_cmd,M4,$(1),$(3),\
-               $(M4)  $(M4INCLUDES) $(M4INCLUDES-y) \
-                      $($(call vprefix_lib,$(1),M4INCLUDES)) $($(call 
vprefix_lib,$(1),M4INCLUDES-y)) \
-                      $(M4FLAGS) $(M4FLAGS-y) \
-                      $($(call vprefix_lib,$(1),M4FLAGS)) $($(call 
vprefix_lib,$(1),M4FLAGS-y)) \
+               $(M4)  $$(M4INCLUDES) $$(M4INCLUDES-y) \
+                      $$($(call vprefix_lib,$(1),M4INCLUDES)) $$($(call 
vprefix_lib,$(1),M4INCLUDES-y)) \
+                      $$(M4FLAGS) $$(M4FLAGS-y) \
+                      $$($(call vprefix_lib,$(1),M4FLAGS)) $$($(call 
vprefix_lib,$(1),M4FLAGS-y)) \
                       $(4) \
                       $(2) > $(3)
        )
-- 
2.20.1



 


Rackspace

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