[U-Boot] [PATCH 1/5] libfdt: change fdt.h to a wrapper of scripts/dtc/libfdt/*

Masahiro Yamada yamada.masahiro at socionext.com
Sun Oct 22 15:34:33 UTC 2017


Hi Simon,

2017-10-22 23:35 GMT+09:00 Simon Glass <sjg at chromium.org>:
> Hi Masahiro,
>
> On 17 October 2017 at 15:30, Masahiro Yamada
> <yamada.masahiro at socionext.com> wrote:
>> Fortunately, U-Boot did not modify fdt.h locally.
>>
>> Change it to a wrapper of scripts/dtc/libfdt/fdt.h, which will be
>> periodically synced with the upstream DTC (or kernel).
>>
>> Signed-off-by: Masahiro Yamada <yamada.masahiro at socionext.com>
>> ---
>>
>>  include/fdt.h    |  2 +-
>>  lib/libfdt/fdt.h | 67 --------------------------------------------------------
>>  2 files changed, 1 insertion(+), 68 deletions(-)
>>  delete mode 100644 lib/libfdt/fdt.h
>
> There was a recent change to make this use the file in lib/libfdt.
> That makes it easier to sync with upstream dtc.
>
> Can you please explain in a little more detail the motivation for this patch?
>

lib/libfdt was the central sync point of libfdt,
but the situation changed by the switch to the bundled DTC approach.

Now we have two copies in lib/libfdt and scripts/dtc/libfdt.

See Linux.
scripts/dtc is periodically synced with DTC, including scripts/dtc/libfdt.
lib/fdt* are wrappers to scripts/dtc/libfdt/fdt*
I think this is very successful.

So, I am trying to leave only scripts/dtc/libfdt
and turn others into wrappers of them.



-- 
Best Regards
Masahiro Yamada


More information about the U-Boot mailing list