Update libfdt to v1.6.1
cover Update libfdt to v1.6.1
This update is done to support device tree overlays functionality. This is taken from David Gibson's DTC git: github.com/dgibson/dtc
Regards,
Vikram
Vikram Garhwal (1):
Update libfdt to v1.6.1
xen/common/libfdt/Makefile.libfdt | 10 +- xen/common/libfdt/fdt.c | 226 ++++++--- xen/common/libfdt/fdt_addresses.c | 101 ++++ xen/common/libfdt/fdt_check.c | 93 ++++ xen/common/libfdt/fdt_empty_tree.c | 46 +- xen/common/libfdt/fdt_overlay.c | 884 ++++++++++++++++++++++++++++++++++++ xen/common/libfdt/fdt_ro.c | 514 ++++++++++++++++----- xen/common/libfdt/fdt_rw.c | 249 +++++----- xen/common/libfdt/fdt_strerror.c | 55 +-- xen/common/libfdt/fdt_sw.c | 312 +++++++++---- xen/common/libfdt/fdt_wip.c | 88 ++-- xen/common/libfdt/libfdt_internal.h | 223 ++++++--- xen/include/xen/libfdt/fdt.h | 51 +-- xen/include/xen/libfdt/libfdt.h | 858 +++++++++++++++++++++++++++++----- xen/include/xen/libfdt/libfdt_env.h | 100 +++- 15 files changed, 3025 insertions(+), 785 deletions(-) create mode 100644 xen/common/libfdt/fdt_addresses.c create mode 100644 xen/common/libfdt/fdt_check.c create mode 100644 xen/common/libfdt/fdt_overlay.c
Signature · 1 line
2.7.4
PATCH 1/1 Update libfdt to v1.6.1
Update libfdt to v1.6.1 of libfdt taken from git://github.com/dgibson/dtc.
This update is done to support device tree overlays.
A few minor changes are done to make it compatible with Xen:fdt_overlay.c: overlay_fixup_phandle()
Replace strtoul() simple_strtoul() as strtoul() is not available in Xen lib and included lib.h.
Change char *endptr to const char *endptr.
libfdt_env.h:
Changed path for config.h and stdbool.h. Remaining Xen changes to libfdt_env.h carried over from existing libfdt (v1.4.0)
--- xen/common/libfdt/Makefile.libfdt | 10 +- xen/common/libfdt/fdt.c | 226 ++++++--- xen/common/libfdt/fdt_addresses.c | 101 ++++ xen/common/libfdt/fdt_check.c | 93 ++++ xen/common/libfdt/fdt_empty_tree.c | 46 +- xen/common/libfdt/fdt_overlay.c | 884 ++++++++++++++++++++++++++++++++++++ xen/common/libfdt/fdt_ro.c | 514 ++++++++++++++++----- xen/common/libfdt/fdt_rw.c | 249 +++++----- xen/common/libfdt/fdt_strerror.c | 55 +-- xen/common/libfdt/fdt_sw.c | 312 +++++++++---- xen/common/libfdt/fdt_wip.c | 88 ++-- xen/common/libfdt/libfdt_internal.h | 223 ++++++--- xen/include/xen/libfdt/fdt.h | 51 +-- xen/include/xen/libfdt/libfdt.h | 858 +++++++++++++++++++++++++++++----- xen/include/xen/libfdt/libfdt_env.h | 100 +++- 15 files changed, 3025 insertions(+), 785 deletions(-) create mode 100644 xen/common/libfdt/fdt_addresses.c create mode 100644 xen/common/libfdt/fdt_check.c create mode 100644 xen/common/libfdt/fdt_overlay.c
xen/common/libfdt/Makefile.libfdt +9 -1
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-Clause) # Makefile.libfdt # # This is not a complete Makefile of itself. Instead, it is designed to
@@ -6,5 +7,12 @@ LIBFDT_soname = libfdt.$(SHAREDLIB_EXT).1 LIBFDT_INCLUDES = fdt.h libfdt.h libfdt_env.h LIBFDT_VERSION = version.lds -LIBFDT_SRCS = fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c fdt_empty_tree.c +LIBFDT_SRCS = fdt.c fdt_ro.c fdt_wip.c fdt_sw.c fdt_rw.c fdt_strerror.c fdt_empty_tree.c \ + fdt_addresses.c fdt_overlay.c fdt_check.c LIBFDT_OBJS = $(LIBFDT_SRCS:%.c=%.o) +LIBFDT_LIB = libfdt-$(DTC_VERSION).$(SHAREDLIB_EXT) + +libfdt_clean: + @$(VECHO) CLEAN "(libfdt)" + rm -f $(STD_CLEANFILES:%=$(LIBFDT_dir)/%) + rm -f $(LIBFDT_dir)/$(LIBFDT_soname)
xen/common/libfdt/fdt.c +156 -70
312 lines not on this page · raw message
xen/common/libfdt/fdt_addresses.c new file +101 -0
101 lines not on this page · raw message
xen/common/libfdt/fdt_check.c new file +93 -0
93 lines not on this page · raw message
xen/common/libfdt/fdt_empty_tree.c +1 -45
55 lines not on this page · raw message
xen/common/libfdt/fdt_overlay.c new file +884 -0
884 lines not on this page · raw message
xen/common/libfdt/fdt_ro.c +401 -113
728 lines not on this page · raw message
xen/common/libfdt/fdt_rw.c +129 -120
514 lines not on this page · raw message
xen/common/libfdt/fdt_strerror.c +10 -45
80 lines not on this page · raw message
xen/common/libfdt/fdt_sw.c +221 -91
216 lines not on this page · raw message
xen/common/libfdt/fdt_wip.c +33 -55
88 lines not on this page · raw message
xen/common/libfdt/libfdt_internal.h +161 -62
223 lines not on this page · raw message
xen/include/xen/libfdt/fdt.h +4 -47
51 lines not on this page · raw message
xen/include/xen/libfdt/libfdt.h +734 -124
858 lines not on this page · raw message
xen/include/xen/libfdt/libfdt_env.h +88 -12
100 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.7.4
Part of the diff is not shown here. View the raw message.