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

Re: [XEN][RFC PATCH 02/13] libfdt: Keep fdt functions after init.



Hi Vikram,

On 02/09/2021 07:05, Vikram Garhwal wrote:
Keep libfdt library functionalities after boot of hw_domain. This is done to
access fdt library function which are required for adding device tree overlay
nodes for dynamic programming of nodes.

AFAICT, the new feature will be mostly useful on HW with FPGA. I expect that some users may not want this feature (for instance because the HW doesn't have FPGA), so I think it would be best to introduce a new Kconfig to enable the new feature.

This could then be used to decide whether libfdt should be part of .init or not.

Cheers,


Signed-off-by: Vikram Garhwal <fnu.vikram@xxxxxxxxxx>
---
  xen/common/libfdt/Makefile | 1 -
  1 file changed, 1 deletion(-)

diff --git a/xen/common/libfdt/Makefile b/xen/common/libfdt/Makefile
index 6bd207c..8002f8c 100644
--- a/xen/common/libfdt/Makefile
+++ b/xen/common/libfdt/Makefile
@@ -1,7 +1,6 @@
  include Makefile.libfdt
SECTIONS := text data $(SPECIAL_DATA_SECTIONS)
-OBJCOPYFLAGS := $(foreach s,$(SECTIONS),--rename-section .$(s)=.init.$(s))
obj-y += libfdt.o
  nocov-y += libfdt.o


--
Julien Grall



 


Rackspace

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