]> xenbits.xensource.com Git - xen.git/commitdiff
libfdt: Keep fdt functions after init for CONFIG_OVERLAY_DTB.
authorVikram Garhwal <vikram.garhwal@amd.com>
Wed, 6 Sep 2023 01:16:16 +0000 (18:16 -0700)
committerStefano Stabellini <stefano.stabellini@amd.com>
Wed, 6 Sep 2023 01:25:14 +0000 (18:25 -0700)
This is done to access fdt library function which are required for adding device
tree overlay nodes for dynamic programming of nodes.

Signed-off-by: Vikram Garhwal <vikram.garhwal@amd.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/common/libfdt/Makefile

index 75aaefa2e37fc7cbf4ccf918fb9992120d3dbd8e..d50487aa6e32693c2336f811ec4e2b259862ebb2 100644 (file)
@@ -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