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

[XEN][RFC PATCH v3 03/14] libfdt: Keep fdt functions after init for CONFIG_OVERLAY_DTB.


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Vikram Garhwal <fnu.vikram@xxxxxxxxxx>
  • Date: Tue, 8 Mar 2022 11:46:53 -0800
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=o2me5A34S/CA57rO9JX2LJVZGCsANGo9EZ0shS6bP8E=; b=XQA3OqMDMBFxxfkfPdYJthY1/d6wFcin+7qc1B+OJVhKSmFY5IOV4zxZobGrH8HMiQBErB2UII+WYT73alYcMcElwQXiMANHatxe5CD6c0zJmwtIRoBdwehcF0bxJshnGtt9UJ2W5kFQQQQcjaToOT8PfoHu/JZNrfqH4ZJFjHiZaOkEievd+GQpADVyGdOGie9pR0TaPuxbfmuE99sPDWE5hTuTGHd6C2LgPOW2tr92EJtJkhLRn3tx7Hrrq1mZh7EQ6NJ1zGSEqpR1+vvYR/G1Mrj66UuP1j0+Mf6bDFATDKpe4wr4+RBjwpAtp/FTpycYhA4SF80cizvul5GSBQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B+tSBFRZX0M2Ka1jVzjwPBfEsexw/LMPuSyrjcHh844AtifyZ1nNzfjYqnr6xSZzsqxH5HO2m4V3D4uy7MK5groI/UIRdczo+OQWEZ/73BmbPJg1Z5qJnNwcyO88wdkyeR17r5Hm6eaMufGifUdyRV8vTx0lrxAXL1H7cWltqC1kLpH18oPymfItJNPl/WhVsR7inMyledKJgo1+ai2GF1JRqYFbOCaHQCpIPuWSjcmBNNeXNSvkJFQfY6lYwNHIbpkAisYzHnDVyiUpDx0huQZwykCBcG8yaYTPC0ApsnKZ1rOualxGIGxe0h6Mi3J20Hkzu4Spr/ia2z1kcHIanw==
  • Cc: <sstabellini@xxxxxxxxxx>, <julien@xxxxxxx>, <bertrand.marquis@xxxxxxx>, <volodymyr_babchuk@xxxxxxxx>, Vikram Garhwal <fnu.vikram@xxxxxxxxxx>
  • Delivery-date: Tue, 08 Mar 2022 19:47:31 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

This is done to access fdt library function which are required for adding device
tree overlay nodes for dynamic programming of nodes.

Acked-by: Julien Grall <jgrall@xxxxxxxxxx>
Signed-off-by: Vikram Garhwal <fnu.vikram@xxxxxxxxxx>
---
 xen/common/libfdt/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/xen/common/libfdt/Makefile b/xen/common/libfdt/Makefile
index 6708af12e5..86faa90f79 100644
--- a/xen/common/libfdt/Makefile
+++ b/xen/common/libfdt/Makefile
@@ -1,7 +1,11 @@
 include $(src)/Makefile.libfdt
 
 SECTIONS := text data $(SPECIAL_DATA_SECTIONS)
+
+# For CONFIG_OVERLAY_DTB, libfdt functionalities will be needed during runtime.
+ifneq ($(CONFIG_OVERLAY_DTB),y)
 OBJCOPYFLAGS := $(foreach s,$(SECTIONS),--rename-section .$(s)=.init.$(s))
+endif
 
 obj-y += libfdt.o
 nocov-y += libfdt.o
-- 
2.17.1




 


Rackspace

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