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

Re: [UNIKRAFT PATCH 6/7] build: `*.in` files as pure pre-processed files


  • To: Simon Kuenzer <simon.kuenzer@xxxxxxxxx>
  • From: Vlad-Andrei BĂDOIU <vlad_andrei.badoiu@xxxxxx>
  • Date: Mon, 19 Apr 2021 13:14:28 +0300 (EEST)
  • Cc: minios-devel <minios-devel@xxxxxxxxxxxxx>
  • Delivery-date: Mon, 19 Apr 2021 10:14:35 +0000
  • Dkim-filter: OpenDKIM Filter v2.10.3 mx.upb.ro DDE0EB5600A2
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Thread-index: UHDZ8stVijUQ38rmXOT3BpMyP/0Mrg==
  • Thread-topic: build: `*.in` files as pure pre-processed files

Looks good!

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:23 PM
Subject: [UNIKRAFT PATCH 6/7] build: `*.in` files as pure pre-processed files

Registers `*.in` files as purely pre-processed files. The idea is
that such generated files can be used/included by other source
files during pre-processing or compiling.

Example:
 LIBMYLIB_SRCS += $(LIBMYLIB_BASE)/source.m4>.in

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

diff --git a/support/build/Makefile.rules b/support/build/Makefile.rules
index 1797d134..1aca3391 100644
--- a/support/build/Makefile.rules
+++ b/support/build/Makefile.rules
@@ -593,6 +593,15 @@ $(eval $(call vprefix_lib,$(1),DTB-y) += $(4))
 $(eval $(call vprefix_lib,$(1),CLEAN-y) += $(call build_clean,$(4)))
 endef
 
+# terminating build rule
+# Only make sure that the file is registered to the preprocess stage
+define buildrule_noop_ =
+UK_PREPROCESS-y += $(2)
+endef
+
+# Aliases for pre-processed files (e.g., *.in)
+buildrule_in   = $(call buildrule_noop_,$(1),$(2))
+
 # wrapper for buildrule_*,
 # selects appropriate buildrule depending on file extension,
 # if there is no such buildrule available, we throw an error.
-- 
2.20.1



 


Rackspace

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