public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/5] libfdt: Reduce duplicated copies of libfdt
@ 2017-10-17 13:30 Masahiro Yamada
  2017-10-17 13:30 ` [U-Boot] [PATCH 1/5] libfdt: change fdt.h to a wrapper of scripts/dtc/libfdt/* Masahiro Yamada
                   ` (5 more replies)
  0 siblings, 6 replies; 17+ messages in thread
From: Masahiro Yamada @ 2017-10-17 13:30 UTC (permalink / raw)
  To: u-boot

Recently, U-Boot switched to the bundled DTC approach.
This means we have two copies, lib/libfdt and scripts/dtc/libfdt.

Ideally, we should change lib/libfdt to #include scripts/dtc/libfdt.

One big problem is lib/libfdt is locally modified
(fdt_ro.c  fdt_wip.c fdt_rw.c) and makes our life difficult.

For now I synced only 6 files.

This series depends on
"pylibfdt: compile pylibfdt in scripts/dtc/pylibfdt only when necessary"
http://patchwork.ozlabs.org/project/uboot/list/?series=8554



Masahiro Yamada (5):
  libfdt: change fdt.h to a wrapper of scripts/dtc/libfdt/*
  libfdt: change libfdt_internal.h to a wrapper of scripts/dtc/libfdt/*
  tools: use files from scripts/dtc/libfdt where possible
  linux/types.h: add typedef of uintptr_t
  lib: libfdt: wrap scripts/dtc/libfdt/* where possible

 include/fdt.h                 |   2 +-
 include/libfdt_env.h          |   6 -
 include/linux/libfdt.h        |  17 +
 include/linux/libfdt_env.h    |  22 ++
 include/linux/types.h         |   2 +
 lib/libfdt/Makefile           |  17 +-
 lib/libfdt/fdt.c              | 212 +----------
 lib/libfdt/fdt.h              |  67 ----
 lib/libfdt/fdt_addresses.c    |  57 +--
 lib/libfdt/fdt_empty_tree.c   |  39 +-
 lib/libfdt/fdt_overlay.c      | 863 +-----------------------------------------
 lib/libfdt/fdt_strerror.c     |  63 +--
 lib/libfdt/fdt_sw.c           | 256 +------------
 lib/libfdt/libfdt_internal.h  |  51 +--
 tools/Makefile                |  15 +-
 tools/libfdt/fdt.c            |   2 +
 tools/libfdt/fdt_addresses.c  |   2 +
 tools/libfdt/fdt_empty_tree.c |   2 +
 tools/libfdt/fdt_overlay.c    |   2 +
 tools/libfdt/fdt_strerror.c   |   2 +
 tools/libfdt/fdt_sw.c         |   2 +
 21 files changed, 89 insertions(+), 1612 deletions(-)
 create mode 100644 include/linux/libfdt.h
 create mode 100644 include/linux/libfdt_env.h
 delete mode 100644 lib/libfdt/fdt.h
 create mode 100644 tools/libfdt/fdt.c
 create mode 100644 tools/libfdt/fdt_addresses.c
 create mode 100644 tools/libfdt/fdt_empty_tree.c
 create mode 100644 tools/libfdt/fdt_overlay.c
 create mode 100644 tools/libfdt/fdt_strerror.c
 create mode 100644 tools/libfdt/fdt_sw.c

-- 
2.7.4

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2017-11-17 15:43 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-17 13:30 [U-Boot] [PATCH 0/5] libfdt: Reduce duplicated copies of libfdt Masahiro Yamada
2017-10-17 13:30 ` [U-Boot] [PATCH 1/5] libfdt: change fdt.h to a wrapper of scripts/dtc/libfdt/* Masahiro Yamada
2017-10-22 14:35   ` Simon Glass
2017-10-22 15:34     ` Masahiro Yamada
2017-11-17 15:43   ` [U-Boot] [U-Boot, " Tom Rini
2017-10-17 13:30 ` [U-Boot] [PATCH 2/5] libfdt: change libfdt_internal.h " Masahiro Yamada
2017-11-17 15:43   ` [U-Boot] [U-Boot, " Tom Rini
2017-10-17 13:30 ` [U-Boot] [PATCH 3/5] tools: use files from scripts/dtc/libfdt where possible Masahiro Yamada
2017-11-17 15:43   ` [U-Boot] [U-Boot, " Tom Rini
2017-10-17 13:30 ` [U-Boot] [PATCH 4/5] linux/types.h: add typedef of uintptr_t Masahiro Yamada
2017-11-17 15:43   ` [U-Boot] [U-Boot,4/5] " Tom Rini
2017-10-17 13:30 ` [U-Boot] [PATCH 5/5] lib: libfdt: wrap scripts/dtc/libfdt/* where possible Masahiro Yamada
2017-10-22 14:35   ` Simon Glass
2017-10-22 15:43     ` Masahiro Yamada
2017-11-17 15:43   ` [U-Boot] [U-Boot, " Tom Rini
2017-11-07  3:12 ` [U-Boot] [PATCH 0/5] libfdt: Reduce duplicated copies of libfdt Masahiro Yamada
2017-11-07 22:29   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox